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

Login from CLI without manually creating a secret #7

Closed
begelundmuller opened this issue Jul 13, 2021 · 1 comment
Closed

Login from CLI without manually creating a secret #7

begelundmuller opened this issue Jul 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@begelundmuller
Copy link
Member

Problem to solve and solution

It's a barrier to have to create a CLI secret to login from the command line. We'll add a ticket-based login flow that opens in your browser when you run "beneath login".

Proposed solution and changes

  • Create a model AuthenticationTickets
  • Create resolvers for creating, approving and polling authentication tickets
  • Create a frontend flow for approving tickets (e.g. /-/auth/ticket?ticket=XXX)
    • If logged in, ask for approval
    • If not logged in, redirect to auth, then direct back to approval page

Risks and challenges

  • Make sure the flow works for new users who haven't previously created a user (i.e. they'll be shown the welcome screen before redirecting to the approval page)
@begelundmuller begelundmuller added the enhancement New feature or request label Jul 13, 2021
@begelundmuller
Copy link
Member Author

Implemented, ending with d641a8b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant