Documentation ¶
Overview ¶
Package grpc spins an OpenID Connect Server using the coreos/dex implementation
Index ¶
- type Handler
- func (h *Handler) AcceptConsent(ctx context.Context, in *pauth.AcceptConsentRequest, ...) error
- func (h *Handler) AcceptLogin(ctx context.Context, in *pauth.AcceptLoginRequest, ...) error
- func (h *Handler) AcceptLogout(ctx context.Context, in *pauth.AcceptLogoutRequest, ...) error
- func (h *Handler) CreateAuthCode(ctx context.Context, in *pauth.CreateAuthCodeRequest, ...) error
- func (h *Handler) CreateConsent(ctx context.Context, in *pauth.CreateConsentRequest, ...) error
- func (h *Handler) CreateLogin(ctx context.Context, in *pauth.CreateLoginRequest, ...) error
- func (h *Handler) CreateLogout(ctx context.Context, in *pauth.CreateLogoutRequest, ...) error
- func (h *Handler) Exchange(ctx context.Context, in *pauth.ExchangeRequest, out *pauth.ExchangeResponse) error
- func (h *Handler) GetConsent(ctx context.Context, in *pauth.GetConsentRequest, ...) error
- func (h *Handler) GetLogin(ctx context.Context, in *pauth.GetLoginRequest, out *pauth.GetLoginResponse) error
- func (h *Handler) PasswordCredentialsToken(ctx context.Context, in *pauth.PasswordCredentialsTokenRequest, ...) error
- func (h *Handler) PruneTokens(ctx context.Context, in *pauth.PruneTokensRequest, ...) error
- func (h *Handler) Refresh(ctx context.Context, in *pauth.RefreshTokenRequest, ...) error
- func (h *Handler) Revoke(ctx context.Context, in *pauth.RevokeTokenRequest, ...) error
- func (h *Handler) Verify(ctx context.Context, in *pauth.VerifyTokenRequest, ...) error
- type PatHandler
- func (p *PatHandler) Generate(ctx context.Context, request *auth.PatGenerateRequest, ...) error
- func (p *PatHandler) List(ctx context.Context, request *auth.PatListRequest, ...) error
- func (p *PatHandler) PruneTokens(ctx context.Context, request *auth.PruneTokensRequest, ...) error
- func (p *PatHandler) Revoke(ctx context.Context, request *auth.PatRevokeRequest, ...) error
- func (p *PatHandler) Verify(ctx context.Context, request *auth.VerifyTokenRequest, ...) error
- type PatScopeClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler for the plugin
func (*Handler) AcceptConsent ¶
func (h *Handler) AcceptConsent(ctx context.Context, in *pauth.AcceptConsentRequest, out *pauth.AcceptConsentResponse) error
func (*Handler) AcceptLogin ¶
func (h *Handler) AcceptLogin(ctx context.Context, in *pauth.AcceptLoginRequest, out *pauth.AcceptLoginResponse) error
func (*Handler) AcceptLogout ¶
func (h *Handler) AcceptLogout(ctx context.Context, in *pauth.AcceptLogoutRequest, out *pauth.AcceptLogoutResponse) error
func (*Handler) CreateAuthCode ¶
func (h *Handler) CreateAuthCode(ctx context.Context, in *pauth.CreateAuthCodeRequest, out *pauth.CreateAuthCodeResponse) error
func (*Handler) CreateConsent ¶
func (h *Handler) CreateConsent(ctx context.Context, in *pauth.CreateConsentRequest, out *pauth.CreateConsentResponse) error
func (*Handler) CreateLogin ¶
func (h *Handler) CreateLogin(ctx context.Context, in *pauth.CreateLoginRequest, out *pauth.CreateLoginResponse) error
func (*Handler) CreateLogout ¶
func (h *Handler) CreateLogout(ctx context.Context, in *pauth.CreateLogoutRequest, out *pauth.CreateLogoutResponse) error
func (*Handler) Exchange ¶
func (h *Handler) Exchange(ctx context.Context, in *pauth.ExchangeRequest, out *pauth.ExchangeResponse) error
Exchange code for a proper token
func (*Handler) GetConsent ¶
func (h *Handler) GetConsent(ctx context.Context, in *pauth.GetConsentRequest, out *pauth.GetConsentResponse) error
func (*Handler) GetLogin ¶
func (h *Handler) GetLogin(ctx context.Context, in *pauth.GetLoginRequest, out *pauth.GetLoginResponse) error
func (*Handler) PasswordCredentialsToken ¶
func (h *Handler) PasswordCredentialsToken(ctx context.Context, in *pauth.PasswordCredentialsTokenRequest, out *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, out *pauth.PruneTokensResponse) error
PruneTokens garbage collect expired IdTokens and Tokens
func (*Handler) Refresh ¶
func (h *Handler) Refresh(ctx context.Context, in *pauth.RefreshTokenRequest, out *pauth.RefreshTokenResponse) error
Refresh token
func (*Handler) Revoke ¶
func (h *Handler) Revoke(ctx context.Context, in *pauth.RevokeTokenRequest, out *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, out *pauth.VerifyTokenResponse) error
Verify checks if the token is valid for hydra
type PatHandler ¶
type PatHandler struct {
// contains filtered or unexported fields
}
func (*PatHandler) Generate ¶
func (p *PatHandler) Generate(ctx context.Context, request *auth.PatGenerateRequest, response *auth.PatGenerateResponse) error
func (*PatHandler) List ¶
func (p *PatHandler) List(ctx context.Context, request *auth.PatListRequest, response *auth.PatListResponse) error
func (*PatHandler) PruneTokens ¶
func (p *PatHandler) PruneTokens(ctx context.Context, request *auth.PruneTokensRequest, response *auth.PruneTokensResponse) error
func (*PatHandler) Revoke ¶
func (p *PatHandler) Revoke(ctx context.Context, request *auth.PatRevokeRequest, response *auth.PatRevokeResponse) error
func (*PatHandler) Verify ¶
func (p *PatHandler) Verify(ctx context.Context, request *auth.VerifyTokenRequest, response *auth.VerifyTokenResponse) error
type PatScopeClaims ¶
type PatScopeClaims struct {
Scopes []string `json:"scopes"`
}
Click to show internal directories.
Click to hide internal directories.