Documentation
¶
Index ¶
- func ClientAssertion(privateJwk *jose.JSONWebKey, clientID string, endpoint string) (string, error)
- func OauthForm(scope, clientAssertion string) url.Values
- type ClientId
- type ClientRegistration
- type ClientRegistrationResponse
- type CustomClaims
- type Instance
- type SoftwareStatement
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientAssertion ¶
Types ¶
type ClientRegistration ¶
type ClientRegistration struct { ClientName string `json:"client_name"` Jwks jose.JSONWebKeySet `json:"jwks"` SoftwareStatement string `json:"software_statement"` }
func MakeClientRegistration ¶
func MakeClientRegistration(jwkerPrivateJwk *jose.JSONWebKey, clientPublicJwks *jose.JSONWebKeySet, appClientId ClientId, jwker v1.Jwker) (*ClientRegistration, error)
type ClientRegistrationResponse ¶
type ClientRegistrationResponse struct { ClientRegistration GrantTypes []string `json:"grant_types"` TokenEndpointAuthMethod string `json:"token_endpoint_auth_method"` }
type CustomClaims ¶
type CustomClaims struct { Issuer string `json:"iss,omitempty"` Subject string `json:"sub,omitempty"` Expiry jwt.NumericDate `json:"exp,omitempty"` NotBefore jwt.NumericDate `json:"nbf,omitempty"` IssuedAt jwt.NumericDate `json:"iat,omitempty"` ID string `json:"jti,omitempty"` Audience string `json:"aud,omitempty"` }
func Claims ¶
func Claims(clientid, audience string) CustomClaims
type Instance ¶
type Instance struct { BaseURL string ClientID string ClientJwk *jose.JSONWebKey Metadata *oauth.MetadataOAuth WellKnownURL string }
func NewInstance ¶
func (*Instance) DeleteClient ¶
func (*Instance) RegisterClient ¶
func (t *Instance) RegisterClient(cr ClientRegistration) error
type SoftwareStatement ¶
Click to show internal directories.
Click to hide internal directories.