Don't pass the redirect URI through

It's always the same, might as well just get it where we need it.
This commit is contained in:
Eli Ribble 2025-11-13 14:31:33 +00:00
parent 4198f18d94
commit 901f65361a
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -56,12 +56,12 @@ type OAuthTokenResponse struct {
}
// Build the ArcGIS authorization URL with PKCE
func buildArcGISAuthURL(clientID string, redirectURI string, expiration int) string {
func buildArcGISAuthURL(clientID string, expiration int) string {
baseURL := "https://www.arcgis.com/sharing/rest/oauth2/authorize/"
params := url.Values{}
params.Add("client_id", clientID)
params.Add("redirect_uri", redirectURI)
params.Add("redirect_uri", redirectURL())
params.Add("response_type", "code")
//params.Add("code_challenge", generateCodeChallenge(codeVerifier))
//params.Add("code_challenge_method", "S256")