Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to refresh the token against ADFS - Azure Stack Hub environment #673

Open
rkhaled0 opened this issue Jan 6, 2022 · 2 comments
Open

Comments

@rkhaled0
Copy link

rkhaled0 commented Jan 6, 2022

Dear,

I'm facing this following error when talking to an ASH platform + ADFS.

azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://xxx  StatusCode=404 -- Original Error: adal: Refresh request failed...

This issue seems to be already fixed here with adfs environment autodetection (if loginEndpoints ends with/adfs).
https://github.com/hashicorp/go-azure-helpers/blob/main/authentication/config.go#L50

Could we reproduce this behaviour during OAuth config instantiation ? https://github.com/Azure/go-autorest/blob/master/autorest/adal/config.go#L56

version: github.com/Azure/go-autorest/autorest/adal v0.9.13

Regards

@patrickdillon
Copy link

patrickdillon commented Feb 7, 2022

Not sure if this is related, but are you using adfs as the magic string for your tenant?

@rkhaled0
Copy link
Author

Not sure if this is related, but are you using adfs as the magic string for your tenant?

Correct, !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants