AuthClient class Null safety

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. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
salt String?
The salt hashedSecret was hashed with. [...]
read / write
supportsScopes bool
Whether or not this instance allows scoping or not. [...]
read-only

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited