auth

package
v2.1.4-hotfix1+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package auth is a generated protocol buffer package.

It is generated from these files:

auth.proto

It has these top-level messages:

Token
RevokeTokenRequest
RevokeTokenResponse
PruneTokensRequest
PruneTokensResponse
ID
GetLoginRequest
GetLoginResponse
CreateLoginRequest
CreateLoginResponse
AcceptLoginRequest
AcceptLoginResponse
GetConsentRequest
GetConsentResponse
CreateConsentRequest
CreateConsentResponse
AcceptConsentRequest
AcceptConsentResponse
CreateLogoutRequest
CreateLogoutResponse
AcceptLogoutRequest
AcceptLogoutResponse
CreateAuthCodeRequest
CreateAuthCodeResponse
VerifyTokenRequest
VerifyTokenResponse
ExchangeRequest
ExchangeResponse
RefreshTokenRequest
RefreshTokenResponse

Package auth is a generated protocol buffer package.

It is generated from these files:

auth.proto

It has these top-level messages:

Token
RevokeTokenRequest
RevokeTokenResponse
PruneTokensRequest
PruneTokensResponse
ID
GetLoginRequest
GetLoginResponse
CreateLoginRequest
CreateLoginResponse
AcceptLoginRequest
AcceptLoginResponse
GetConsentRequest
GetConsentResponse
CreateConsentRequest
CreateConsentResponse
AcceptConsentRequest
AcceptConsentResponse
CreateLogoutRequest
CreateLogoutResponse
AcceptLogoutRequest
AcceptLogoutResponse
CreateAuthCodeRequest
CreateAuthCodeResponse
VerifyTokenRequest
VerifyTokenResponse
ExchangeRequest
ExchangeResponse
RefreshTokenRequest
RefreshTokenResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthCodeExchangerHandler

func RegisterAuthCodeExchangerHandler(s server.Server, hdlr AuthCodeExchangerHandler, opts ...server.HandlerOption)

func RegisterAuthCodeProviderHandler

func RegisterAuthCodeProviderHandler(s server.Server, hdlr AuthCodeProviderHandler, opts ...server.HandlerOption)

func RegisterAuthTokenRefresherHandler

func RegisterAuthTokenRefresherHandler(s server.Server, hdlr AuthTokenRefresherHandler, opts ...server.HandlerOption)

func RegisterAuthTokenRevokerHandler

func RegisterAuthTokenRevokerHandler(s server.Server, hdlr AuthTokenRevokerHandler, opts ...server.HandlerOption)

func RegisterAuthTokenVerifierHandler

func RegisterAuthTokenVerifierHandler(s server.Server, hdlr AuthTokenVerifierHandler, opts ...server.HandlerOption)

func RegisterConsentProviderHandler

func RegisterConsentProviderHandler(s server.Server, hdlr ConsentProviderHandler, opts ...server.HandlerOption)

func RegisterLoginProviderHandler

func RegisterLoginProviderHandler(s server.Server, hdlr LoginProviderHandler, opts ...server.HandlerOption)

func RegisterLogoutProviderHandler

func RegisterLogoutProviderHandler(s server.Server, hdlr LogoutProviderHandler, opts ...server.HandlerOption)

Types

type AcceptConsentRequest

type AcceptConsentRequest struct {
	Challenge   string            `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	Scopes      []string          `protobuf:"bytes,2,rep,name=Scopes" json:"Scopes,omitempty"`
	Audiences   []string          `protobuf:"bytes,3,rep,name=Audiences" json:"Audiences,omitempty"`
	AccessToken map[string]string `` /* 142-byte string literal not displayed */
	IDToken     map[string]string `` /* 134-byte string literal not displayed */
}

func (*AcceptConsentRequest) Descriptor

func (*AcceptConsentRequest) Descriptor() ([]byte, []int)

func (*AcceptConsentRequest) GetAccessToken

func (m *AcceptConsentRequest) GetAccessToken() map[string]string

func (*AcceptConsentRequest) GetAudiences

func (m *AcceptConsentRequest) GetAudiences() []string

func (*AcceptConsentRequest) GetChallenge

func (m *AcceptConsentRequest) GetChallenge() string

func (*AcceptConsentRequest) GetIDToken

func (m *AcceptConsentRequest) GetIDToken() map[string]string

func (*AcceptConsentRequest) GetScopes

func (m *AcceptConsentRequest) GetScopes() []string

func (*AcceptConsentRequest) ProtoMessage

func (*AcceptConsentRequest) ProtoMessage()

func (*AcceptConsentRequest) Reset

func (m *AcceptConsentRequest) Reset()

func (*AcceptConsentRequest) String

func (m *AcceptConsentRequest) String() string

func (*AcceptConsentRequest) Validate

func (this *AcceptConsentRequest) Validate() error

type AcceptConsentResponse

type AcceptConsentResponse struct {
}

func (*AcceptConsentResponse) Descriptor

func (*AcceptConsentResponse) Descriptor() ([]byte, []int)

func (*AcceptConsentResponse) ProtoMessage

func (*AcceptConsentResponse) ProtoMessage()

func (*AcceptConsentResponse) Reset

func (m *AcceptConsentResponse) Reset()

func (*AcceptConsentResponse) String

func (m *AcceptConsentResponse) String() string

func (*AcceptConsentResponse) Validate

func (this *AcceptConsentResponse) Validate() error

type AcceptLoginRequest

type AcceptLoginRequest struct {
	Challenge string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	Verifier  string `protobuf:"bytes,2,opt,name=Verifier" json:"Verifier,omitempty"`
	Subject   string `protobuf:"bytes,3,opt,name=Subject" json:"Subject,omitempty"`
}

func (*AcceptLoginRequest) Descriptor

func (*AcceptLoginRequest) Descriptor() ([]byte, []int)

func (*AcceptLoginRequest) GetChallenge

func (m *AcceptLoginRequest) GetChallenge() string

func (*AcceptLoginRequest) GetSubject

func (m *AcceptLoginRequest) GetSubject() string

func (*AcceptLoginRequest) GetVerifier

func (m *AcceptLoginRequest) GetVerifier() string

func (*AcceptLoginRequest) ProtoMessage

func (*AcceptLoginRequest) ProtoMessage()

func (*AcceptLoginRequest) Reset

func (m *AcceptLoginRequest) Reset()

func (*AcceptLoginRequest) String

func (m *AcceptLoginRequest) String() string

func (*AcceptLoginRequest) Validate

func (this *AcceptLoginRequest) Validate() error

type AcceptLoginResponse

type AcceptLoginResponse struct {
}

func (*AcceptLoginResponse) Descriptor

func (*AcceptLoginResponse) Descriptor() ([]byte, []int)

func (*AcceptLoginResponse) ProtoMessage

func (*AcceptLoginResponse) ProtoMessage()

func (*AcceptLoginResponse) Reset

func (m *AcceptLoginResponse) Reset()

func (*AcceptLoginResponse) String

func (m *AcceptLoginResponse) String() string

func (*AcceptLoginResponse) Validate

func (this *AcceptLoginResponse) Validate() error

type AcceptLogoutRequest

type AcceptLogoutRequest struct {
	Challenge    string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	AccessToken  string `protobuf:"bytes,2,opt,name=AccessToken" json:"AccessToken,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=RefreshToken" json:"RefreshToken,omitempty"`
}

func (*AcceptLogoutRequest) Descriptor

func (*AcceptLogoutRequest) Descriptor() ([]byte, []int)

func (*AcceptLogoutRequest) GetAccessToken

func (m *AcceptLogoutRequest) GetAccessToken() string

func (*AcceptLogoutRequest) GetChallenge

func (m *AcceptLogoutRequest) GetChallenge() string

func (*AcceptLogoutRequest) GetRefreshToken

func (m *AcceptLogoutRequest) GetRefreshToken() string

func (*AcceptLogoutRequest) ProtoMessage

func (*AcceptLogoutRequest) ProtoMessage()

func (*AcceptLogoutRequest) Reset

func (m *AcceptLogoutRequest) Reset()

func (*AcceptLogoutRequest) String

func (m *AcceptLogoutRequest) String() string

func (*AcceptLogoutRequest) Validate

func (this *AcceptLogoutRequest) Validate() error

type AcceptLogoutResponse

type AcceptLogoutResponse struct {
}

func (*AcceptLogoutResponse) Descriptor

func (*AcceptLogoutResponse) Descriptor() ([]byte, []int)

func (*AcceptLogoutResponse) ProtoMessage

func (*AcceptLogoutResponse) ProtoMessage()

func (*AcceptLogoutResponse) Reset

func (m *AcceptLogoutResponse) Reset()

func (*AcceptLogoutResponse) String

func (m *AcceptLogoutResponse) String() string

func (*AcceptLogoutResponse) Validate

func (this *AcceptLogoutResponse) Validate() error

type AuthCodeExchanger

type AuthCodeExchanger struct {
	AuthCodeExchangerHandler
}

func (*AuthCodeExchanger) Exchange

type AuthCodeExchangerClient

type AuthCodeExchangerClient interface {
	Exchange(ctx context.Context, in *ExchangeRequest, opts ...client.CallOption) (*ExchangeResponse, error)
}

func NewAuthCodeExchangerClient

func NewAuthCodeExchangerClient(serviceName string, c client.Client) AuthCodeExchangerClient

type AuthCodeExchangerHandler

type AuthCodeExchangerHandler interface {
	Exchange(context.Context, *ExchangeRequest, *ExchangeResponse) error
}

type AuthCodeProvider

type AuthCodeProvider struct {
	AuthCodeProviderHandler
}

func (*AuthCodeProvider) CreateAuthCode

type AuthCodeProviderClient

type AuthCodeProviderClient interface {
	CreateAuthCode(ctx context.Context, in *CreateAuthCodeRequest, opts ...client.CallOption) (*CreateAuthCodeResponse, error)
}

func NewAuthCodeProviderClient

func NewAuthCodeProviderClient(serviceName string, c client.Client) AuthCodeProviderClient

type AuthCodeProviderHandler

type AuthCodeProviderHandler interface {
	CreateAuthCode(context.Context, *CreateAuthCodeRequest, *CreateAuthCodeResponse) error
}

type AuthTokenRefresher

type AuthTokenRefresher struct {
	AuthTokenRefresherHandler
}

func (*AuthTokenRefresher) Refresh

type AuthTokenRefresherClient

type AuthTokenRefresherClient interface {
	Refresh(ctx context.Context, in *RefreshTokenRequest, opts ...client.CallOption) (*RefreshTokenResponse, error)
}

func NewAuthTokenRefresherClient

func NewAuthTokenRefresherClient(serviceName string, c client.Client) AuthTokenRefresherClient

type AuthTokenRefresherHandler

type AuthTokenRefresherHandler interface {
	Refresh(context.Context, *RefreshTokenRequest, *RefreshTokenResponse) error
}

type AuthTokenRevoker

type AuthTokenRevoker struct {
	AuthTokenRevokerHandler
}

func (*AuthTokenRevoker) PruneTokens

func (*AuthTokenRevoker) Revoke

type AuthTokenRevokerClient

type AuthTokenRevokerClient interface {
	// Revoker invalidates the current token and specifies if the invalidation is due to a refresh or a revokation
	Revoke(ctx context.Context, in *RevokeTokenRequest, opts ...client.CallOption) (*RevokeTokenResponse, error)
	// PruneTokens clear revoked tokens
	PruneTokens(ctx context.Context, in *PruneTokensRequest, opts ...client.CallOption) (*PruneTokensResponse, error)
}

func NewAuthTokenRevokerClient

func NewAuthTokenRevokerClient(serviceName string, c client.Client) AuthTokenRevokerClient

type AuthTokenRevokerHandler

type AuthTokenRevokerHandler interface {
	// Revoker invalidates the current token and specifies if the invalidation is due to a refresh or a revokation
	Revoke(context.Context, *RevokeTokenRequest, *RevokeTokenResponse) error
	// PruneTokens clear revoked tokens
	PruneTokens(context.Context, *PruneTokensRequest, *PruneTokensResponse) error
}

type AuthTokenVerifier

type AuthTokenVerifier struct {
	AuthTokenVerifierHandler
}

func (*AuthTokenVerifier) Verify

type AuthTokenVerifierClient

type AuthTokenVerifierClient interface {
	// Verifies a token and returns claims
	Verify(ctx context.Context, in *VerifyTokenRequest, opts ...client.CallOption) (*VerifyTokenResponse, error)
}

func NewAuthTokenVerifierClient

func NewAuthTokenVerifierClient(serviceName string, c client.Client) AuthTokenVerifierClient

type AuthTokenVerifierHandler

type AuthTokenVerifierHandler interface {
	// Verifies a token and returns claims
	Verify(context.Context, *VerifyTokenRequest, *VerifyTokenResponse) error
}

type ConsentProvider

type ConsentProvider struct {
	ConsentProviderHandler
}

func (*ConsentProvider) AcceptConsent

func (*ConsentProvider) CreateConsent

func (*ConsentProvider) GetConsent

type ConsentProviderClient

type ConsentProviderClient interface {
	GetConsent(ctx context.Context, in *GetConsentRequest, opts ...client.CallOption) (*GetConsentResponse, error)
	CreateConsent(ctx context.Context, in *CreateConsentRequest, opts ...client.CallOption) (*CreateConsentResponse, error)
	AcceptConsent(ctx context.Context, in *AcceptConsentRequest, opts ...client.CallOption) (*AcceptConsentResponse, error)
}

func NewConsentProviderClient

func NewConsentProviderClient(serviceName string, c client.Client) ConsentProviderClient

type CreateAuthCodeRequest

type CreateAuthCodeRequest struct {
	Consent     *ID    `protobuf:"bytes,1,opt,name=Consent" json:"Consent,omitempty"`
	ClientID    string `protobuf:"bytes,2,opt,name=ClientID" json:"ClientID,omitempty"`
	RedirectURI string `protobuf:"bytes,3,opt,name=RedirectURI" json:"RedirectURI,omitempty"`
}

func (*CreateAuthCodeRequest) Descriptor

func (*CreateAuthCodeRequest) Descriptor() ([]byte, []int)

func (*CreateAuthCodeRequest) GetClientID

func (m *CreateAuthCodeRequest) GetClientID() string

func (*CreateAuthCodeRequest) GetConsent

func (m *CreateAuthCodeRequest) GetConsent() *ID

func (*CreateAuthCodeRequest) GetRedirectURI

func (m *CreateAuthCodeRequest) GetRedirectURI() string

func (*CreateAuthCodeRequest) ProtoMessage

func (*CreateAuthCodeRequest) ProtoMessage()

func (*CreateAuthCodeRequest) Reset

func (m *CreateAuthCodeRequest) Reset()

func (*CreateAuthCodeRequest) String

func (m *CreateAuthCodeRequest) String() string

func (*CreateAuthCodeRequest) Validate

func (this *CreateAuthCodeRequest) Validate() error

type CreateAuthCodeResponse

type CreateAuthCodeResponse struct {
	Code string `protobuf:"bytes,1,opt,name=Code" json:"Code,omitempty"`
}

func (*CreateAuthCodeResponse) Descriptor

func (*CreateAuthCodeResponse) Descriptor() ([]byte, []int)

func (*CreateAuthCodeResponse) GetCode

func (m *CreateAuthCodeResponse) GetCode() string

func (*CreateAuthCodeResponse) ProtoMessage

func (*CreateAuthCodeResponse) ProtoMessage()

func (*CreateAuthCodeResponse) Reset

func (m *CreateAuthCodeResponse) Reset()

func (*CreateAuthCodeResponse) String

func (m *CreateAuthCodeResponse) String() string

func (*CreateAuthCodeResponse) Validate

func (this *CreateAuthCodeResponse) Validate() error

type CreateConsentRequest

type CreateConsentRequest struct {
	LoginChallenge string `protobuf:"bytes,1,opt,name=LoginChallenge" json:"LoginChallenge,omitempty"`
}

func (*CreateConsentRequest) Descriptor

func (*CreateConsentRequest) Descriptor() ([]byte, []int)

func (*CreateConsentRequest) GetLoginChallenge

func (m *CreateConsentRequest) GetLoginChallenge() string

func (*CreateConsentRequest) ProtoMessage

func (*CreateConsentRequest) ProtoMessage()

func (*CreateConsentRequest) Reset

func (m *CreateConsentRequest) Reset()

func (*CreateConsentRequest) String

func (m *CreateConsentRequest) String() string

func (*CreateConsentRequest) Validate

func (this *CreateConsentRequest) Validate() error

type CreateConsentResponse

type CreateConsentResponse struct {
	Consent *ID `protobuf:"bytes,1,opt,name=Consent" json:"Consent,omitempty"`
}

func (*CreateConsentResponse) Descriptor

func (*CreateConsentResponse) Descriptor() ([]byte, []int)

func (*CreateConsentResponse) GetConsent

func (m *CreateConsentResponse) GetConsent() *ID

func (*CreateConsentResponse) ProtoMessage

func (*CreateConsentResponse) ProtoMessage()

func (*CreateConsentResponse) Reset

func (m *CreateConsentResponse) Reset()

func (*CreateConsentResponse) String

func (m *CreateConsentResponse) String() string

func (*CreateConsentResponse) Validate

func (this *CreateConsentResponse) Validate() error

type CreateLoginRequest

type CreateLoginRequest struct {
	ClientID  string   `protobuf:"bytes,1,opt,name=ClientID" json:"ClientID,omitempty"`
	Scopes    []string `protobuf:"bytes,2,rep,name=Scopes" json:"Scopes,omitempty"`
	Audiences []string `protobuf:"bytes,3,rep,name=Audiences" json:"Audiences,omitempty"`
}

func (*CreateLoginRequest) Descriptor

func (*CreateLoginRequest) Descriptor() ([]byte, []int)

func (*CreateLoginRequest) GetAudiences

func (m *CreateLoginRequest) GetAudiences() []string

func (*CreateLoginRequest) GetClientID

func (m *CreateLoginRequest) GetClientID() string

func (*CreateLoginRequest) GetScopes

func (m *CreateLoginRequest) GetScopes() []string

func (*CreateLoginRequest) ProtoMessage

func (*CreateLoginRequest) ProtoMessage()

func (*CreateLoginRequest) Reset

func (m *CreateLoginRequest) Reset()

func (*CreateLoginRequest) String

func (m *CreateLoginRequest) String() string

func (*CreateLoginRequest) Validate

func (this *CreateLoginRequest) Validate() error

type CreateLoginResponse

type CreateLoginResponse struct {
	Login *ID `protobuf:"bytes,1,opt,name=Login" json:"Login,omitempty"`
}

func (*CreateLoginResponse) Descriptor

func (*CreateLoginResponse) Descriptor() ([]byte, []int)

func (*CreateLoginResponse) GetLogin

func (m *CreateLoginResponse) GetLogin() *ID

func (*CreateLoginResponse) ProtoMessage

func (*CreateLoginResponse) ProtoMessage()

func (*CreateLoginResponse) Reset

func (m *CreateLoginResponse) Reset()

func (*CreateLoginResponse) String

func (m *CreateLoginResponse) String() string

func (*CreateLoginResponse) Validate

func (this *CreateLoginResponse) Validate() error

type CreateLogoutRequest

type CreateLogoutRequest struct {
	RequestURL string `protobuf:"bytes,1,opt,name=RequestURL" json:"RequestURL,omitempty"`
	Subject    string `protobuf:"bytes,2,opt,name=Subject" json:"Subject,omitempty"`
	SessionID  string `protobuf:"bytes,3,opt,name=SessionID" json:"SessionID,omitempty"`
}

func (*CreateLogoutRequest) Descriptor

func (*CreateLogoutRequest) Descriptor() ([]byte, []int)

func (*CreateLogoutRequest) GetRequestURL

func (m *CreateLogoutRequest) GetRequestURL() string

func (*CreateLogoutRequest) GetSessionID

func (m *CreateLogoutRequest) GetSessionID() string

func (*CreateLogoutRequest) GetSubject

func (m *CreateLogoutRequest) GetSubject() string

func (*CreateLogoutRequest) ProtoMessage

func (*CreateLogoutRequest) ProtoMessage()

func (*CreateLogoutRequest) Reset

func (m *CreateLogoutRequest) Reset()

func (*CreateLogoutRequest) String

func (m *CreateLogoutRequest) String() string

func (*CreateLogoutRequest) Validate

func (this *CreateLogoutRequest) Validate() error

type CreateLogoutResponse

type CreateLogoutResponse struct {
	Logout *ID `protobuf:"bytes,1,opt,name=Logout" json:"Logout,omitempty"`
}

func (*CreateLogoutResponse) Descriptor

func (*CreateLogoutResponse) Descriptor() ([]byte, []int)

func (*CreateLogoutResponse) GetLogout

func (m *CreateLogoutResponse) GetLogout() *ID

func (*CreateLogoutResponse) ProtoMessage

func (*CreateLogoutResponse) ProtoMessage()

func (*CreateLogoutResponse) Reset

func (m *CreateLogoutResponse) Reset()

func (*CreateLogoutResponse) String

func (m *CreateLogoutResponse) String() string

func (*CreateLogoutResponse) Validate

func (this *CreateLogoutResponse) Validate() error

type ExchangeRequest

type ExchangeRequest struct {
	Code         string `protobuf:"bytes,1,opt,name=Code,json=code" json:"Code,omitempty"`
	CodeVerifier string `protobuf:"bytes,2,opt,name=CodeVerifier,json=code_verifier" json:"CodeVerifier,omitempty"`
}

func (*ExchangeRequest) Descriptor

func (*ExchangeRequest) Descriptor() ([]byte, []int)

func (*ExchangeRequest) GetCode

func (m *ExchangeRequest) GetCode() string

func (*ExchangeRequest) GetCodeVerifier

func (m *ExchangeRequest) GetCodeVerifier() string

func (*ExchangeRequest) ProtoMessage

func (*ExchangeRequest) ProtoMessage()

func (*ExchangeRequest) Reset

func (m *ExchangeRequest) Reset()

func (*ExchangeRequest) String

func (m *ExchangeRequest) String() string

func (*ExchangeRequest) Validate

func (this *ExchangeRequest) Validate() error

type ExchangeResponse

type ExchangeResponse struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=AccessToken,json=access_token" json:"AccessToken,omitempty"`
	IDToken      string `protobuf:"bytes,2,opt,name=IDToken,json=id_token" json:"IDToken,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=RefreshToken,json=refresh_token" json:"RefreshToken,omitempty"`
	Expiry       int64  `protobuf:"varint,4,opt,name=Expiry,json=expiry" json:"Expiry,omitempty"`
}

func (*ExchangeResponse) Descriptor

func (*ExchangeResponse) Descriptor() ([]byte, []int)

func (*ExchangeResponse) GetAccessToken

func (m *ExchangeResponse) GetAccessToken() string

func (*ExchangeResponse) GetExpiry

func (m *ExchangeResponse) GetExpiry() int64

func (*ExchangeResponse) GetIDToken

func (m *ExchangeResponse) GetIDToken() string

func (*ExchangeResponse) GetRefreshToken

func (m *ExchangeResponse) GetRefreshToken() string

func (*ExchangeResponse) ProtoMessage

func (*ExchangeResponse) ProtoMessage()

func (*ExchangeResponse) Reset

func (m *ExchangeResponse) Reset()

func (*ExchangeResponse) String

func (m *ExchangeResponse) String() string

func (*ExchangeResponse) Validate

func (this *ExchangeResponse) Validate() error

type GetConsentRequest

type GetConsentRequest struct {
	Challenge string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
}

func (*GetConsentRequest) Descriptor

func (*GetConsentRequest) Descriptor() ([]byte, []int)

func (*GetConsentRequest) GetChallenge

func (m *GetConsentRequest) GetChallenge() string

func (*GetConsentRequest) ProtoMessage

func (*GetConsentRequest) ProtoMessage()

func (*GetConsentRequest) Reset

func (m *GetConsentRequest) Reset()

func (*GetConsentRequest) String

func (m *GetConsentRequest) String() string

func (*GetConsentRequest) Validate

func (this *GetConsentRequest) Validate() error

type GetConsentResponse

type GetConsentResponse struct {
	Challenge         string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	LoginSessionID    string `protobuf:"bytes,2,opt,name=LoginSessionID" json:"LoginSessionID,omitempty"`
	SubjectIdentifier string `protobuf:"bytes,3,opt,name=SubjectIdentifier" json:"SubjectIdentifier,omitempty"`
	Subject           string `protobuf:"bytes,4,opt,name=Subject" json:"Subject,omitempty"`
	ClientID          string `protobuf:"bytes,5,opt,name=ClientID" json:"ClientID,omitempty"`
}

func (*GetConsentResponse) Descriptor

func (*GetConsentResponse) Descriptor() ([]byte, []int)

func (*GetConsentResponse) GetChallenge

func (m *GetConsentResponse) GetChallenge() string

func (*GetConsentResponse) GetClientID

func (m *GetConsentResponse) GetClientID() string

func (*GetConsentResponse) GetLoginSessionID

func (m *GetConsentResponse) GetLoginSessionID() string

func (*GetConsentResponse) GetSubject

func (m *GetConsentResponse) GetSubject() string

func (*GetConsentResponse) GetSubjectIdentifier

func (m *GetConsentResponse) GetSubjectIdentifier() string

func (*GetConsentResponse) ProtoMessage

func (*GetConsentResponse) ProtoMessage()

func (*GetConsentResponse) Reset

func (m *GetConsentResponse) Reset()

func (*GetConsentResponse) String

func (m *GetConsentResponse) String() string

func (*GetConsentResponse) Validate

func (this *GetConsentResponse) Validate() error

type GetLoginRequest

type GetLoginRequest struct {
	Challenge string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
}

func (*GetLoginRequest) Descriptor

func (*GetLoginRequest) Descriptor() ([]byte, []int)

func (*GetLoginRequest) GetChallenge

func (m *GetLoginRequest) GetChallenge() string

func (*GetLoginRequest) ProtoMessage

func (*GetLoginRequest) ProtoMessage()

func (*GetLoginRequest) Reset

func (m *GetLoginRequest) Reset()

func (*GetLoginRequest) String

func (m *GetLoginRequest) String() string

func (*GetLoginRequest) Validate

func (this *GetLoginRequest) Validate() error

type GetLoginResponse

type GetLoginResponse struct {
	Challenge         string   `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	Subject           string   `protobuf:"bytes,2,opt,name=Subject" json:"Subject,omitempty"`
	SessionID         string   `protobuf:"bytes,3,opt,name=SessionID" json:"SessionID,omitempty"`
	RequestURL        string   `protobuf:"bytes,4,opt,name=RequestURL" json:"RequestURL,omitempty"`
	RequestedScope    []string `protobuf:"bytes,5,rep,name=RequestedScope" json:"RequestedScope,omitempty"`
	RequestedAudience []string `protobuf:"bytes,6,rep,name=RequestedAudience" json:"RequestedAudience,omitempty"`
	ClientID          string   `protobuf:"bytes,7,opt,name=ClientID" json:"ClientID,omitempty"`
}

func (*GetLoginResponse) Descriptor

func (*GetLoginResponse) Descriptor() ([]byte, []int)

func (*GetLoginResponse) GetChallenge

func (m *GetLoginResponse) GetChallenge() string

func (*GetLoginResponse) GetClientID

func (m *GetLoginResponse) GetClientID() string

func (*GetLoginResponse) GetRequestURL

func (m *GetLoginResponse) GetRequestURL() string

func (*GetLoginResponse) GetRequestedAudience

func (m *GetLoginResponse) GetRequestedAudience() []string

func (*GetLoginResponse) GetRequestedScope

func (m *GetLoginResponse) GetRequestedScope() []string

func (*GetLoginResponse) GetSessionID

func (m *GetLoginResponse) GetSessionID() string

func (*GetLoginResponse) GetSubject

func (m *GetLoginResponse) GetSubject() string

func (*GetLoginResponse) ProtoMessage

func (*GetLoginResponse) ProtoMessage()

func (*GetLoginResponse) Reset

func (m *GetLoginResponse) Reset()

func (*GetLoginResponse) String

func (m *GetLoginResponse) String() string

func (*GetLoginResponse) Validate

func (this *GetLoginResponse) Validate() error

type ID

type ID struct {
	Challenge string `protobuf:"bytes,1,opt,name=Challenge" json:"Challenge,omitempty"`
	Verifier  string `protobuf:"bytes,2,opt,name=Verifier" json:"Verifier,omitempty"`
	CSRF      string `protobuf:"bytes,3,opt,name=CSRF" json:"CSRF,omitempty"`
}

func (*ID) Descriptor

func (*ID) Descriptor() ([]byte, []int)

func (*ID) GetCSRF

func (m *ID) GetCSRF() string

func (*ID) GetChallenge

func (m *ID) GetChallenge() string

func (*ID) GetVerifier

func (m *ID) GetVerifier() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

func (*ID) Validate

func (this *ID) Validate() error

type LoginProvider

type LoginProvider struct {
	LoginProviderHandler
}

func (*LoginProvider) AcceptLogin

func (*LoginProvider) CreateLogin

func (*LoginProvider) GetLogin

func (h *LoginProvider) GetLogin(ctx context.Context, in *GetLoginRequest, out *GetLoginResponse) error

type LoginProviderClient

type LoginProviderClient interface {
	GetLogin(ctx context.Context, in *GetLoginRequest, opts ...client.CallOption) (*GetLoginResponse, error)
	CreateLogin(ctx context.Context, in *CreateLoginRequest, opts ...client.CallOption) (*CreateLoginResponse, error)
	AcceptLogin(ctx context.Context, in *AcceptLoginRequest, opts ...client.CallOption) (*AcceptLoginResponse, error)
}

func NewLoginProviderClient

func NewLoginProviderClient(serviceName string, c client.Client) LoginProviderClient

type LogoutProvider

type LogoutProvider struct {
	LogoutProviderHandler
}

func (*LogoutProvider) AcceptLogout

func (*LogoutProvider) CreateLogout

type LogoutProviderClient

type LogoutProviderClient interface {
	CreateLogout(ctx context.Context, in *CreateLogoutRequest, opts ...client.CallOption) (*CreateLogoutResponse, error)
	AcceptLogout(ctx context.Context, in *AcceptLogoutRequest, opts ...client.CallOption) (*AcceptLogoutResponse, error)
}

func NewLogoutProviderClient

func NewLogoutProviderClient(serviceName string, c client.Client) LogoutProviderClient

type LogoutProviderHandler

type LogoutProviderHandler interface {
	CreateLogout(context.Context, *CreateLogoutRequest, *CreateLogoutResponse) error
	AcceptLogout(context.Context, *AcceptLogoutRequest, *AcceptLogoutResponse) error
}

type PruneTokensRequest

type PruneTokensRequest struct {
}

func (*PruneTokensRequest) Descriptor

func (*PruneTokensRequest) Descriptor() ([]byte, []int)

func (*PruneTokensRequest) ProtoMessage

func (*PruneTokensRequest) ProtoMessage()

func (*PruneTokensRequest) Reset

func (m *PruneTokensRequest) Reset()

func (*PruneTokensRequest) String

func (m *PruneTokensRequest) String() string

func (*PruneTokensRequest) Validate

func (this *PruneTokensRequest) Validate() error

type PruneTokensResponse

type PruneTokensResponse struct {
	Tokens []string `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
}

func (*PruneTokensResponse) Descriptor

func (*PruneTokensResponse) Descriptor() ([]byte, []int)

func (*PruneTokensResponse) GetTokens

func (m *PruneTokensResponse) GetTokens() []string

func (*PruneTokensResponse) ProtoMessage

func (*PruneTokensResponse) ProtoMessage()

func (*PruneTokensResponse) Reset

func (m *PruneTokensResponse) Reset()

func (*PruneTokensResponse) String

func (m *PruneTokensResponse) String() string

func (*PruneTokensResponse) Validate

func (this *PruneTokensResponse) Validate() error

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=RefreshToken" json:"RefreshToken,omitempty"`
}

func (*RefreshTokenRequest) Descriptor

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

func (*RefreshTokenRequest) GetRefreshToken

func (m *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) Reset

func (m *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (m *RefreshTokenRequest) String() string

func (*RefreshTokenRequest) Validate

func (this *RefreshTokenRequest) Validate() error

type RefreshTokenResponse

type RefreshTokenResponse struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=AccessToken,json=access_token" json:"AccessToken,omitempty"`
	IDToken      string `protobuf:"bytes,2,opt,name=IDToken,json=id_token" json:"IDToken,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=RefreshToken,json=refresh_token" json:"RefreshToken,omitempty"`
	Expiry       int64  `protobuf:"varint,4,opt,name=Expiry,json=expiry" json:"Expiry,omitempty"`
}

func (*RefreshTokenResponse) Descriptor

func (*RefreshTokenResponse) Descriptor() ([]byte, []int)

func (*RefreshTokenResponse) GetAccessToken

func (m *RefreshTokenResponse) GetAccessToken() string

func (*RefreshTokenResponse) GetExpiry

func (m *RefreshTokenResponse) GetExpiry() int64

func (*RefreshTokenResponse) GetIDToken

func (m *RefreshTokenResponse) GetIDToken() string

func (*RefreshTokenResponse) GetRefreshToken

func (m *RefreshTokenResponse) GetRefreshToken() string

func (*RefreshTokenResponse) ProtoMessage

func (*RefreshTokenResponse) ProtoMessage()

func (*RefreshTokenResponse) Reset

func (m *RefreshTokenResponse) Reset()

func (*RefreshTokenResponse) String

func (m *RefreshTokenResponse) String() string

func (*RefreshTokenResponse) Validate

func (this *RefreshTokenResponse) Validate() error

type RevokeTokenRequest

type RevokeTokenRequest struct {
	Token *Token `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}

func (*RevokeTokenRequest) Descriptor

func (*RevokeTokenRequest) Descriptor() ([]byte, []int)

func (*RevokeTokenRequest) GetToken

func (m *RevokeTokenRequest) GetToken() *Token

func (*RevokeTokenRequest) ProtoMessage

func (*RevokeTokenRequest) ProtoMessage()

func (*RevokeTokenRequest) Reset

func (m *RevokeTokenRequest) Reset()

func (*RevokeTokenRequest) String

func (m *RevokeTokenRequest) String() string

func (*RevokeTokenRequest) Validate

func (this *RevokeTokenRequest) Validate() error

type RevokeTokenResponse

type RevokeTokenResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*RevokeTokenResponse) Descriptor

func (*RevokeTokenResponse) Descriptor() ([]byte, []int)

func (*RevokeTokenResponse) GetSuccess

func (m *RevokeTokenResponse) GetSuccess() bool

func (*RevokeTokenResponse) ProtoMessage

func (*RevokeTokenResponse) ProtoMessage()

func (*RevokeTokenResponse) Reset

func (m *RevokeTokenResponse) Reset()

func (*RevokeTokenResponse) String

func (m *RevokeTokenResponse) String() string

func (*RevokeTokenResponse) Validate

func (this *RevokeTokenResponse) Validate() error

type Token

type Token struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=AccessToken" json:"AccessToken,omitempty"`
	IDToken      string `protobuf:"bytes,2,opt,name=IDToken" json:"IDToken,omitempty"`
	RefreshToken string `protobuf:"bytes,3,opt,name=RefreshToken" json:"RefreshToken,omitempty"`
	ExpiresAt    string `protobuf:"bytes,4,opt,name=ExpiresAt" json:"ExpiresAt,omitempty"`
}

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetAccessToken

func (m *Token) GetAccessToken() string

func (*Token) GetExpiresAt

func (m *Token) GetExpiresAt() string

func (*Token) GetIDToken

func (m *Token) GetIDToken() string

func (*Token) GetRefreshToken

func (m *Token) GetRefreshToken() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) Validate

func (this *Token) Validate() error

type VerifyTokenRequest

type VerifyTokenRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}

func (*VerifyTokenRequest) Descriptor

func (*VerifyTokenRequest) Descriptor() ([]byte, []int)

func (*VerifyTokenRequest) GetToken

func (m *VerifyTokenRequest) GetToken() string

func (*VerifyTokenRequest) ProtoMessage

func (*VerifyTokenRequest) ProtoMessage()

func (*VerifyTokenRequest) Reset

func (m *VerifyTokenRequest) Reset()

func (*VerifyTokenRequest) String

func (m *VerifyTokenRequest) String() string

func (*VerifyTokenRequest) Validate

func (this *VerifyTokenRequest) Validate() error

type VerifyTokenResponse

type VerifyTokenResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
	Data    []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (*VerifyTokenResponse) Descriptor

func (*VerifyTokenResponse) Descriptor() ([]byte, []int)

func (*VerifyTokenResponse) GetData

func (m *VerifyTokenResponse) GetData() []byte

func (*VerifyTokenResponse) GetSuccess

func (m *VerifyTokenResponse) GetSuccess() bool

func (*VerifyTokenResponse) ProtoMessage

func (*VerifyTokenResponse) ProtoMessage()

func (*VerifyTokenResponse) Reset

func (m *VerifyTokenResponse) Reset()

func (*VerifyTokenResponse) String

func (m *VerifyTokenResponse) String() string

func (*VerifyTokenResponse) Validate

func (this *VerifyTokenResponse) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL