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 authenticating (getting token) without changing state of OcClient #36

Open
tmenier opened this issue Nov 9, 2018 · 0 comments
Open

Comments

@tmenier
Copy link
Contributor

tmenier commented Nov 9, 2018

OcClient allows you to optionally provide an ad-hoc token on calls to any endpoint, overriding the default token stored within the OcClient instance. However, you can't really get a token in an ad-hoc way. When you call AuthenticateAsync, you're changing the default token used on the OcClient, making it hard to get different tokens using the same instance in a thread-safe way.

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

1 participant