services

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: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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