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

Issue 60 signin routes #64

Merged
merged 11 commits into from
Jun 26, 2018
Merged

Issue 60 signin routes #64

merged 11 commits into from
Jun 26, 2018

Conversation

fmigneault
Copy link
Collaborator

@fmigneault fmigneault commented Jun 13, 2018

PR is WIP

address issue #60

Done

  • no more signin internal/external from UI, all under API
  • same /signin route for internal/external API
  • signin_internal is auto-managed by ziggurat for login
  • signin_external uses the authomatic login, but none really works...
  • invalid credentials banner instead of specific info about login failure (issue Make invalid credentials less informative #59)

Mapping

  • /signin (provider_name='ziggurat') => /signin_internal
  • /signin (provider_name=external provider) => /signin_external => /providers/{provider}/signin

Still under investigation

  • preserve/remove the additional /providers/{provider}/signin ? (do everything in /signin_external)
  • add verification & validation of token (?) with external providers
  • UI login from a central location (pavics-frontend) ?

Possible workaround to avoid many sign in routes

/signin could maybe be used to first (always) attempt login locally via the auto ziggurat mapping, then on failure, check if an external provider was specified and, if so, run the corresponding operation...
would remove any need of /signin_internal / /signin_external

Copy link
Contributor

@dbyrns dbyrns left a comment

Choose a reason for hiding this comment

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

:shipit:

@fmigneault fmigneault merged commit b05da65 into master Jun 26, 2018
@fmigneault fmigneault deleted the issue-60_signin-routes branch June 27, 2018 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants