ManagedClient 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 aqueduct auth tool to add new clients to an application.





allowedScope String
Scopes that this client allows. [...]
@ManagedColumnAttributes(nullable: true), read / write, inherited
backing ManagedBacking
read / write, inherited
backingMap Map<String, dynamic>
The managed values of this instance. [...]
read-only, inherited
entity ManagedEntity
The ManagedEntity this instance is described by.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hashedSecret String
The client secret, hashed with salt, if this client is confidential. [...]
@ManagedColumnAttributes(nullable: true), read / write, inherited
id String
The client identifier of this client. [...]
@ManagedColumnAttributes(primaryKey: true), read / write, inherited
redirectURI String
The redirect URI for the authorization code flow. [...]
@ManagedColumnAttributes(unique: true, nullable: true), read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
salt String
The hashing salt for hashedSecret.
@ManagedColumnAttributes(nullable: true), read / write, inherited
tokens ManagedSet<ManagedToken>
Tokens that have been issued for this client.
read / write, inherited


asClient() AuthClient
As an AuthClient.
asMap() Map<String, dynamic>
Converts this instance into a serializable map. [...]
hasValueForProperty(String propertyName) bool
Checks whether or not a property has been set in this instances' backingMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
readFromMap(Map<String, dynamic> keyValues) → void
Populates the properties of a this instance from a map. [...]
readMap(Map<String, dynamic> keyValues) → void
@Deprecated("3.0, use readFromMap instead"), inherited
removePropertyFromBackingMap(String propertyName) → void
Removes a property from the backingMap. [...]
toString() String
Returns a string representation of this object.
validate({ValidateOperation forOperation: ValidateOperation.insert, List<String> collectErrorsIn }) bool
Validates an object according to its property Validate metadata. [...]
willInsert() → void
Callback to modify an object prior to inserting it with a Query. [...]
willUpdate() → void
Callback to modify an object prior to updating it with a Query. [...]


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