OAuth2CredentialsLocation enum

Location where OAuth2 credentials should be sent in token requests.

Per RFC 6749 Section 2.3, credentials can be sent either in the Authorization header (preferred) or in the request body.

Inheritance
Available extensions

Values

Send credentials in the Authorization header using Basic authentication.

This is the preferred method per RFC 6749. The client ID and secret are base64-encoded as "clientId:clientSecret" and sent as: Authorization: Basic <base64-encoded-credentials>

body → const OAuth2CredentialsLocation

Send credentials as parameters in the request body.

The client ID and secret are sent as form parameters in the token request.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<OAuth2CredentialsLocation>
A constant List of the values in this enum, in order of their declaration.