Struct oxide_auth::primitives::registrar::EncodedClient [−][src]
pub struct EncodedClient {
pub client_id: String,
pub redirect_uri: RegisteredUrl,
pub additional_redirect_uris: Vec<RegisteredUrl>,
pub default_scope: Scope,
pub encoded_client: ClientType,
}Expand description
A client whose credentials have been wrapped by a password policy.
This provides a standard encoding for Registrars who wish to store their clients and makes it
possible to test password policies.
Fields
client_id: StringThe id of this client. If this is was registered at a Registrar, this should be a key
to the instance.
redirect_uri: RegisteredUrlThe registered redirect uri.
Unlike additional_redirect_uris, this is registered as the default redirect uri
and will be replaced if, for example, no redirect_uri is specified in the request parameter.
additional_redirect_uris: Vec<RegisteredUrl>The redirect uris that can be registered in addition to the redirect_uri.
If you want to register multiple redirect uris, register them together with redirect_uri.
default_scope: ScopeThe scope the client gets if none was given.
encoded_client: ClientTypeThe authentication data.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EncodedClient
impl Send for EncodedClient
impl Sync for EncodedClient
impl Unpin for EncodedClient
impl UnwindSafe for EncodedClient
Blanket Implementations
Mutably borrows from an owned value. Read more