Skip to content

How to use context and login information in autorest generated code? #23233

Answered by dolauli
soroshsabz asked this question in Q&A
Discussion options

You must be logged in to vote

Following is a solution I could think of.

  1. Implement a module like Az.Account to handle login and after login, you may cache the token in the disk.
  2. You add a handler as here, in which you get the token from the disk and put it in the request header.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@soroshsabz
Comment options

Comment options

You must be logged in to vote
1 reply
@soroshsabz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@soroshsabz
Comment options

Answer selected by soroshsabz
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