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

New invitation endpoint #179

Merged
merged 5 commits into from
Nov 18, 2015
Merged

New invitation endpoint #179

merged 5 commits into from
Nov 18, 2015

Conversation

joeatwork
Copy link
Contributor

An alternative to #157 - allow newly invited users to simultaneously verify their email addresses and reset their passwords.

@joeatwork
Copy link
Contributor Author

Discussed a simpler approach with @bobbyrullo

  • Invitation endpoint verifies email address, produces a second, pure PasswordChange token, redirects the user.
  • Consider adding a method to the InvitationToken that can produce a PasswordChange token, preserving everything it needs

That means you can get rid of handlePOST and a bunch of the new test cases

@@ -355,9 +361,35 @@ func TestSendResetPasswordEmailHandler(t *testing.T) {
}
}

type resetPasswordTestCase struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why define this outside of testResetPasswordHandler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made obsolete in a162744

@bobbyrullo
Copy link
Contributor

LGTM (with the assumption that you've run through all the tests of course :) )

An invitation allows users to both verify their email address and set
a new password.
joeatwork added a commit that referenced this pull request Nov 18, 2015
@joeatwork joeatwork merged commit a9ab638 into master Nov 18, 2015
@joeatwork joeatwork deleted the new-invitation-endpoint branch November 18, 2015 22:25
bcwaldon added a commit to bcwaldon/dex that referenced this pull request Dec 10, 2015
Drive authctl new-client with API
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.

2 participants