AuthClient class

Represents an OAuth 2.0 client ID and secret pair.

See the conduit/managed_auth library for a concrete implementation of this type.

Use the command line tool conduit auth to create instances of this type and store them to a database.

Constructors

AuthClient(String? id, String? hashedSecret, String? salt, {List<AuthScope>? allowedScopes})
Creates an instance of AuthClient.
AuthClient.public(String id, {List<AuthScope>? allowedScopes})
Creates an instance of a public AuthClient.
AuthClient.withRedirectURI(String? id, String? hashedSecret, String? salt, String? redirectURI, {List<AuthScope>? allowedScopes})
Creates an instance of AuthClient that uses the authorization code grant flow.

Properties

allowedScopes ↔ List<AuthScope>?
The list of scopes available when authorizing with this client.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hashedSecret ↔ String?
The hashed secret of the client.
getter/setter pair
id ↔ String?
The ID of the client.
getter/setter pair
isConfidential → bool
Whether or not this is a public or confidential client.
no setter
isPublic → bool
Whether or not this is a public or confidential client.
no setter
redirectURI ↔ String?
The redirection URI for authorization codes and/or tokens.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
salt ↔ String?
The salt hashedSecret was hashed with.
getter/setter pair
supportsScopes → bool
Whether or not this instance allows scoping or not.
no setter

Methods

allowsScope(AuthScope scope) → bool
Whether or not this client can issue tokens for the provided scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited