ex_force
ex_force copied to clipboard
Adds support for JWT OAuth flow
RE Issue #66
Changes to support JWT auth flow in ex_force. Includes:
- New function
get_token_jwtto make the auth call and handle results - New function
create_jwt_payloadto create the JWT assertion payload - Changes to
get_tokento call the correct function given the grant type - New test helper function
assert_form_body_jwt - New tests
The new function get_token_jwt could potentially be avoided, but there are enough differences from the other grant types that it seemed cleaner to create a new function rather than try to add this to the existing function.
I wasn't sure if I needed to make any documentation updates - I can do that if you can point me in the right direction.
As I mentioned earlier, I am a beginner with Elixir - I welcome any feedback and am happy to rework this to better suit your preferences or to make it more Elixir-idiomatic.
Thank you! Scott
Hello, @skostojohn! This is your first Pull Request that will be reviewed by SourceLevel, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.
Hi @chulkilee - please let me know if you are waiting for me on any items for this PR. I am new to this, and not sure if I need to anything else to submit it for review. Thanks!