Add 'AuthorizeID From Parameters' audit logs to the /callback and /login endpoints

Co-authored-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
Joshua Casey
2024-11-27 13:53:00 -06:00
co-authored by Ryan Richard
parent bf1e37f149
commit 44e218194b
24 changed files with 321 additions and 142 deletions
@@ -81,7 +81,7 @@ func (p *FederationDomainResolvedGitHubIdentityProvider) UpstreamAuthorizeRedire
RedirectURL: fmt.Sprintf("%s/callback", downstreamIssuerURL),
Scopes: p.Provider.GetScopes(),
}
redirectURL := upstreamOAuthConfig.AuthCodeURL(state.EncodedStateParam)
redirectURL := upstreamOAuthConfig.AuthCodeURL(state.EncodedStateParam.String())
return redirectURL, nil
}