Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

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

Closed
rkhaled0 opened this issue Jan 6, 2022 · 3 comments
Closed

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, !

@jhendrixMSFT
Copy link
Member

Closing due to staleness. In addition, these modules are no longer supported. See https://github.com/Azure/go-autorest?tab=readme-ov-file#migrating-to-supported-sdks for more info.

@jhendrixMSFT jhendrixMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants