authn

package
v0.0.0-...-44fb3c4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package authn provides a func that will exchange OAuth client credentials for a Bearer token that will expire after 30 minutes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBearerToken

func GetBearerToken() (token string, err error)

GetBearerToken calls the /token SAS Viya Orders API endpoint to exchange client credentials for a Bearer token. The client credentials are obtained from the SAS API Portal (https://apiportal.sas.com), and should be defined in Viper (https://github.com/spf13/viper) as clientCredentialsId (key) and clientCredentialsSecret (secret).

Types

This section is empty.

Jump to

Keyboard shortcuts

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