tokenv1

package
v0.0.0-...-7467996 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntrospectionService_Introspect_FullMethodName = "/oidc.token.v1.IntrospectionService/Introspect"
)
View Source
const (
	RevocatonService_Revoke_FullMethodName = "/oidc.token.v1.RevocatonService/Revoke"
)

Variables

View Source
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.

View Source
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.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_oidc_token_v1_introspection_api_proto protoreflect.FileDescriptor
View Source
var File_oidc_token_v1_revocation_api_proto protoreflect.FileDescriptor
View Source
var File_oidc_token_v1_token_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetAct

func (x *Actor) GetAct() *Actor

func (*Actor) GetClientId

func (x *Actor) GetClientId() string

func (*Actor) GetIssuer

func (x *Actor) GetIssuer() string

func (*Actor) GetSubject

func (x *Actor) GetSubject() string

func (*Actor) MarshalJSON

func (msg *Actor) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Actor) MarshalToSizedBufferVT

func (m *Actor) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Actor) MarshalToVT

func (m *Actor) MarshalToVT(dAtA []byte) (int, error)

func (*Actor) MarshalVT

func (m *Actor) MarshalVT() (dAtA []byte, err error)

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

func (x *Actor) ProtoReflect() protoreflect.Message

func (*Actor) Reset

func (x *Actor) Reset()

func (*Actor) SizeVT

func (m *Actor) SizeVT() (n int)

func (*Actor) String

func (x *Actor) String() string

func (*Actor) UnmarshalJSON

func (msg *Actor) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Actor) UnmarshalVT

func (m *Actor) UnmarshalVT(dAtA []byte) error

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.

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetActor

func (x *Token) GetActor() []*Actor

func (*Token) GetConfirmation

func (x *Token) GetConfirmation() *TokenConfirmation

func (*Token) GetIssuer

func (x *Token) GetIssuer() string

func (*Token) GetMayAct

func (x *Token) GetMayAct() []*Actor

func (*Token) GetMetadata

func (x *Token) GetMetadata() *TokenMeta

func (*Token) GetPhantom

func (x *Token) GetPhantom() string

func (*Token) GetStatus

func (x *Token) GetStatus() TokenStatus

func (*Token) GetTokenId

func (x *Token) GetTokenId() string

func (*Token) GetTokenType

func (x *Token) GetTokenType() TokenType

func (*Token) GetValue

func (x *Token) GetValue() string

func (*Token) MarshalJSON

func (msg *Token) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Token) MarshalToSizedBufferVT

func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Token) MarshalToVT

func (m *Token) MarshalToVT(dAtA []byte) (int, error)

func (*Token) MarshalVT

func (m *Token) MarshalVT() (dAtA []byte, err error)

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) SizeVT

func (m *Token) SizeVT() (n int)

func (*Token) String

func (x *Token) String() string

func (*Token) UnmarshalJSON

func (msg *Token) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Token) UnmarshalVT

func (m *Token) UnmarshalVT(dAtA []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenMeta.ProtoReflect.Descriptor instead.

func (*TokenMeta) GetAcr

func (x *TokenMeta) GetAcr() string

func (*TokenMeta) GetAudience

func (x *TokenMeta) GetAudience() string

func (*TokenMeta) GetAuthTime

func (x *TokenMeta) GetAuthTime() uint64

func (*TokenMeta) GetClientId

func (x *TokenMeta) GetClientId() string

func (*TokenMeta) GetExpiresAt

func (x *TokenMeta) GetExpiresAt() uint64

func (*TokenMeta) GetIssuedAt

func (x *TokenMeta) GetIssuedAt() uint64

func (*TokenMeta) GetIssuer

func (x *TokenMeta) GetIssuer() string

func (*TokenMeta) GetNotBefore

func (x *TokenMeta) GetNotBefore() uint64

func (*TokenMeta) GetScope

func (x *TokenMeta) GetScope() string

func (*TokenMeta) GetSubject

func (x *TokenMeta) GetSubject() string

func (*TokenMeta) MarshalJSON

func (msg *TokenMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*TokenMeta) MarshalToSizedBufferVT

func (m *TokenMeta) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TokenMeta) MarshalToVT

func (m *TokenMeta) MarshalToVT(dAtA []byte) (int, error)

func (*TokenMeta) MarshalVT

func (m *TokenMeta) MarshalVT() (dAtA []byte, err error)

func (*TokenMeta) ProtoMessage

func (*TokenMeta) ProtoMessage()

func (*TokenMeta) ProtoReflect

func (x *TokenMeta) ProtoReflect() protoreflect.Message

func (*TokenMeta) Reset

func (x *TokenMeta) Reset()

func (*TokenMeta) SizeVT

func (m *TokenMeta) SizeVT() (n int)

func (*TokenMeta) String

func (x *TokenMeta) String() string

func (*TokenMeta) UnmarshalJSON

func (msg *TokenMeta) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*TokenMeta) UnmarshalVT

func (m *TokenMeta) UnmarshalVT(dAtA []byte) error

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) 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

type TokenType

type TokenType int32
const (
	TokenType_TOKEN_TYPE_UNSPECIFIED   TokenType = 0
	TokenType_TOKEN_TYPE_UNKNOWN       TokenType = 1
	TokenType_TOKEN_TYPE_ACCESS_TOKEN  TokenType = 2
	TokenType_TOKEN_TYPE_REFRESH_TOKEN TokenType = 3
	TokenType_TOKEN_TYPE_ID_TOKEN      TokenType = 4
	TokenType_TOKEN_TYPE_PHANTOM_TOKEN TokenType = 5
)

func (TokenType) Descriptor

func (TokenType) Descriptor() protoreflect.EnumDescriptor

func (TokenType) Enum

func (x TokenType) Enum() *TokenType

func (TokenType) EnumDescriptor deprecated

func (TokenType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TokenType.Descriptor instead.

func (TokenType) Number

func (x TokenType) Number() protoreflect.EnumNumber

func (TokenType) String

func (x TokenType) String() string

func (TokenType) Type

type UnimplementedIntrospectionServiceServer

type UnimplementedIntrospectionServiceServer struct {
}

UnimplementedIntrospectionServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedIntrospectionServiceServer) Introspect

type UnimplementedRevocatonServiceServer

type UnimplementedRevocatonServiceServer struct {
}

UnimplementedRevocatonServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRevocatonServiceServer) Revoke

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.

Jump to

Keyboard shortcuts

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