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

DL - Adding support for setting the callback URL with the OpenID Connect client. #14

Closed
wants to merge 2 commits into from

Conversation

douglasrlee
Copy link
Contributor

No description provided.

Copy link

@maulin maulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after comments

strategy.js Outdated
@@ -3,11 +3,11 @@ module.exports = function (passport, util) {

function MockStrategy (options, verify) {
if (!verify) { throw new TypeError('MockStrategy requires a verify callback'); }
if (!options.callbackURL) { throw new TypeError('MockStrategy requires a callbackURL'); }
if (!options.callbackURL && !options.client.redirect_uris[0]) { throw new TypeError('MockStrategy requires a callbackURL'); }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this reads a little better to me. if !(options.callbackURL || options.client.redirect_uris[0])
nbd though

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test for the error thrown

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@kylessnell kylessnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm after error test is added

@douglasrlee douglasrlee deleted the dl-open-id-connect-redirect-uri branch January 16, 2019 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants