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

how to custom the TokenRequest 's header ? #58

Closed
geminiyellow opened this issue May 9, 2018 · 2 comments
Closed

how to custom the TokenRequest 's header ? #58

geminiyellow opened this issue May 9, 2018 · 2 comments
Labels

Comments

@geminiyellow
Copy link

when i try to add some flag to the TokenRequest,
i found there is no enter point,
and i read the code, found this:

headers: {'Content-Type': 'application/x-www-form-urlencoded'},

looks like that this library cannot custom headers,
any idea?

@tikurahul
Copy link
Collaborator

I think you can provide your own implementation of a TokenRequestHandler. We give you BaseTokenRequestHandler out of the box. But, if you want to add additional headers, you might want to provide your own implementation.

@geminiyellow
Copy link
Author

thanks @tikurahul , got it.

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

No branches or pull requests

2 participants