Struct odoo_api::service::common::Authenticate
source · pub struct Authenticate {
pub db: String,
pub login: String,
pub password: String,
pub user_agent_env: Map<String, Value>,
}
Expand description
Check the user credentials and return the user ID (web)
This method performs a “login” to the Odoo server, and returns the corresponding
user ID (uid
). It is identical to Login
, except that it accepts an extra
param user_agent_env
, which is normally sent by the browser.
This method is inteded for browser-based API implementations. You should use Login
instead.
See: odoo/service/common.py
See also: base/models/res_users.py
Fields§
§db: String
The database name
login: String
The username (e.g., email)
password: String
The user password
user_agent_env: Map<String, Value>
A mapping of user agent env entries
Trait Implementations§
source§impl Debug for Authenticate
impl Debug for Authenticate
source§impl JsonRpcParams for Authenticate
impl JsonRpcParams for Authenticate
type Container<T> = OdooApiContainer<Authenticate>
type Response = AuthenticateResponse
fn build(self) -> JsonRpcRequest<Self>
source§impl OdooApiMethod for Authenticate
impl OdooApiMethod for Authenticate
source§fn describe(&self) -> (&'static str, &'static str)
fn describe(&self) -> (&'static str, &'static str)
Describe the JSON-RPC service and method for this type
source§fn _build(self) -> JsonRpcRequest<Self>
fn _build(self) -> JsonRpcRequest<Self>
Build
self
into a full JsonRpcRequest