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

[Identity] Add new StaticTokenCredential #16687

Closed

Conversation

sadasant
Copy link
Contributor

How does this look?

Related to this prototype PR (but this one includes many more things): jongio/azidext#41

Related to #15803

@sadasant sadasant force-pushed the identity/fix15803-StaticTokenCredential branch from 18fcee5 to 1cfb8ca Compare September 1, 2021 01:17
@sadasant
Copy link
Contributor Author

sadasant commented Sep 1, 2021

@schaabs , @g2vinay reviews appreciated ✨

@g2vinay
Copy link
Member

g2vinay commented Sep 1, 2021

This feature is not required in JS.
As User can pass their static token as follows:

const client = new SecretClient(vaultURI, { getToken: async () => accessToken });

@xirzec
Copy link
Member

xirzec commented Sep 1, 2021

This feature is not required in JS.
As User can pass their static token as follows:

const client = new SecretClient(vaultURI, { getToken: async () => accessToken });

I love this. Can we just show this as a sample?

@sadasant
Copy link
Contributor Author

sadasant commented Sep 1, 2021

@g2vinay , @xirzec sounds good! I’ll close this, and I’ll make a new PR to improve our existing sample docs.

@sadasant sadasant closed this Sep 1, 2021
@sadasant sadasant deleted the identity/fix15803-StaticTokenCredential branch September 1, 2021 19:35
ghost pushed a commit that referenced this pull request Sep 1, 2021
This PR comes after the feedback here: #16687

Since there’s a very simple way to satisfy the `TokenCredential` interface, we can help users who want to provide their custom credentials by pointing them to this approach through our docs. Here’s an idea of how we can phrase these docs :)

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

Successfully merging this pull request may close these issues.

3 participants