-
Notifications
You must be signed in to change notification settings - Fork 213
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
Add an option to use custom auth request parameters #178
Comments
Do you know if Athena complains if you also send it basic auth? Curious if we could just send both unconditionally - would need to test on other servers too |
I did some testing, when sending auth in header:
both header and body:
returns 401 Unauthorized
only this option works when credentials sent in body without header
returns 200 OK |
OK thank you - so we need to either somehow detect / handle this case or allow more customization of the auth flow. |
Not sure that detecting all such cases can be done reliable, more customization probably better option here. |
This API is not working out of the box with current auth implementaiton
https://docs.athenahealth.com/api/guides/token-endpoint#3legged_Token_Generation_2
fhirclient.server.FHIRServer.post_as_form
sendsclient_id
andclient_secret
in basic auth header, but for API above those parameters must be sent in request body and there is no way to change that except of monkey patching.I do monkey patching right before
handle_callback
call to make it workIt would be nice to have some way to do that with options instead.
The text was updated successfully, but these errors were encountered: