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

Allow specifying $aadToken audience #161

Merged
merged 3 commits into from
Mar 5, 2018
Merged

Conversation

flanakin
Copy link
Contributor

No description provided.


`new`: Optional. Specify `new` to force re-authentication and get a new token for the specified directory. Default: Reuse previous token for the specified directory from an in-memory cache. Expired tokens are refreshed automatically. (Use `F1 > Rest Client: Clear Azure AD Token Cache` or restart Visual Studio Code to clear the cache.)

`public|cn|de|us|ppe`: Optional. Specify top-level domain (TLD) to get a token for the specified government cloud, `public` for the public cloud, or `ppe` for internal testing. Default: TLD of the REST endpoint; `public` if not valid.

`<domain|tenantId>`: Optional. Domain or tenant id for the directory to sign in to. Default: Pick a directory from a dropdown or press `Esc` to use the home directory (`common` for Microsoft Account).

`aud:<domain|tenantId>`: Optional. Target Azure AD app id (aka client id) or domain the token should be created for (aka audience or resource). Default: Domain of the REST endpoint.
Copy link
Owner

@Huachao Huachao Jan 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could please also add the audience request in your aadToken.http?

Copy link
Owner

@Huachao Huachao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flanakin Minor Change

@Huachao
Copy link
Owner

Huachao commented Feb 8, 2018

@flanakin any updates?

@flanakin
Copy link
Contributor Author

Not yet. Been busy. Should have an update next week.

@flanakin
Copy link
Contributor Author

flanakin commented Mar 5, 2018

Finally got back to this. Sorry about that. Lots of stuff going on :-P The good news is, this helped me find a bug :-)

@Huachao
Copy link
Owner

Huachao commented Mar 5, 2018

@flanakin Merged, thanks. Glad to hear that, and thanks for your contribution for enable AAD in my extension.

@Huachao Huachao closed this Mar 5, 2018
@Huachao Huachao reopened this Mar 5, 2018
@Huachao Huachao merged commit fe5f8d2 into Huachao:master Mar 5, 2018
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

Successfully merging this pull request may close these issues.

2 participants