AuthProvider class

Configuration for an authentication provider, including support for JSON Web Token (JWT).

Constructors

AuthProvider()
AuthProvider.fromJson(Map _json)

Properties

audiences ↔ String
The list of JWT audiences. that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". [...]
read / write
authorizationUrl ↔ String
Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.
read / write
id ↔ String
The unique identifier of the auth provider. It will be referred to by AuthRequirement.provider_id. [...]
read / write
issuer ↔ String
Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. [...]
read / write
jwksUri ↔ String
URL of the provider's public key set to validate signature of the JWT. See OpenID Discovery. Optional if the key set document: [...]
read / write
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

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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