Enable SRV/.well-known lookups (#8)

This commit is contained in:
David Baker
2023-07-11 17:09:24 +01:00
committed by GitHub
parent 0beabc1f84
commit 36723e7b5f

View File

@@ -70,7 +70,7 @@ func exchangeOIDCToken(
return nil, errors.New("No results returned from server name resolution!")
}
client := fclient.NewClient()
client := fclient.NewClient(fclient.WithWellKnownSRVLookups(true))
// validate the openid token by getting the user's ID
userinfo, err := client.LookupUserInfo(
ctx, resolveResults[0].Host, token.AccessToken,