Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IodcTokenResponse ¶ added in v0.373.0
type IodcTokenResponse struct { authapi.TokenResponse IdToken string `json:"id_token"` }
type OAuthClient ¶ added in v0.373.0
type OidcServer ¶
type OidcServer struct { Issuer string Config map[string]any IdTokenLifespan time.Duration PrivateKey *rsa.PrivateKey Users map[string]*oauth.UserClaims TokenUrl string AuthorizeUrl string // contains filtered or unexported fields }
func NewServer ¶ added in v0.373.0
func NewServer() (*OidcServer, error)
func (*OidcServer) Close ¶
func (o *OidcServer) Close()
func (*OidcServer) FetchIdToken ¶
func (o *OidcServer) FetchIdToken(sub string, aud []string) (string, error)
func (*OidcServer) RenewPrivateKey ¶
func (o *OidcServer) RenewPrivateKey() error
func (*OidcServer) SetUser ¶
func (o *OidcServer) SetUser(sub string, claims *oauth.UserClaims)
func (*OidcServer) WithOAuthClient ¶ added in v0.373.0
func (o *OidcServer) WithOAuthClient(client *OAuthClient)
Click to show internal directories.
Click to hide internal directories.