Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterIntrospectionServiceServer(s grpc.ServiceRegistrar, srv IntrospectionServiceServer)
- func RegisterRevocatonServiceServer(s grpc.ServiceRegistrar, srv RevocatonServiceServer)
- type Actor
- func (*Actor) Descriptor() ([]byte, []int)deprecated
- func (x *Actor) GetAct() *Actor
- func (x *Actor) GetClientId() string
- func (x *Actor) GetIssuer() string
- func (x *Actor) GetSubject() string
- func (msg *Actor) MarshalJSON() ([]byte, error)
- func (m *Actor) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Actor) MarshalToVT(dAtA []byte) (int, error)
- func (m *Actor) MarshalVT() (dAtA []byte, err error)
- func (*Actor) ProtoMessage()
- func (x *Actor) ProtoReflect() protoreflect.Message
- func (x *Actor) Reset()
- func (m *Actor) SizeVT() (n int)
- func (x *Actor) String() string
- func (msg *Actor) UnmarshalJSON(b []byte) error
- func (m *Actor) UnmarshalVT(dAtA []byte) error
- type IntrospectRequest
- func (*IntrospectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IntrospectRequest) GetClient() *v1.Client
- func (x *IntrospectRequest) GetIssuer() string
- func (x *IntrospectRequest) GetToken() string
- func (x *IntrospectRequest) GetTokenTypeHint() string
- func (msg *IntrospectRequest) MarshalJSON() ([]byte, error)
- func (m *IntrospectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *IntrospectRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *IntrospectRequest) MarshalVT() (dAtA []byte, err error)
- func (*IntrospectRequest) ProtoMessage()
- func (x *IntrospectRequest) ProtoReflect() protoreflect.Message
- func (x *IntrospectRequest) Reset()
- func (m *IntrospectRequest) SizeVT() (n int)
- func (x *IntrospectRequest) String() string
- func (msg *IntrospectRequest) UnmarshalJSON(b []byte) error
- func (m *IntrospectRequest) UnmarshalVT(dAtA []byte) error
- type IntrospectResponse
- func (*IntrospectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IntrospectResponse) GetError() *v11.Error
- func (x *IntrospectResponse) GetToken() *Token
- func (msg *IntrospectResponse) MarshalJSON() ([]byte, error)
- func (m *IntrospectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *IntrospectResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *IntrospectResponse) MarshalVT() (dAtA []byte, err error)
- func (*IntrospectResponse) ProtoMessage()
- func (x *IntrospectResponse) ProtoReflect() protoreflect.Message
- func (x *IntrospectResponse) Reset()
- func (m *IntrospectResponse) SizeVT() (n int)
- func (x *IntrospectResponse) String() string
- func (msg *IntrospectResponse) UnmarshalJSON(b []byte) error
- func (m *IntrospectResponse) UnmarshalVT(dAtA []byte) error
- type IntrospectionServiceClient
- type IntrospectionServiceServer
- type OAuthTokenResponse
- func (*OAuthTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthTokenResponse) GetAccessToken() string
- func (x *OAuthTokenResponse) GetExpiresIn() uint64
- func (x *OAuthTokenResponse) GetIdToken() string
- func (x *OAuthTokenResponse) GetRefreshToken() string
- func (x *OAuthTokenResponse) GetTokenType() string
- func (msg *OAuthTokenResponse) MarshalJSON() ([]byte, error)
- func (m *OAuthTokenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *OAuthTokenResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *OAuthTokenResponse) MarshalVT() (dAtA []byte, err error)
- func (*OAuthTokenResponse) ProtoMessage()
- func (x *OAuthTokenResponse) ProtoReflect() protoreflect.Message
- func (x *OAuthTokenResponse) Reset()
- func (m *OAuthTokenResponse) SizeVT() (n int)
- func (x *OAuthTokenResponse) String() string
- func (msg *OAuthTokenResponse) UnmarshalJSON(b []byte) error
- func (m *OAuthTokenResponse) UnmarshalVT(dAtA []byte) error
- type RevocatonServiceClient
- type RevocatonServiceServer
- type RevokeRequest
- func (*RevokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRequest) GetClient() *v1.Client
- func (x *RevokeRequest) GetIssuer() string
- func (x *RevokeRequest) GetToken() string
- func (x *RevokeRequest) GetTokenTypeHint() string
- func (msg *RevokeRequest) MarshalJSON() ([]byte, error)
- func (m *RevokeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RevokeRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RevokeRequest) MarshalVT() (dAtA []byte, err error)
- func (*RevokeRequest) ProtoMessage()
- func (x *RevokeRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRequest) Reset()
- func (m *RevokeRequest) SizeVT() (n int)
- func (x *RevokeRequest) String() string
- func (msg *RevokeRequest) UnmarshalJSON(b []byte) error
- func (m *RevokeRequest) UnmarshalVT(dAtA []byte) error
- type RevokeResponse
- func (*RevokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeResponse) GetError() *v11.Error
- func (msg *RevokeResponse) MarshalJSON() ([]byte, error)
- func (m *RevokeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RevokeResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *RevokeResponse) MarshalVT() (dAtA []byte, err error)
- func (*RevokeResponse) ProtoMessage()
- func (x *RevokeResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeResponse) Reset()
- func (m *RevokeResponse) SizeVT() (n int)
- func (x *RevokeResponse) String() string
- func (msg *RevokeResponse) UnmarshalJSON(b []byte) error
- func (m *RevokeResponse) UnmarshalVT(dAtA []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetActor() []*Actor
- func (x *Token) GetConfirmation() *TokenConfirmation
- func (x *Token) GetIssuer() string
- func (x *Token) GetMayAct() []*Actor
- func (x *Token) GetMetadata() *TokenMeta
- func (x *Token) GetPhantom() string
- func (x *Token) GetStatus() TokenStatus
- func (x *Token) GetTokenId() string
- func (x *Token) GetTokenType() TokenType
- func (x *Token) GetValue() string
- func (msg *Token) MarshalJSON() ([]byte, error)
- func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Token) MarshalToVT(dAtA []byte) (int, error)
- func (m *Token) MarshalVT() (dAtA []byte, err error)
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (m *Token) SizeVT() (n int)
- func (x *Token) String() string
- func (msg *Token) UnmarshalJSON(b []byte) error
- func (m *Token) UnmarshalVT(dAtA []byte) error
- type TokenConfirmation
- func (*TokenConfirmation) Descriptor() ([]byte, []int)deprecated
- func (x *TokenConfirmation) GetJkt() string
- func (msg *TokenConfirmation) MarshalJSON() ([]byte, error)
- func (m *TokenConfirmation) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TokenConfirmation) MarshalToVT(dAtA []byte) (int, error)
- func (m *TokenConfirmation) MarshalVT() (dAtA []byte, err error)
- func (*TokenConfirmation) ProtoMessage()
- func (x *TokenConfirmation) ProtoReflect() protoreflect.Message
- func (x *TokenConfirmation) Reset()
- func (m *TokenConfirmation) SizeVT() (n int)
- func (x *TokenConfirmation) String() string
- func (msg *TokenConfirmation) UnmarshalJSON(b []byte) error
- func (m *TokenConfirmation) UnmarshalVT(dAtA []byte) error
- type TokenMeta
- func (*TokenMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TokenMeta) GetAcr() string
- func (x *TokenMeta) GetAudience() string
- func (x *TokenMeta) GetAuthTime() uint64
- func (x *TokenMeta) GetClientId() string
- func (x *TokenMeta) GetExpiresAt() uint64
- func (x *TokenMeta) GetIssuedAt() uint64
- func (x *TokenMeta) GetIssuer() string
- func (x *TokenMeta) GetNotBefore() uint64
- func (x *TokenMeta) GetScope() string
- func (x *TokenMeta) GetSubject() string
- func (msg *TokenMeta) MarshalJSON() ([]byte, error)
- func (m *TokenMeta) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TokenMeta) MarshalToVT(dAtA []byte) (int, error)
- func (m *TokenMeta) MarshalVT() (dAtA []byte, err error)
- func (*TokenMeta) ProtoMessage()
- func (x *TokenMeta) ProtoReflect() protoreflect.Message
- func (x *TokenMeta) Reset()
- func (m *TokenMeta) SizeVT() (n int)
- func (x *TokenMeta) String() string
- func (msg *TokenMeta) UnmarshalJSON(b []byte) error
- func (m *TokenMeta) UnmarshalVT(dAtA []byte) error
- type TokenStatus
- func (TokenStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TokenStatus) Enum() *TokenStatus
- func (TokenStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TokenStatus) Number() protoreflect.EnumNumber
- func (x TokenStatus) String() string
- func (TokenStatus) Type() protoreflect.EnumType
- type TokenType
- type UnimplementedIntrospectionServiceServer
- type UnimplementedRevocatonServiceServer
- type UnsafeIntrospectionServiceServer
- type UnsafeRevocatonServiceServer
Constants ¶
const (
IntrospectionService_Introspect_FullMethodName = "/oidc.token.v1.IntrospectionService/Introspect"
)
const (
RevocatonService_Revoke_FullMethodName = "/oidc.token.v1.RevocatonService/Revoke"
)
Variables ¶
var ( TokenType_name = map[int32]string{ 0: "TOKEN_TYPE_UNSPECIFIED", 1: "TOKEN_TYPE_UNKNOWN", 2: "TOKEN_TYPE_ACCESS_TOKEN", 3: "TOKEN_TYPE_REFRESH_TOKEN", 4: "TOKEN_TYPE_ID_TOKEN", 5: "TOKEN_TYPE_PHANTOM_TOKEN", } TokenType_value = map[string]int32{ "TOKEN_TYPE_UNSPECIFIED": 0, "TOKEN_TYPE_UNKNOWN": 1, "TOKEN_TYPE_ACCESS_TOKEN": 2, "TOKEN_TYPE_REFRESH_TOKEN": 3, "TOKEN_TYPE_ID_TOKEN": 4, "TOKEN_TYPE_PHANTOM_TOKEN": 5, } )
Enum value maps for TokenType.
var ( TokenStatus_name = map[int32]string{ 0: "TOKEN_STATUS_UNSPECIFIED", 1: "TOKEN_STATUS_UNKNOWN", 2: "TOKEN_STATUS_ACTIVE", 3: "TOKEN_STATUS_EXPIRED", 4: "TOKEN_STATUS_REVOKED", } TokenStatus_value = map[string]int32{ "TOKEN_STATUS_UNSPECIFIED": 0, "TOKEN_STATUS_UNKNOWN": 1, "TOKEN_STATUS_ACTIVE": 2, "TOKEN_STATUS_EXPIRED": 3, "TOKEN_STATUS_REVOKED": 4, } )
Enum value maps for TokenStatus.
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_oidc_token_v1_introspection_api_proto protoreflect.FileDescriptor
var File_oidc_token_v1_revocation_api_proto protoreflect.FileDescriptor
var File_oidc_token_v1_token_proto protoreflect.FileDescriptor
var IntrospectionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "oidc.token.v1.IntrospectionService", HandlerType: (*IntrospectionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Introspect", Handler: _IntrospectionService_Introspect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "oidc/token/v1/introspection_api.proto", }
IntrospectionService_ServiceDesc is the grpc.ServiceDesc for IntrospectionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RevocatonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "oidc.token.v1.RevocatonService", HandlerType: (*RevocatonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Revoke", Handler: _RevocatonService_Revoke_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "oidc/token/v1/revocation_api.proto", }
RevocatonService_ServiceDesc is the grpc.ServiceDesc for RevocatonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIntrospectionServiceServer ¶
func RegisterIntrospectionServiceServer(s grpc.ServiceRegistrar, srv IntrospectionServiceServer)
func RegisterRevocatonServiceServer ¶
func RegisterRevocatonServiceServer(s grpc.ServiceRegistrar, srv RevocatonServiceServer)
Types ¶
type Actor ¶
type Actor struct { // OPTIONAL. Token issuer URI Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // OPTIONAL. Identity subject Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // OPTIONAL. Client identifier. ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // OPTIONAL. Actor chain. Act *Actor `protobuf:"bytes,4,opt,name=act,proto3" json:"act,omitempty"` // contains filtered or unexported fields }
func (*Actor) Descriptor
deprecated
func (*Actor) GetClientId ¶
func (*Actor) GetSubject ¶
func (*Actor) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Actor) MarshalToSizedBufferVT ¶
func (*Actor) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) ProtoReflect ¶
func (x *Actor) ProtoReflect() protoreflect.Message
func (*Actor) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*Actor) UnmarshalVT ¶
type IntrospectRequest ¶
type IntrospectRequest struct { // REQUIRED. Token issuer URL. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // REQUIRED. Client that invoke the token introspection. Client *v1.Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` // REQUIRED. The string value of the token. For access tokens, this // is the "access_token" value returned from the token endpoint // defined in OAuth 2.0 [RFC6749], Section 5.1. For refresh tokens, // this is the "refresh_token" value returned from the token endpoint // as defined in OAuth 2.0 [RFC6749], Section 5.1. Other token types // are outside the scope of this specification. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // OPTIONAL. A hint about the type of the token submitted for // introspection. The protected resource MAY pass this parameter to // help the authorization server optimize the token lookup. If the // server is unable to locate the token using the given hint, it MUST // extend its search across all of its supported token types. An // authorization server MAY ignore this parameter, particularly if it // is able to detect the token type automatically. Values for this // field are defined in the "OAuth Token Type Hints" registry defined // in OAuth Token Revocation [RFC7009] TokenTypeHint *string `protobuf:"bytes,4,opt,name=token_type_hint,json=tokenTypeHint,proto3,oneof" json:"token_type_hint,omitempty"` // contains filtered or unexported fields }
https://tools.ietf.org/html/rfc7662#section-2.1
func (*IntrospectRequest) Descriptor
deprecated
func (*IntrospectRequest) Descriptor() ([]byte, []int)
Deprecated: Use IntrospectRequest.ProtoReflect.Descriptor instead.
func (*IntrospectRequest) GetClient ¶
func (x *IntrospectRequest) GetClient() *v1.Client
func (*IntrospectRequest) GetIssuer ¶
func (x *IntrospectRequest) GetIssuer() string
func (*IntrospectRequest) GetToken ¶
func (x *IntrospectRequest) GetToken() string
func (*IntrospectRequest) GetTokenTypeHint ¶
func (x *IntrospectRequest) GetTokenTypeHint() string
func (*IntrospectRequest) MarshalJSON ¶
func (msg *IntrospectRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*IntrospectRequest) MarshalToSizedBufferVT ¶
func (m *IntrospectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*IntrospectRequest) MarshalToVT ¶
func (m *IntrospectRequest) MarshalToVT(dAtA []byte) (int, error)
func (*IntrospectRequest) MarshalVT ¶
func (m *IntrospectRequest) MarshalVT() (dAtA []byte, err error)
func (*IntrospectRequest) ProtoMessage ¶
func (*IntrospectRequest) ProtoMessage()
func (*IntrospectRequest) ProtoReflect ¶
func (x *IntrospectRequest) ProtoReflect() protoreflect.Message
func (*IntrospectRequest) Reset ¶
func (x *IntrospectRequest) Reset()
func (*IntrospectRequest) SizeVT ¶
func (m *IntrospectRequest) SizeVT() (n int)
func (*IntrospectRequest) String ¶
func (x *IntrospectRequest) String() string
func (*IntrospectRequest) UnmarshalJSON ¶
func (msg *IntrospectRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*IntrospectRequest) UnmarshalVT ¶
func (m *IntrospectRequest) UnmarshalVT(dAtA []byte) error
type IntrospectResponse ¶
type IntrospectResponse struct { Error *v11.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // OPTIONAL. The matching token instance. Token *Token `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
https://tools.ietf.org/html/rfc7662#section-2.2
func (*IntrospectResponse) Descriptor
deprecated
func (*IntrospectResponse) Descriptor() ([]byte, []int)
Deprecated: Use IntrospectResponse.ProtoReflect.Descriptor instead.
func (*IntrospectResponse) GetError ¶
func (x *IntrospectResponse) GetError() *v11.Error
func (*IntrospectResponse) GetToken ¶
func (x *IntrospectResponse) GetToken() *Token
func (*IntrospectResponse) MarshalJSON ¶
func (msg *IntrospectResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*IntrospectResponse) MarshalToSizedBufferVT ¶
func (m *IntrospectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*IntrospectResponse) MarshalToVT ¶
func (m *IntrospectResponse) MarshalToVT(dAtA []byte) (int, error)
func (*IntrospectResponse) MarshalVT ¶
func (m *IntrospectResponse) MarshalVT() (dAtA []byte, err error)
func (*IntrospectResponse) ProtoMessage ¶
func (*IntrospectResponse) ProtoMessage()
func (*IntrospectResponse) ProtoReflect ¶
func (x *IntrospectResponse) ProtoReflect() protoreflect.Message
func (*IntrospectResponse) Reset ¶
func (x *IntrospectResponse) Reset()
func (*IntrospectResponse) SizeVT ¶
func (m *IntrospectResponse) SizeVT() (n int)
func (*IntrospectResponse) String ¶
func (x *IntrospectResponse) String() string
func (*IntrospectResponse) UnmarshalJSON ¶
func (msg *IntrospectResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*IntrospectResponse) UnmarshalVT ¶
func (m *IntrospectResponse) UnmarshalVT(dAtA []byte) error
type IntrospectionServiceClient ¶
type IntrospectionServiceClient interface {
Introspect(ctx context.Context, in *IntrospectRequest, opts ...grpc.CallOption) (*IntrospectResponse, error)
}
IntrospectionServiceClient is the client API for IntrospectionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIntrospectionServiceClient ¶
func NewIntrospectionServiceClient(cc grpc.ClientConnInterface) IntrospectionServiceClient
type IntrospectionServiceServer ¶
type IntrospectionServiceServer interface {
Introspect(context.Context, *IntrospectRequest) (*IntrospectResponse, error)
}
IntrospectionServiceServer is the server API for IntrospectionService service. All implementations should embed UnimplementedIntrospectionServiceServer for forward compatibility
type OAuthTokenResponse ¶
type OAuthTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` ExpiresIn uint64 `protobuf:"fixed64,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken *string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"` IdToken *string `protobuf:"bytes,5,opt,name=id_token,json=idToken,proto3,oneof" json:"id_token,omitempty"` // contains filtered or unexported fields }
func (*OAuthTokenResponse) Descriptor
deprecated
func (*OAuthTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use OAuthTokenResponse.ProtoReflect.Descriptor instead.
func (*OAuthTokenResponse) GetAccessToken ¶
func (x *OAuthTokenResponse) GetAccessToken() string
func (*OAuthTokenResponse) GetExpiresIn ¶
func (x *OAuthTokenResponse) GetExpiresIn() uint64
func (*OAuthTokenResponse) GetIdToken ¶
func (x *OAuthTokenResponse) GetIdToken() string
func (*OAuthTokenResponse) GetRefreshToken ¶
func (x *OAuthTokenResponse) GetRefreshToken() string
func (*OAuthTokenResponse) GetTokenType ¶
func (x *OAuthTokenResponse) GetTokenType() string
func (*OAuthTokenResponse) MarshalJSON ¶
func (msg *OAuthTokenResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*OAuthTokenResponse) MarshalToSizedBufferVT ¶
func (m *OAuthTokenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*OAuthTokenResponse) MarshalToVT ¶
func (m *OAuthTokenResponse) MarshalToVT(dAtA []byte) (int, error)
func (*OAuthTokenResponse) MarshalVT ¶
func (m *OAuthTokenResponse) MarshalVT() (dAtA []byte, err error)
func (*OAuthTokenResponse) ProtoMessage ¶
func (*OAuthTokenResponse) ProtoMessage()
func (*OAuthTokenResponse) ProtoReflect ¶
func (x *OAuthTokenResponse) ProtoReflect() protoreflect.Message
func (*OAuthTokenResponse) Reset ¶
func (x *OAuthTokenResponse) Reset()
func (*OAuthTokenResponse) SizeVT ¶
func (m *OAuthTokenResponse) SizeVT() (n int)
func (*OAuthTokenResponse) String ¶
func (x *OAuthTokenResponse) String() string
func (*OAuthTokenResponse) UnmarshalJSON ¶
func (msg *OAuthTokenResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*OAuthTokenResponse) UnmarshalVT ¶
func (m *OAuthTokenResponse) UnmarshalVT(dAtA []byte) error
type RevocatonServiceClient ¶
type RevocatonServiceClient interface {
Revoke(ctx context.Context, in *RevokeRequest, opts ...grpc.CallOption) (*RevokeResponse, error)
}
RevocatonServiceClient is the client API for RevocatonService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRevocatonServiceClient ¶
func NewRevocatonServiceClient(cc grpc.ClientConnInterface) RevocatonServiceClient
type RevocatonServiceServer ¶
type RevocatonServiceServer interface {
Revoke(context.Context, *RevokeRequest) (*RevokeResponse, error)
}
RevocatonServiceServer is the server API for RevocatonService service. All implementations should embed UnimplementedRevocatonServiceServer for forward compatibility
type RevokeRequest ¶
type RevokeRequest struct { // REQUIRED. Token issuer URL. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // REQUIRED. Client that invoke the token revocation. Client *v1.Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` // REQUIRED. The token that the client wants to get revoked. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // OPTIONAL. A hint about the type of the token // submitted for revocation. Clients MAY pass this parameter in // order to help the authorization server to optimize the token // lookup. If the server is unable to locate the token using // the given hint, it MUST extend its search across all of its // supported token types. An authorization server MAY ignore // this parameter, particularly if it is able to detect the // token type automatically. This specification defines two // such values: TokenTypeHint *string `protobuf:"bytes,4,opt,name=token_type_hint,json=tokenTypeHint,proto3,oneof" json:"token_type_hint,omitempty"` // contains filtered or unexported fields }
https://tools.ietf.org/html/rfc7009#section-2.1
func (*RevokeRequest) Descriptor
deprecated
func (*RevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead.
func (*RevokeRequest) GetClient ¶
func (x *RevokeRequest) GetClient() *v1.Client
func (*RevokeRequest) GetIssuer ¶
func (x *RevokeRequest) GetIssuer() string
func (*RevokeRequest) GetToken ¶
func (x *RevokeRequest) GetToken() string
func (*RevokeRequest) GetTokenTypeHint ¶
func (x *RevokeRequest) GetTokenTypeHint() string
func (*RevokeRequest) MarshalJSON ¶
func (msg *RevokeRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*RevokeRequest) MarshalToSizedBufferVT ¶
func (m *RevokeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RevokeRequest) MarshalToVT ¶
func (m *RevokeRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RevokeRequest) MarshalVT ¶
func (m *RevokeRequest) MarshalVT() (dAtA []byte, err error)
func (*RevokeRequest) ProtoMessage ¶
func (*RevokeRequest) ProtoMessage()
func (*RevokeRequest) ProtoReflect ¶
func (x *RevokeRequest) ProtoReflect() protoreflect.Message
func (*RevokeRequest) Reset ¶
func (x *RevokeRequest) Reset()
func (*RevokeRequest) SizeVT ¶
func (m *RevokeRequest) SizeVT() (n int)
func (*RevokeRequest) String ¶
func (x *RevokeRequest) String() string
func (*RevokeRequest) UnmarshalJSON ¶
func (msg *RevokeRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*RevokeRequest) UnmarshalVT ¶
func (m *RevokeRequest) UnmarshalVT(dAtA []byte) error
type RevokeResponse ¶
type RevokeResponse struct { Error *v11.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*RevokeResponse) Descriptor
deprecated
func (*RevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead.
func (*RevokeResponse) GetError ¶
func (x *RevokeResponse) GetError() *v11.Error
func (*RevokeResponse) MarshalJSON ¶
func (msg *RevokeResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*RevokeResponse) MarshalToSizedBufferVT ¶
func (m *RevokeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RevokeResponse) MarshalToVT ¶
func (m *RevokeResponse) MarshalToVT(dAtA []byte) (int, error)
func (*RevokeResponse) MarshalVT ¶
func (m *RevokeResponse) MarshalVT() (dAtA []byte, err error)
func (*RevokeResponse) ProtoMessage ¶
func (*RevokeResponse) ProtoMessage()
func (*RevokeResponse) ProtoReflect ¶
func (x *RevokeResponse) ProtoReflect() protoreflect.Message
func (*RevokeResponse) Reset ¶
func (x *RevokeResponse) Reset()
func (*RevokeResponse) SizeVT ¶
func (m *RevokeResponse) SizeVT() (n int)
func (*RevokeResponse) String ¶
func (x *RevokeResponse) String() string
func (*RevokeResponse) UnmarshalJSON ¶
func (msg *RevokeResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*RevokeResponse) UnmarshalVT ¶
func (m *RevokeResponse) UnmarshalVT(dAtA []byte) error
type Token ¶
type Token struct { // REQUIRED. Token issuer. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // REQUIRED. Token type. TokenType TokenType `protobuf:"varint,2,opt,name=token_type,json=tokenType,proto3,enum=oidc.token.v1.TokenType" json:"token_type,omitempty"` // REQUIRED. Token identifier. TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // REQUIRED. Token meta output of token endpoint. Metadata *TokenMeta `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // REQUIRED. Token status. Status TokenStatus `protobuf:"varint,5,opt,name=status,proto3,enum=oidc.token.v1.TokenStatus" json:"status,omitempty"` // REQUIRED. Final token value. Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` // OPTIONAL. Phantom token value. Phantom *string `protobuf:"bytes,7,opt,name=phantom,proto3,oneof" json:"phantom,omitempty"` // OPTIONAL. Token confirmation Confirmation *TokenConfirmation `protobuf:"bytes,8,opt,name=confirmation,proto3" json:"confirmation,omitempty"` // OPTIONAL. Actor. Actor []*Actor `protobuf:"bytes,9,rep,name=actor,proto3" json:"actor,omitempty"` // OPTIONAL. Authorized Actor. MayAct []*Actor `protobuf:"bytes,10,rep,name=may_act,json=mayAct,proto3" json:"may_act,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetConfirmation ¶
func (x *Token) GetConfirmation() *TokenConfirmation
func (*Token) GetMetadata ¶
func (*Token) GetPhantom ¶
func (*Token) GetStatus ¶
func (x *Token) GetStatus() TokenStatus
func (*Token) GetTokenId ¶
func (*Token) GetTokenType ¶
func (*Token) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Token) MarshalToSizedBufferVT ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
func (*Token) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*Token) UnmarshalVT ¶
type TokenConfirmation ¶
type TokenConfirmation struct { Jkt string `protobuf:"bytes,1,opt,name=jkt,proto3" json:"jkt,omitempty"` // contains filtered or unexported fields }
func (*TokenConfirmation) Descriptor
deprecated
func (*TokenConfirmation) Descriptor() ([]byte, []int)
Deprecated: Use TokenConfirmation.ProtoReflect.Descriptor instead.
func (*TokenConfirmation) GetJkt ¶
func (x *TokenConfirmation) GetJkt() string
func (*TokenConfirmation) MarshalJSON ¶
func (msg *TokenConfirmation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*TokenConfirmation) MarshalToSizedBufferVT ¶
func (m *TokenConfirmation) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TokenConfirmation) MarshalToVT ¶
func (m *TokenConfirmation) MarshalToVT(dAtA []byte) (int, error)
func (*TokenConfirmation) MarshalVT ¶
func (m *TokenConfirmation) MarshalVT() (dAtA []byte, err error)
func (*TokenConfirmation) ProtoMessage ¶
func (*TokenConfirmation) ProtoMessage()
func (*TokenConfirmation) ProtoReflect ¶
func (x *TokenConfirmation) ProtoReflect() protoreflect.Message
func (*TokenConfirmation) Reset ¶
func (x *TokenConfirmation) Reset()
func (*TokenConfirmation) SizeVT ¶
func (m *TokenConfirmation) SizeVT() (n int)
func (*TokenConfirmation) String ¶
func (x *TokenConfirmation) String() string
func (*TokenConfirmation) UnmarshalJSON ¶
func (msg *TokenConfirmation) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*TokenConfirmation) UnmarshalVT ¶
func (m *TokenConfirmation) UnmarshalVT(dAtA []byte) error
type TokenMeta ¶
type TokenMeta struct { // REQUIRED. Token issuer URI Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // REQUIRED. Identity subject Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // REQUIRED. Unix timestamp of the creation date IssuedAt uint64 `protobuf:"fixed64,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"` // REQUIRED. Unix timestamp of the usability date NotBefore uint64 `protobuf:"fixed64,4,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"` // REQUIRED. Unix timestamp of the expiration date ExpiresAt uint64 `protobuf:"fixed64,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // REQUIRED. Token owner. ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // REQUIRED. Space delimited JSON string containing requested scope. Scope string `protobuf:"bytes,7,opt,name=scope,proto3" json:"scope,omitempty"` // REQUIRED. Targeted application identifier. Audience string `protobuf:"bytes,8,opt,name=audience,proto3" json:"audience,omitempty"` // OPTIONAL. String specifying an authentication context class reference value // that identifies the authentication context class that was satisfied by the // user-authentication event performed. // https://datatracker.ietf.org/doc/html/rfc9470#name-oauth-20-token-introspectio Acr *string `protobuf:"bytes,9,opt,name=acr,proto3,oneof" json:"acr,omitempty"` // OPTIONAL. Time when the user authentication occurred. A JSON numeric value // representing the number of seconds from 1970-01-01T00:00:00Z UTC until the // date/time of the authentication event. // https://datatracker.ietf.org/doc/html/rfc9470#name-oauth-20-token-introspectio AuthTime *uint64 `protobuf:"fixed64,10,opt,name=auth_time,json=authTime,proto3,oneof" json:"auth_time,omitempty"` // contains filtered or unexported fields }
func (*TokenMeta) Descriptor
deprecated
func (*TokenMeta) GetAudience ¶
func (*TokenMeta) GetAuthTime ¶
func (*TokenMeta) GetClientId ¶
func (*TokenMeta) GetExpiresAt ¶
func (*TokenMeta) GetIssuedAt ¶
func (*TokenMeta) GetNotBefore ¶
func (*TokenMeta) GetSubject ¶
func (*TokenMeta) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*TokenMeta) MarshalToSizedBufferVT ¶
func (*TokenMeta) ProtoMessage ¶
func (*TokenMeta) ProtoMessage()
func (*TokenMeta) ProtoReflect ¶
func (x *TokenMeta) ProtoReflect() protoreflect.Message
func (*TokenMeta) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*TokenMeta) UnmarshalVT ¶
type TokenStatus ¶
type TokenStatus int32
const ( TokenStatus_TOKEN_STATUS_UNSPECIFIED TokenStatus = 0 TokenStatus_TOKEN_STATUS_UNKNOWN TokenStatus = 1 TokenStatus_TOKEN_STATUS_ACTIVE TokenStatus = 2 TokenStatus_TOKEN_STATUS_EXPIRED TokenStatus = 3 TokenStatus_TOKEN_STATUS_REVOKED TokenStatus = 4 )
func (TokenStatus) Descriptor ¶
func (TokenStatus) Descriptor() protoreflect.EnumDescriptor
func (TokenStatus) Enum ¶
func (x TokenStatus) Enum() *TokenStatus
func (TokenStatus) EnumDescriptor
deprecated
func (TokenStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TokenStatus.Descriptor instead.
func (TokenStatus) Number ¶
func (x TokenStatus) Number() protoreflect.EnumNumber
func (TokenStatus) String ¶
func (x TokenStatus) String() string
func (TokenStatus) Type ¶
func (TokenStatus) Type() protoreflect.EnumType
type TokenType ¶
type TokenType int32
func (TokenType) Descriptor ¶
func (TokenType) Descriptor() protoreflect.EnumDescriptor
func (TokenType) EnumDescriptor
deprecated
func (TokenType) Number ¶
func (x TokenType) Number() protoreflect.EnumNumber
func (TokenType) Type ¶
func (TokenType) Type() protoreflect.EnumType
type UnimplementedIntrospectionServiceServer ¶
type UnimplementedIntrospectionServiceServer struct { }
UnimplementedIntrospectionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedIntrospectionServiceServer) Introspect ¶
func (UnimplementedIntrospectionServiceServer) Introspect(context.Context, *IntrospectRequest) (*IntrospectResponse, error)
type UnimplementedRevocatonServiceServer ¶
type UnimplementedRevocatonServiceServer struct { }
UnimplementedRevocatonServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRevocatonServiceServer) Revoke ¶
func (UnimplementedRevocatonServiceServer) Revoke(context.Context, *RevokeRequest) (*RevokeResponse, error)
type UnsafeIntrospectionServiceServer ¶
type UnsafeIntrospectionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIntrospectionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IntrospectionServiceServer will result in compilation errors.
type UnsafeRevocatonServiceServer ¶
type UnsafeRevocatonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRevocatonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RevocatonServiceServer will result in compilation errors.