application

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OauthService

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

OauthService for internal direct token grant

func (*OauthService) GetClaimsFromToken

func (os *OauthService) GetClaimsFromToken(tokenString string) jwt.MapClaims

GetClaimsFromToken is a "fix" for the oauth2 libs inability to decode extra data from the token

func (*OauthService) GetConfig

func (os *OauthService) GetConfig(tokenEndpointPath string, clientID string, clientSecret string, _ string) clientcredentials.Config

GetConfig returns an oauth config object

func (*OauthService) GetOauthToken

func (os *OauthService) GetOauthToken(ctx context.Context, config *clientcredentials.Config) (*oauth2.Token, error)

GetOauthToken wraps the oauth2 call to retrieve a token

func (*OauthService) Inject

func (os *OauthService) Inject(config *struct {
	BaseURL string `inject:"config:core.internalauth.baseurl"`
})

Inject configuration

Jump to

Keyboard shortcuts

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