Documentation ¶
Index ¶
- Variables
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetClientId() string
- func (x *AuthenticateRequest) GetConsented() bool
- func (x *AuthenticateRequest) GetRedirectUri() string
- func (x *AuthenticateRequest) GetResponseTypes() []string
- func (x *AuthenticateRequest) GetScopes() []string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetCode() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type ExchangeRequest
- func (*ExchangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeRequest) GetCode() string
- func (x *ExchangeRequest) GetGrantType() string
- func (x *ExchangeRequest) GetRedirectUri() string
- func (*ExchangeRequest) ProtoMessage()
- func (x *ExchangeRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeRequest) Reset()
- func (x *ExchangeRequest) String() string
- type ExchangeResponse
- func (*ExchangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeResponse) GetAccessToken() string
- func (x *ExchangeResponse) GetExpiresIn() uint32
- func (x *ExchangeResponse) GetIdToken() string
- func (x *ExchangeResponse) GetRefreshToken() string
- func (x *ExchangeResponse) GetTokenType() string
- func (*ExchangeResponse) ProtoMessage()
- func (x *ExchangeResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeResponse) Reset()
- func (x *ExchangeResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_oidc_v1_oidc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { // scopes MUST contains `openid` scope. Scopes []string `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"` // Supported type is only `code` (Authorization Code Flow) ResponseTypes []string `protobuf:"bytes,2,rep,name=response_types,json=responseTypes,proto3" json:"response_types,omitempty"` // OAuth 2.0 Client identifier ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Redirection URI to which the response will be sent. // This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider/ RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // Whether user consents to authorize/authenticate the client. Consented bool `protobuf:"varint,5,opt,name=consented,proto3" json:"consented,omitempty"` // contains filtered or unexported fields }
Spec: [OpenID Connect Core 1.0 Section 3.1.2.1.](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest)
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetClientId ¶
func (x *AuthenticateRequest) GetClientId() string
func (*AuthenticateRequest) GetConsented ¶
func (x *AuthenticateRequest) GetConsented() bool
func (*AuthenticateRequest) GetRedirectUri ¶
func (x *AuthenticateRequest) GetRedirectUri() string
func (*AuthenticateRequest) GetResponseTypes ¶
func (x *AuthenticateRequest) GetResponseTypes() []string
func (*AuthenticateRequest) GetScopes ¶
func (x *AuthenticateRequest) GetScopes() []string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶
type AuthenticateResponse struct { // OAuth 2.0 Authorization Code Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
Spec: [OpenID Connect Core 1.0 Section 3.1.2.6.](http://openid-foundation-japan.github.io/openid-connect-core-1_0.ja.html#AuthResponse)
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetCode ¶
func (x *AuthenticateResponse) GetCode() string
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
type ExchangeRequest ¶
type ExchangeRequest struct { // Grant type MUST be `authorization_code` GrantType string `protobuf:"bytes,1,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` // OAuth 2.0 Authorization Code Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // redirect_uri MUST be identical authenticate request `redirect_uri` value RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
Spec: [OpenID Connect Core 1.0 Section 3.1.3.1.](http://openid-foundation-japan.github.io/openid-connect-core-1_0.ja.html#TokenRequest)
func (*ExchangeRequest) Descriptor
deprecated
func (*ExchangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRequest.ProtoReflect.Descriptor instead.
func (*ExchangeRequest) GetCode ¶
func (x *ExchangeRequest) GetCode() string
func (*ExchangeRequest) GetGrantType ¶
func (x *ExchangeRequest) GetGrantType() string
func (*ExchangeRequest) GetRedirectUri ¶
func (x *ExchangeRequest) GetRedirectUri() string
func (*ExchangeRequest) ProtoMessage ¶
func (*ExchangeRequest) ProtoMessage()
func (*ExchangeRequest) ProtoReflect ¶
func (x *ExchangeRequest) ProtoReflect() protoreflect.Message
func (*ExchangeRequest) Reset ¶
func (x *ExchangeRequest) Reset()
func (*ExchangeRequest) String ¶
func (x *ExchangeRequest) String() string
type ExchangeResponse ¶
type ExchangeResponse struct { // Access Token AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // ID Token value associated with the authenticated session IdToken string `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` // Token type MUST be `Bearer`, as specified in [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750.htm) TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` // Lifetime in seconds of the access token. // Requirement level is MUST (Original spec is RECOMMENDED). ExpiresIn uint32 `protobuf:"varint,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` // Refresh token RefreshToken *string `protobuf:"bytes,5,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
Spec: [OpenID Connect Core 1.0 Section 3.1.3.3.](http://openid-foundation-japan.github.io/openid-connect-core-1_0.ja.html#TokenResponse)
func (*ExchangeResponse) Descriptor
deprecated
func (*ExchangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeResponse.ProtoReflect.Descriptor instead.
func (*ExchangeResponse) GetAccessToken ¶
func (x *ExchangeResponse) GetAccessToken() string
func (*ExchangeResponse) GetExpiresIn ¶
func (x *ExchangeResponse) GetExpiresIn() uint32
func (*ExchangeResponse) GetIdToken ¶
func (x *ExchangeResponse) GetIdToken() string
func (*ExchangeResponse) GetRefreshToken ¶
func (x *ExchangeResponse) GetRefreshToken() string
func (*ExchangeResponse) GetTokenType ¶
func (x *ExchangeResponse) GetTokenType() string
func (*ExchangeResponse) ProtoMessage ¶
func (*ExchangeResponse) ProtoMessage()
func (*ExchangeResponse) ProtoReflect ¶
func (x *ExchangeResponse) ProtoReflect() protoreflect.Message
func (*ExchangeResponse) Reset ¶
func (x *ExchangeResponse) Reset()
func (*ExchangeResponse) String ¶
func (x *ExchangeResponse) String() string