resserver

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "oauth2 authserver",
	Precedence: security.MinSecurityPrecedence + 20,
	Options: []fx.Option{
		appconfig.FxEmbeddedDefaults(defaultConfigFS),
		fx.Provide(jwt.BindCryptoProperties),
		fx.Provide(ProvideResServerDI),
		fx.Invoke(ConfigureResourceServer),
	},
}

Functions

func ConfigureResourceServer

func ConfigureResourceServer(di resServerDI)

ConfigureResourceServer configuration entry point

func ProvideResServerDI

func ProvideResServerDI(di resServerConfigDI) resServerOut

func Use

func Use()

Types

type Configuration

type Configuration struct {
	// configurable items
	RemoteEndpoints  RemoteEndpoints
	TokenStoreReader oauth2.TokenStoreReader
	JwkStore         jwt.JwkStore
	// contains filtered or unexported fields
}

func (*Configuration) SharedTokenStoreReader

func (c *Configuration) SharedTokenStoreReader() oauth2.TokenStoreReader

type RemoteEndpoints

type RemoteEndpoints struct {
	Token      string
	CheckToken string
	UserInfo   string
	JwkSet     string
}

type ResourceServerConfigurer

type ResourceServerConfigurer func(*Configuration)

Jump to

Keyboard shortcuts

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