Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization interface { // Authorize a request. Authorize(ctx context.Context, req *flowv1.AuthorizeRequest) (*flowv1.AuthorizeResponse, error) // Register a request. Register(ctx context.Context, req *flowv1.RegistrationRequest) (*flowv1.RegistrationResponse, error) }
Authorization describes authorization request processor.
type Device ¶
type Device interface { // Authorize process device authorization request. Authorize(ctx context.Context, req *flowv1.DeviceAuthorizationRequest) (*flowv1.DeviceAuthorizationResponse, error) // Validate user code Validate(ctx context.Context, req *flowv1.DeviceCodeValidationRequest) (*flowv1.DeviceCodeValidationResponse, error) }
Device authorization service contract.
type Token ¶
type Token interface { // Token handles token retrieval. Token(ctx context.Context, req *flowv1.TokenRequest) (*flowv1.TokenResponse, error) // Introspect handles token introspection. Introspect(ctx context.Context, req *tokenv1.IntrospectRequest) (*tokenv1.IntrospectResponse, error) // Revoke given token. Revoke(ctx context.Context, req *tokenv1.RevokeRequest) (*tokenv1.RevokeResponse, error) }
Token describes token request processor.
Click to show internal directories.
Click to hide internal directories.