-
Notifications
You must be signed in to change notification settings - Fork 462
Feature/additional parameters #33
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
Conversation
ed523f2 to
bf114ea
Compare
README.md
Outdated
| - **issuer**: (`string`) *REQUIRED* the url of the auth server | ||
| - **clientId**: (`string`) *REQUIRED* your client id on the auth server | ||
| - **redirectUrl**: (`string`) *REQUIRED* the url that links back to your app with the auth code | ||
| - **additionalParameters**: (`object` | `null`) additional parameters that will be passed in the authorization request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be helpful to document how these additional parameters are passed in the request or is that obvious to anyone who is using this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Essentially
{ hello: 'world` }
would be sent as
<url-and-other-params>&hello=world
But I'll make it more explicit in the docs.
|
|
||
| ReadableMapKeySetIterator iterator = additionalParameters.keySetIterator(); | ||
|
|
||
| if (iterator.hasNextKey()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol
jevakallio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only thing that needs changing is walking through the entire parameter keyset.
jevakallio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
Fixes #30
This will enable passing additional parameters to the auth server in the auth request.
They will be passed into the auth object in JavaScript
e.g.
additionalParameterson iOSadditionalParameterson Androidconfigobject