Documentation ¶
Index ¶
- Variables
- func CallEndSessionEndpoint(request interface{}, authFn interface{}, caller EndSessionCaller) (*url.URL, error)
- func CallRevokeEndpoint(request interface{}, authFn interface{}, caller RevokeCaller) error
- func CallTokenEndpoint(request interface{}, caller TokenEndpointCaller) (newToken *oauth2.Token, err error)
- func ClientAssertionCodeOptions(assertion string) []oauth2.AuthCodeOption
- func ClientAssertionFormAuthorization(assertion string) http.FormAuthorization
- func ConfigFromKeyFile(path string) (*keyFile, error)
- func ConfigFromKeyFileData(data []byte) (*keyFile, error)
- func Discover(issuer string, httpClient *http.Client, wellKnownUrl ...string) (*oidc.DiscoveryConfiguration, error)
- func JWTProfileExchange(jwtProfileGrantRequest *oidc.JWTProfileGrantRequest, ...) (*oauth2.Token, error)
- func NewSignerFromPrivateKeyByte(key []byte, keyID string) (jose.Signer, error)
- func SignedJWTProfileAssertion(clientID string, audience []string, expiration time.Duration, ...) (string, error)
- type EndSessionCaller
- type RevokeCaller
- type RevokeRequest
- type TokenEndpointCaller
Constants ¶
This section is empty.
Variables ¶
View Source
var Encoder = func() httphelper.Encoder { e := schema.NewEncoder() e.RegisterEncoder(oidc.SpaceDelimitedArray{}, func(value reflect.Value) string { return value.Interface().(oidc.SpaceDelimitedArray).Encode() }) return e }()
Functions ¶
func CallEndSessionEndpoint ¶ added in v1.10.0
func CallEndSessionEndpoint(request interface{}, authFn interface{}, caller EndSessionCaller) (*url.URL, error)
func CallRevokeEndpoint ¶ added in v1.11.0
func CallRevokeEndpoint(request interface{}, authFn interface{}, caller RevokeCaller) error
func CallTokenEndpoint ¶
func CallTokenEndpoint(request interface{}, caller TokenEndpointCaller) (newToken *oauth2.Token, err error)
func ClientAssertionCodeOptions ¶
func ClientAssertionCodeOptions(assertion string) []oauth2.AuthCodeOption
func ClientAssertionFormAuthorization ¶
func ClientAssertionFormAuthorization(assertion string) http.FormAuthorization
func ConfigFromKeyFile ¶
func ConfigFromKeyFileData ¶
func Discover ¶
func Discover(issuer string, httpClient *http.Client, wellKnownUrl ...string) (*oidc.DiscoveryConfiguration, error)
Discover calls the discovery endpoint of the provided issuer and returns its configuration It accepts an optional argument "wellknownUrl" which can be used to overide the dicovery endpoint url
func JWTProfileExchange ¶
func JWTProfileExchange(jwtProfileGrantRequest *oidc.JWTProfileGrantRequest, caller TokenEndpointCaller) (*oauth2.Token, error)
JWTProfileExchange handles the oauth2 jwt profile exchange
Types ¶
type EndSessionCaller ¶ added in v1.10.0
type RevokeCaller ¶ added in v1.11.0
type RevokeRequest ¶ added in v1.11.0
type TokenEndpointCaller ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.