# Functions
Return authorization header data.
CheckClientSecret determines whether the given secret matches a secret held by the client.
DefaultConfig ...
No description provided by the author
FirstUri Returns the first uri from an uri list.
No description provided by the author
Parse urls, resolving uri references to base url.
ValidateUri validates that redirectUri is contained in baseUri.
ValidateUriList validates that redirectUri is contained in baseUriList.
WithAccessRequestAuthorized 设置authorized flag.
WithAuthorizeRequestAuthorized 设置authorize的flag信息.
WithAuthorizeRequestUserData 设置authorize的user data信息.
WithStorage 注入存储.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrNotFound is the error returned by Storage Get<...> and Load<...> functions in case no entity is found in the storage.
# Structs
AccessData represents an access grant (tokens, expiration, client, etc).
AccessRequest is a request for access tokens.
No description provided by the author
AccessTokenGenDefault is the default authorization token generator.
AuthorizeData ...
AuthorizeRequest information.
No description provided by the author
AuthorizeTokenGenDefault is the default authorization token generator.
Parse basic authentication header.
No description provided by the author
Parse bearer authentication header.
No description provided by the author
Component ...
Config contains server configuration information.
No description provided by the author
No description provided by the author
DefaultClient stores all data in struct variables.
No description provided by the author
# Interfaces
AccessTokenGen generates access tokens.
AuthorizeTokenGen is the token generator interface.
Client information.
ClientSecretMatcher is an optional interface clients can implement which allows them to be the one to determine if a secret matches.
Storage interface.
# Type aliases
AccessRequestOption 可选项.
AccessRequestType is the type for OAuth param `grant_type`.
AllowedAccessTypes is a collection of allowed access request types.
AllowedAuthorizeTypes is a collection of allowed auth request types.
AuthorizeRequestOption 可选项.
AuthorizeRequestType is the type for OAuth param `response_type`.
No description provided by the author
No description provided by the author
ResponseData for response output.
ResponseType enum.
error returned when validation don't match.