MCPcopy Create free account
hub / github.com/JumpsecLabs/TokenSmith / buildAuthURL

Function buildAuthURL

internal/auth/authutils.go:11–21  ·  view source on GitHub ↗
(clientID, scope, redirectURI string)

Source from the content-addressed store, hash-verified

9)
10
11func buildAuthURL(clientID, scope, redirectURI string) string {
12
13 // Using net/url to safely build the URL and encode parameters
14 params := url.Values{}
15 params.Add("response_type", "code")
16 params.Add("client_id", clientID)
17 params.Add("redirect_uri", redirectURI)
18 params.Add("scope", scope)
19
20 return fmt.Sprintf("%s?%s", classes.AuthorizeV2Endpoint, params.Encode())
21}
22
23// func parseRespTokens(respBody string) (*classes.TokenResponse, error) { //in case you want to return the json for something in future
24func parseRespTokens(respBody string) error {

Callers 1

InvokeAuthTokenFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected