Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Using username/password, bad URL matching pattern #60

Closed
lmazuel opened this issue Nov 29, 2016 · 3 comments
Closed

Using username/password, bad URL matching pattern #60

lmazuel opened this issue Nov 29, 2016 · 3 comments

Comments

@lmazuel
Copy link
Contributor

lmazuel commented Nov 29, 2016

Hi @yugangw-msft,

Look at this:

msrestazure.azure_exceptions.CloudError: Azure Error: InvalidAuthenticationTokenAudience
Message: The access token has been obtained from wrong audience or resource 'https://management.core.windows.net'. It should exactly match (including forward slash) with one of the allowed audiences 'https://management.core.windows.net/','https://management.azure.com/'.

Why are you so nervous to also include the forward slash?

This raises also the question, what about connecting to not public azure?

@yugangw-msft
Copy link
Contributor

yugangw-msft commented Dec 1, 2016

@lmazuel,
This is an error from ARM service.
Adal is a general purpose library, not just for authenticating with azure ad. It also works with adfs on-prem, or any other web-api based resources; hence we don't polish the url.
msrestazure will be a better place to fix the url

@lmazuel
Copy link
Contributor Author

lmazuel commented Dec 1, 2016

@yugangw-msft
You mean, this message does not come from the ADAL code?

@yugangw-msft
Copy link
Contributor

@lmazuel , that is correct, it is a server error

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

2 participants