Documentation ¶
Index ¶
- type Handler
- func (h *Handler) AcceptConsent(ctx context.Context, in *pauth.AcceptConsentRequest) (*pauth.AcceptConsentResponse, error)
- func (h *Handler) AcceptLogin(ctx context.Context, in *pauth.AcceptLoginRequest) (*pauth.AcceptLoginResponse, error)
- func (h *Handler) AcceptLogout(ctx context.Context, in *pauth.AcceptLogoutRequest) (*pauth.AcceptLogoutResponse, error)
- func (h *Handler) CreateAuthCode(ctx context.Context, in *pauth.CreateAuthCodeRequest) (*pauth.CreateAuthCodeResponse, error)
- func (h *Handler) CreateConsent(ctx context.Context, in *pauth.CreateConsentRequest) (*pauth.CreateConsentResponse, error)
- func (h *Handler) CreateLogin(ctx context.Context, in *pauth.CreateLoginRequest) (*pauth.CreateLoginResponse, error)
- func (h *Handler) CreateLogout(ctx context.Context, in *pauth.CreateLogoutRequest) (*pauth.CreateLogoutResponse, error)
- func (h *Handler) Exchange(ctx context.Context, in *pauth.ExchangeRequest) (*pauth.ExchangeResponse, error)
- func (h *Handler) GetConsent(ctx context.Context, in *pauth.GetConsentRequest) (*pauth.GetConsentResponse, error)
- func (h *Handler) GetLogin(ctx context.Context, in *pauth.GetLoginRequest) (*pauth.GetLoginResponse, error)
- func (h *Handler) LoginChallengeCode(ctx context.Context, in *pauth.LoginChallengeCodeRequest) (*pauth.LoginChallengeCodeResponse, error)
- func (h *Handler) PasswordCredentialsCode(ctx context.Context, in *pauth.PasswordCredentialsCodeRequest) (*pauth.PasswordCredentialsCodeResponse, error)
- func (h *Handler) PasswordCredentialsToken(ctx context.Context, in *pauth.PasswordCredentialsTokenRequest) (*pauth.PasswordCredentialsTokenResponse, error)
- func (h *Handler) PruneTokens(ctx context.Context, in *pauth.PruneTokensRequest) (*pauth.PruneTokensResponse, error)
- func (h *Handler) Refresh(ctx context.Context, in *pauth.RefreshTokenRequest) (*pauth.RefreshTokenResponse, error)
- func (h *Handler) Revoke(ctx context.Context, in *pauth.RevokeTokenRequest) (*pauth.RevokeTokenResponse, error)
- func (h *Handler) Verify(ctx context.Context, in *pauth.VerifyTokenRequest) (*pauth.VerifyTokenResponse, error)
- type PATHandler
- func (p *PATHandler) Generate(ctx context.Context, request *auth.PatGenerateRequest) (*auth.PatGenerateResponse, error)
- func (p *PATHandler) List(ctx context.Context, request *auth.PatListRequest) (*auth.PatListResponse, error)
- func (p *PATHandler) PruneTokens(ctx context.Context, request *auth.PruneTokensRequest) (*auth.PruneTokensResponse, error)
- func (p *PATHandler) Revoke(ctx context.Context, request *auth.PatRevokeRequest) (*auth.PatRevokeResponse, error)
- func (p *PATHandler) Verify(ctx context.Context, request *auth.VerifyTokenRequest) (*auth.VerifyTokenResponse, error)
- type PATScopeClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { pauth.UnimplementedLoginProviderServer pauth.UnimplementedConsentProviderServer pauth.UnimplementedAuthCodeProviderServer pauth.UnimplementedAuthCodeExchangerServer pauth.UnimplementedAuthTokenRevokerServer pauth.UnimplementedAuthTokenVerifierServer pauth.UnimplementedAuthTokenRefresherServer pauth.UnimplementedAuthTokenPrunerServer pauth.UnimplementedPasswordCredentialsTokenServer pauth.UnimplementedLogoutProviderServer pauth.UnimplementedPasswordCredentialsCodeServer pauth.UnimplementedLoginChallengeCodeServer }
Handler for the plugin
func NewOAuthGRPCHandler ¶
func NewOAuthGRPCHandler() *Handler
func (*Handler) AcceptConsent ¶
func (h *Handler) AcceptConsent(ctx context.Context, in *pauth.AcceptConsentRequest) (*pauth.AcceptConsentResponse, error)
func (*Handler) AcceptLogin ¶
func (h *Handler) AcceptLogin(ctx context.Context, in *pauth.AcceptLoginRequest) (*pauth.AcceptLoginResponse, error)
func (*Handler) AcceptLogout ¶
func (h *Handler) AcceptLogout(ctx context.Context, in *pauth.AcceptLogoutRequest) (*pauth.AcceptLogoutResponse, error)
func (*Handler) CreateAuthCode ¶
func (h *Handler) CreateAuthCode(ctx context.Context, in *pauth.CreateAuthCodeRequest) (*pauth.CreateAuthCodeResponse, error)
func (*Handler) CreateConsent ¶
func (h *Handler) CreateConsent(ctx context.Context, in *pauth.CreateConsentRequest) (*pauth.CreateConsentResponse, error)
func (*Handler) CreateLogin ¶
func (h *Handler) CreateLogin(ctx context.Context, in *pauth.CreateLoginRequest) (*pauth.CreateLoginResponse, error)
func (*Handler) CreateLogout ¶
func (h *Handler) CreateLogout(ctx context.Context, in *pauth.CreateLogoutRequest) (*pauth.CreateLogoutResponse, error)
func (*Handler) Exchange ¶
func (h *Handler) Exchange(ctx context.Context, in *pauth.ExchangeRequest) (*pauth.ExchangeResponse, error)
Exchange code for a proper token
func (*Handler) GetConsent ¶
func (h *Handler) GetConsent(ctx context.Context, in *pauth.GetConsentRequest) (*pauth.GetConsentResponse, error)
func (*Handler) GetLogin ¶
func (h *Handler) GetLogin(ctx context.Context, in *pauth.GetLoginRequest) (*pauth.GetLoginResponse, error)
func (*Handler) LoginChallengeCode ¶
func (h *Handler) LoginChallengeCode(ctx context.Context, in *pauth.LoginChallengeCodeRequest) (*pauth.LoginChallengeCodeResponse, error)
func (*Handler) PasswordCredentialsCode ¶
func (h *Handler) PasswordCredentialsCode(ctx context.Context, in *pauth.PasswordCredentialsCodeRequest) (*pauth.PasswordCredentialsCodeResponse, error)
PasswordCredentialsCode validates the code information and generates a token
func (*Handler) PasswordCredentialsToken ¶
func (h *Handler) PasswordCredentialsToken(ctx context.Context, in *pauth.PasswordCredentialsTokenRequest) (*pauth.PasswordCredentialsTokenResponse, error)
PasswordCredentialsToken validates the login information and generates a token
func (*Handler) PruneTokens ¶
func (h *Handler) PruneTokens(ctx context.Context, in *pauth.PruneTokensRequest) (*pauth.PruneTokensResponse, error)
PruneTokens garbage collect expired IdTokens and Tokens
func (*Handler) Refresh ¶
func (h *Handler) Refresh(ctx context.Context, in *pauth.RefreshTokenRequest) (*pauth.RefreshTokenResponse, error)
Refresh token
func (*Handler) Revoke ¶
func (h *Handler) Revoke(ctx context.Context, in *pauth.RevokeTokenRequest) (*pauth.RevokeTokenResponse, error)
Revoke adds token to revocation list and eventually clear RefreshToken as well (directly inside Dex)
func (*Handler) Verify ¶
func (h *Handler) Verify(ctx context.Context, in *pauth.VerifyTokenRequest) (*pauth.VerifyTokenResponse, error)
Verify checks if the token is valid for hydra
type PATHandler ¶
type PATHandler struct { auth.UnimplementedAuthTokenPrunerServer auth.UnimplementedAuthTokenVerifierServer auth.UnimplementedPersonalAccessTokenServiceServer // contains filtered or unexported fields }
func (*PATHandler) Generate ¶
func (p *PATHandler) Generate(ctx context.Context, request *auth.PatGenerateRequest) (*auth.PatGenerateResponse, error)
func (*PATHandler) List ¶
func (p *PATHandler) List(ctx context.Context, request *auth.PatListRequest) (*auth.PatListResponse, error)
func (*PATHandler) PruneTokens ¶
func (p *PATHandler) PruneTokens(ctx context.Context, request *auth.PruneTokensRequest) (*auth.PruneTokensResponse, error)
func (*PATHandler) Revoke ¶
func (p *PATHandler) Revoke(ctx context.Context, request *auth.PatRevokeRequest) (*auth.PatRevokeResponse, error)
func (*PATHandler) Verify ¶
func (p *PATHandler) Verify(ctx context.Context, request *auth.VerifyTokenRequest) (*auth.VerifyTokenResponse, error)
type PATScopeClaims ¶
type PATScopeClaims struct {
Scopes []string `json:"scopes"`
}
Click to show internal directories.
Click to hide internal directories.