Struct oauth2::client_data::ClientData
[−]
[src]
pub struct ClientData { pub client_id: String, pub client_type: ClientType, pub redirect_uri: Vec<String>, pub credentials: String, pub authn_scheme: Option<String>, }
Client data is registered with the Authorization Service prior to the OAuth 2.0 protocol commencing. This can be done with config files for well-known clients. It can be done online as well prior to the OAuth 2.0 protocol proper.
Fields
client_id: String
Client Identifier. Required. Must be unique across the Authorization Service and so is typically issued by the Authorization Service. Also used to fetch this entire record.
client_type: ClientType
Client Type. Required, even if your implementation only ever uses one type.
redirect_uri: Vec<String>
Redirect URL(s) as Strings. Required for public clients, required if the client has multiple, otherwise optional but SHOULD be supplied anyway. The first one is used if not supplied in the protocol.
credentials: String
Client Credentials, serialized. Required, but the details are out of scope.
authn_scheme: Option<String>
Authentication Scheme, serialized. Only required if multiple authentication schemes are implemented and the server needs to know which one this client is using.
Methods
impl ClientData
[src]
fn http_basic_authentication_generate(&self) -> Authorization<Basic>
fn http_basic_authentication_deconstruct(basic: Basic) -> Result<(String, String), Utf8Error>
Trait Implementations
impl Debug for ClientData
[src]
impl Clone for ClientData
[src]
fn clone(&self) -> ClientData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more