oauth

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 7 Imported by: 0

README

Azure OAuth2 Token

Go module for retrieving bearer access-token for accessing azure-api

Reference: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-access-token-with-a-client_secret

Example

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestAccessToken

func RequestAccessToken(tenantId string, config AuthConfig) (string, error)

Types

type AuthConfig

type AuthConfig struct {
	ClientID     string
	ClientSecret string
	ClientScope  string
}

===== Types =====

Jump to

Keyboard shortcuts

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