Represents an OAuth 2.0 client ID and secret pair.

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

Use the command line tool aqueduct 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.

read / write
hashedSecret → String

The hashed secret of the client.

read / write
id → String

The ID of the client.

read / write
isConfidential → bool

Whether or not this is a public or confidential client.

read-only
isPublic → bool

Whether or not this is a public or confidential client.

read-only
redirectURI → String

The redirection URI for authorization codes and/or tokens.

read / write
salt → String

The salt hashedSecret was hashed with.

read / write
supportsScopes → bool

Whether or not this instance allows scoping or not.

read-only
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

allowsScope(AuthScope scope) → bool

Whether or not this client can issue tokens for the provided scope.

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited