MCPcopy Create free account
hub / github.com/auth0/auth0-cli / BuildOauthTokenParams

Function BuildOauthTokenParams

internal/cli/utils_shared.go:49–60  ·  view source on GitHub ↗
(clientID, clientSecret, audience, organization string)

Source from the content-addressed store, hash-verified

47}
48
49func BuildOauthTokenParams(clientID, clientSecret, audience, organization string) url.Values {
50 q := url.Values{
51 "audience": {audience},
52 "client_id": {clientID},
53 "client_secret": {clientSecret},
54 "grant_type": {"client_credentials"},
55 }
56 if organization != "" {
57 q.Set("organization", organization)
58 }
59 return q
60}
61
62// runClientCredentialsFlow runs an M2M client
63// credentials flow without opening a browser.

Callers 2

runClientCredentialsFlowFunction · 0.85

Calls

no outgoing calls

Tested by 1