idkproxy

package
v0.0.0-...-175a4df Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const WellKnown = cariad.BaseURL + "/login/v1/idk/openid-configuration"

Variables

View Source
var Config = &oidc.ProviderConfig{
	AuthURL:  "https://identity.vwgroup.io/oidc/v1/authorize",
	TokenURL: cariad.BaseURL + "/login/v1/idk/token",
}

Functions

This section is empty.

Types

type Service

type Service struct {
	*request.Helper
	// contains filtered or unexported fields
}

func New

func New(log *util.Logger, q url.Values) *Service

func (*Service) Exchange

func (v *Service) Exchange(q url.Values) (*vag.Token, error)

Exchange exchanges an VAG identity token for an IDK token

func (*Service) Refresh

func (v *Service) Refresh(token *vag.Token) (*vag.Token, error)

Refresh refreshes an IDK token

func (*Service) TokenSource

func (v *Service) TokenSource(token *vag.Token) vag.TokenSource

TokenSource creates token source. Token is refreshed automatically.

Jump to

Keyboard shortcuts

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