application

package
v3.0.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: OSL-3.0 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, GrantType 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:internalauth.baseurl"`
})

Inject configuration

Jump to

Keyboard shortcuts

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