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 ¶
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.
Click to show internal directories.
Click to hide internal directories.