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

User should only complete the "consent form" ONCE #22

Open
reginafcompton opened this issue Jan 31, 2020 · 2 comments
Open

User should only complete the "consent form" ONCE #22

reginafcompton opened this issue Jan 31, 2020 · 2 comments

Comments

@reginafcompton
Copy link
Contributor

reginafcompton commented Jan 31, 2020

Currently, the authserver does not track if a user completed the "consent form".

Thus, a user must complete the form every-single-time-she-logs-in.

Solution

  1. Add a field in the user model, e.g., consent_form_completed. The new field could either be a boolean field, or it could be the name of the public client (e.g., Facet).
  2. The login route will check the value of this field. If the user has already given consent, then Authserver should go directly to the web application (e.g., Facet).
@gregmundy
Copy link
Contributor

The solution is a bit more complicated than what you are suggesting @reginafcompton. Ideally, there will need to be a model that tracks a user's consent to each application. Also, an API endpoint needs to be exposed that at some point in the future will be used to show a user all clients that they have consented to and (thus be able to revoke consent).

@reginafcompton
Copy link
Contributor Author

Ah, this: tracks a user's consent to each application

I seem to forget that clients (other than Facet) will interact with the AuthServer. Good catch @gregmundy.

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

No branches or pull requests

2 participants