Skip to content
Discussion options

You must be logged in to vote

I think using a custom ITokenSource implementation is the right way to go about this. We don't have a sample for OAuth 2 specifically, but you can refer to our token source unit tests to get an idea of what it might take.

Making it available through DI should work. We generally advise against using DI objects in orchestrator functions since they're technically non-deterministic, but I think injecting an ITokenSource implementation should be fine since it's used primarily in the context of a built-in activity function.

Feel free to submit a GitHub issue (or even better, a PR) if you think we should have a built-in ITokenSource implementation for a client credentials-based flow. I think thi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ConnorMcMahon
Comment options

@andybooth
Comment options

Answer selected by cgillum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants