-
Notifications
You must be signed in to change notification settings - Fork 268
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
getToken takes only a single set of options #320
Conversation
efb562a
to
3b5d7ba
Compare
CHANGELOG.md
Outdated
@@ -22,6 +22,8 @@ | |||
|
|||
- [#317](https://github.com/okta/okta-auth-js/pull/317) - `pkce` option is now `true` by default. `grantType` option is removed. | |||
|
|||
- [#320](https://github.com/okta/okta-auth-js/pull/320) - `getWithRedirect`, `getWithPopup`, and `getWithoutPrompt` take a single options object |
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.
Wouldn't a more informative note say what has been dropped? If I'm passing two options today, and the CHANGELOG tells me I should only send one, I don't know which one.
function getWithoutPrompt(sdk, oauthOptions, options) { | ||
var oauthParams = util.clone(oauthOptions) || {}; | ||
util.extend(oauthParams, { | ||
function getWithoutPrompt(sdk, options) { |
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.
The README uses "oauthOptions", which does have the advantage of being more specific. Is there a reason to make it more generic? (If so, we should update the README to match, but hopefully we can go with the descriptive, um, option)
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.
The reason there were 2 sets of options is because the first set was supposed to correspond to the OAUTH 2.0 spec, whereas the 2nd set included our "internal" options. Over time, the set of options we support has drifted from this original intention. Now that they are merged, there is no distinction. All options are part of OUR spec and may not necessarily map directly to the OAUTH 2.0 spec. So I think the README should be updated
937963b
to
7ccdf7c
Compare
edcb2e4
to
aa70faa
Compare
bb8730d
to
8a29ce5
Compare
aa70faa
to
1d8082c
Compare
No description provided.