DVOAuthEndpoints class
Handlers for the generated OAuth routes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Properties
-
resolveUser
↔ Future<
String?> Function(Request request)? -
Who is signed in on
request, answered by the application's own auth.getter/setter pair
Static Methods
-
approve(
Request request) → Future< Response> -
POST /oauth/authorize: the signed-in person's answer, as a form with the authorization parameters anddecision=approveordeny. Answers{"redirect_to": ...}for the consent screen to navigate to, because a script following a redirect to the partner's origin could not read it. -
GET /oauth/authorize/request: the client and each scope with the words its declaration gave it, for the consent screen. -
GET /oauth/authorize: a valid request is sent to the consent screen with its parameters; an unknown client or unregistered redirect URI is shown and never redirected; any other error goes back to the client. -
introspect(
Request request) → Future< Response> -
POST /oauth/introspect(RFC 7662). The caller authenticates as a confidential client, or with an API key or access token whose scopes cover introspectAction. Tokens are answered for on the request's tenant only. -
metadata(
Request request, {required String apiBasePath}) → Future< Response> -
GET /.well-known/oauth-authorization-server(RFC 8414). -
otherMethod(
Request request, {required String allow, bool crossOrigin = false}) → Response -
Any method a route does not serve: a CORS preflight where the endpoint
is
crossOrigin, and 405 namingallowotherwise. -
revoke(
Request request) → Future< Response> -
POST /oauth/revoke(RFC 7009). A token that is unknown or belongs to another client is answered like one that was revoked. -
token(
Request request) → Future< Response> -
POST /oauth/token:authorization_codewith PKCE,refresh_tokenandclient_credentials, as a form.
Constants
- What the consent screen reads: the client and the scope wording.
- consentPath → const String
- Where a valid authorization request is sent to be answered.
- introspectAction → const String
- The action a scope covers for its holder to introspect tokens. Defined by the framework, so a scope naming it needs no application policy.
- introspectionPath → const String
- maxBodyBytes → const int
- The most a form body to these endpoints may be.
- metadataPath → const String
- revocationPath → const String
- tokenPath → const String