# README
oidc
Experimental OIDC library, for server and client use.
# Packages
No description provided by the author
No description provided by the author
Package core is an library implementation of helpers for implementing the core OIDC specification (https://openid.net/specs/openid-connect-core-1_0.html).
No description provided by the author
Package e2e contains high-level smoke tests for this module.
No description provided by the author
Package oauth2 implements base primitives for parsing oauth2 messages and errors.
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
IDToken extracts the ID token from the given oauth2 Token.
NewIDTokenSource wraps a token source, re-writing the ID token as the access token for outgoing requests.
No description provided by the author
NewUnixTime creates a UnixTime from the given Time, t.
No description provided by the author
No description provided by the author
TokenWithID reconstructs the oauth2 token, with the ID token added.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
ScopeAddress requests access to the address claim.
ScopeEmail requests access to the email and email_verified claims.
ScopeOpenID is the base OpenID Connect scope.
ScopePhone requests access to the phone_number and phone_number_verified claims.
ScopeProfile requests access to the user's default profile claims, which are: name, family_name, given_name, middle_name, nickname, preferred_username, profile, picture, website.
# Structs
AccessTokenClaims represents the set of JWT claims for an OAuth2 JWT Access token.
No description provided by the author
HTTPError indicates a generic HTTP error occurred during an interaction.
IDClaims represents the set of JWT claims for a user ID Token.
MarshaledToken is a wrapper for an oauth2 token, that allows the ID Token to be serialized as well if present.
No description provided by the author
ProviderMetadata implements the JSON structure that describes the configuration of an OIDC provider
https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
CodeChallengeMethod is https://www.rfc-editor.org/rfc/rfc7636#section-4.3.
StrOrSlice represents a JWT claim that can either be a single string, or a list of strings..
UnixTime represents the number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.