auth

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package auth provides a HTTP client suitable for consuming Vipps APIs.

Vipps APIs require that clients authorize with a client id, a client secret, and an API subscription key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(environment vipps.Environment, credentials vipps.Credentials) *http.Client

NewClient returns a http.Client with a custom Transport that adds required headers for authorizing Vipps API clients. JWT tokens are automatically fetched and renewed upon expiry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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