clientidscheme

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMetadataResponse

type ClientMetadataResponse struct {
	ClientName              string                 `json:"client_name"`
	ClientURI               string                 `json:"client_uri"`
	RedirectURIs            []string               `json:"redirect_uris"`
	GrantTypes              []string               `json:"grant_types"`
	ResponseTypes           []string               `json:"response_types"`
	Scope                   string                 `json:"scope"`
	LogoURI                 string                 `json:"logo_uri"`
	Contacts                []string               `json:"contacts"`
	TermsOfServiceURI       string                 `json:"tos_uri"`
	PolicyURI               string                 `json:"policy_uri"`
	JSONWebKeysURI          string                 `json:"jwks_uri"`
	JSONWebKeys             map[string]interface{} `json:"jwks"`
	SoftwareID              string                 `json:"software_id"`
	SoftwareVersion         string                 `json:"software_version"`
	TokenEndpointAuthMethod string                 `json:"token_endpoint_auth_method"`
}

ClientMetadataResponse represents a client metadata response from client's well-known uri.

type Config

type Config struct {
	ClientManager    clientManager
	HTTPClient       httpClient
	ProfileService   profileService
	TransactionStore transactionStore
}

Config defines configuration for Service.

type Service

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

Service implements functionality for discoverable client ID scheme.

func NewService

func NewService(config *Config) *Service

NewService returns a new Service instance.

func (*Service) Register

func (s *Service) Register(ctx context.Context, clientURI, issuerState string) error

Register registers a new OAuth client with clientURI ID. If client with given ID already exists, it does nothing.

type ServiceInterface

type ServiceInterface interface {
	Register(ctx context.Context, clientURI, issuerState string) error
}

ServiceInterface defines an interface for OAuth 2.0 Client ID Scheme service.

Jump to

Keyboard shortcuts

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