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

implement prompt:none flow #2

Merged
merged 3 commits into from
Apr 23, 2018

Conversation

rjw57
Copy link
Member

@rjw57 rjw57 commented Apr 12, 2018

Implement prompt:none flow to match that proposed in uisautomation/hydra-consent-app#5. This commit is intended to keep the mock consent app and real consent app in lock step with regards to features.

Update the app to cache the current subject in the flask session and automatically grant requests if there is a user in the session. This approximates the existing Raven behaviour.

Teach the app about the "prompt:none" scope which signals that the request should be immediately rejected if there is not a user in the session.

This PR is required by uisautomation/iar-frontend#153.

Closes #1

Implement prompt:none flow to match that proposed in
uisautomation/hydra-consent-app#5. This commit is intended to keep the
mock consent app and real consent app in lock step with regards to
features.

Update the app to cache the current subject in the flask session and
automatically grant requests if there is a user in the session. This
approximates the existing Raven behaviour.

Teach the app about the "prompt:none" scope which signals that the
request should be immediately rejected if there is not a user in the
session.
@rjw57 rjw57 requested a review from a team April 12, 2018 15:08
Add /logout endpoint which can be used to explicitly log the current
user out of the current session.
Copy link

@msb msb left a comment

Choose a reason for hiding this comment

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

maybe worth adding a comment to the consent_post/consent_get handlers

The manner in which the constent requests are accepted/rejected is not
terribly obvious. Add explanatory comments to consent_{get,post} giving
an overview of how the process works.
@rjw57
Copy link
Member Author

rjw57 commented Apr 18, 2018

maybe worth adding a comment to the consent_post/consent_get handlers

Done in 25297d5

@rjw57 rjw57 requested a review from a team April 18, 2018 10:48
@abrahammartin abrahammartin merged commit 133a8a2 into uisautomation:master Apr 23, 2018
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.

3 participants