v1alpha1_authservice

package
v0.4.29 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient interface {
	GetTokenResponse(
		ctx context.Context,
		clientId string,
		code string,
		redirecturi string,
	) (*auth_client.AuthTokenResponse, error)
	GetRefreshedAccessToken(
		ctx context.Context,
		clientId string,
		refreshToken string,
	) (*auth_client.AuthTokenResponse, error)
	GetAuthorizationEndpoint(ctx context.Context) (string, error)
}

type Config

type Config struct {
	IsAuthEnabled bool

	CliClientId string
	CliAudience string
	IssuerUrl   string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	cfg *Config,
	authclient AuthClient,
) *Service

Jump to

Keyboard shortcuts

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