Documentation ¶
Overview ¶
Package grpc spins an OpenID Connect Server using the coreos/dex implementation
Index ¶
- Variables
- 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) LongVerifier() string
- func (h *Handler) Name() string
- 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) Name() string
- 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 ¶
View Source
var (
Name = common.ServiceGrpcNamespace_ + common.ServiceOAuth
)
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 // contains filtered or unexported fields }
Handler for the plugin
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) LongVerifier ¶
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) Name ¶
func (p *PatHandler) Name() string
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.