Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { PrivateKey string `yaml:"privateKey"` PublicKey string `yaml:"publicKey"` TokenEndpoint string `yaml:"tokenEndpoint"` Scope string `yaml:"scope"` Audience string `yaml:"aud"` Issuer string `yaml:"iss"` // contains filtered or unexported fields }
Handler - provides access to maskinporten functionality
func (*Handler) CreateAccessToken ¶
func (h *Handler) CreateAccessToken() (tokenRes TokenResponse, err error)
CreateAccessToken - creates an Maskinporten access token
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` }
TokenResponse is the form of the response when fetching an access token from ID-porten
Click to show internal directories.
Click to hide internal directories.