ManagedAuthClient class

Represent OAuth 2.0 clients.

A client has, at minimum, a valid id. A client with only an id is a 'public' client, per the OAuth 2.0 definition. A client created with a hashedSecret and salt is a 'confidential' client. Only confidential clients may have a redirectURI. Only clients with a redirectURI may use the authorization code flow.

Use the aquedart auth tool to add new clients to an application.

Inheritance

Constructors

ManagedAuthClient()
Default constructor.
ManagedAuthClient.fromClient(AuthClient client)
Create from an AuthClient.

Properties

allowedScope String?
Scopes that this client allows.
getter/setter pairinherited
backing ManagedBacking
The persistent values of this object.
getter/setter pairinherited
entity ManagedEntity
The ManagedEntity this instance is described by.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hashedSecret String?
The client secret, hashed with salt, if this client is confidential.
getter/setter pairinherited
id String?
The client identifier of this client.
getter/setter pairinherited
redirectURI String?
The redirect URI for the authorization code flow.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt String?
The hashing salt for hashedSecret.
getter/setter pairinherited
tokens ManagedSet<ManagedAuthToken>?
Tokens that have been issued for this client.
getter/setter pairinherited

Methods

asClient() AuthClient
As an AuthClient.
asMap() Map<String, dynamic>?
Converts this instance into a serializable map.
inherited
documentSchema(APIDocumentContext context) APISchemaObject
Returns an APISchemaObject describing this object's type.
inherited
hasValueForProperty(String propertyName) bool
Checks whether or not a property has been set in this instances' backing.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Map<String, dynamic> object, {Iterable<String>? accept, Iterable<String>? ignore, Iterable<String>? reject, Iterable<String>? require}) → void
Reads values from object, after applying filters.
inherited
readFromMap(Map<String, dynamic> object) → void
Reads values from object.
inherited
removePropertiesFromBackingMap(List<String> propertyNames) → void
Removes multiple properties from backing.
inherited
removePropertyFromBackingMap(String? propertyName) → void
Removes a property from backing.
inherited
toString() String
A string representation of this object.
inherited
validate({Validating forEvent = Validating.insert}) ValidationContext
Validates an object according to its property Validate metadata.
inherited
willInsert() → void
Callback to modify an object prior to inserting it with a Query.
inherited
willUpdate() → void
Callback to modify an object prior to updating it with a Query.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String? propertyName) → dynamic
Retrieves a value by property name from backing.
inherited
operator []=(String? propertyName, dynamic value) → void
Sets a value by property name in backing.
inherited