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

Add check for empty subject in AcceptLoginRequest #1308

Merged
merged 7 commits into from
Mar 17, 2019
Merged

Add check for empty subject in AcceptLoginRequest #1308

merged 7 commits into from
Mar 17, 2019

Conversation

kminehart
Copy link
Contributor

@kminehart kminehart commented Mar 13, 2019

Signed-off-by: Kevin Minehart [email protected]

Related issue

#1254

Proposed changes

As per the discussion in the issue, subject should be required in the AcceptLoginRequest schema.

Checklist

  • I have read the contributing guidelines
  • I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security
    vulnerability, I confirm that I got green light (please contact [email protected]) from the maintainers to push the changes.
  • I signed the Developer's Certificate of Origin
    by signing my commit(s). You can amend your signature to the most recent commit by using git commit --amend -s. If you
    amend the commit, you might need to force push using git push --force HEAD:<branch>. Please be very careful when using
    force push.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation within the code base (if appropriate)
  • I have documented my changes in the developer guide (if appropriate)

Further comments

Adding a validation check in the HTTP endpoint was the most straightforward way to prevent extra queries from happening if an empty subject was provided. That might not be the best place for checking for an empty subject.

I need to also make an accompanying a PR in ory/docs

ory/docs#111

Signed-off-by: Kevin Minehart <[email protected]>
Signed-off-by: Kevin Minehart <[email protected]>
@aeneasr
Copy link
Member

aeneasr commented Mar 13, 2019

LGTM - needs a test now :)

Signed-off-by: Kevin Minehart <[email protected]>
@kminehart kminehart marked this pull request as ready for review March 15, 2019 00:09
Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Almost done, just some cleaning up in the test!

@aeneasr
Copy link
Member

aeneasr commented Mar 17, 2019

Nice, good job :)

@aeneasr aeneasr merged commit 1d963c2 into ory:master Mar 17, 2019
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