package
0.0.0-20240804101347-d1f3b3bc4e17
Repository: https://github.com/swayedev/goauther.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Return authorization header data.
Return "Bearer" token from request.
CheckClientSecret determines whether the given secret matches a secret held by the client.
FirstUri returns the first uri from a URI list.
NewDefaultErrors initializes OAuth2 error codes and descriptions.
No description provided by the author
NewServer creates a new server instance.
NewServerConfig returns a new ServerConfig with default configuration.
OutputJSON encodes the Response to JSON and writes to the http.ResponseWriter.
ParseUrls parses URLs, resolving references to the base url.
ValidateUri validates that redirectUri is contained in baseUri.
ValidateUriList validates that redirectUri is contained in baseUriList.

# 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.
AccessTokenGenDefault is the default authorization token generator.
Authorization data.
Authorize request information.
AuthorizeTokenGenDefault is the default authorization token generator.
Parse basic authentication header.
Parse bearer authentication header.
DefaultClient stores all data in struct variables.
Default errors and messages.
InfoRequest is a request for information about some AccessData.
No description provided by the author
Server response.
Server is an OAuth2 implementation.
ServerConfig contains server configuration information.

# 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.
Logger creates a formatted log event.
Storage interface.

# Type aliases

AccessRequestType is the type for OAuth param `grant_type`.
AllowedAccessType is a collection of allowed access request types.
AllowedAuthorizeType is a collection of allowed auth request types.
AuthorizeRequestType is the type for OAuth param `response_type`.
No description provided by the author
Data for response output.
Response type enum.
error returned when validation don't match.