-
Notifications
You must be signed in to change notification settings - Fork 4
Create a polykey login
command
#408
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
Comments
Like I don't understand what |
The intention is for it to login to PKE using your node. It's hard to read but I think we have a PK authenticate command that fills that role at the top of the plan. But in any case we need a secure way to tie a user session on the website to a PK node that you log in with. |
This makes it seem like
|
Uh oh!
There was an error while loading. Please reload this page.
Specification
This command now falls under the new
polykey auth
subcommand.As part of the PKE PK integration we need to create a new command to help with logging in to PKE. At its core this command just triggers the node to connect to a target node and hand over a token it was given. Since this handover is done over a TLS secured connection protected by the nodes certificate we both prove identity of the node securely an link the node to the login attempt.
The command will be
polykey login <token>
, it will take in the provided token and trigger all the steps to login with that token. The token itself will contain the node it needs to connect to and send the token to.This breaks down into two parts.
Polykey-CLI
.Polykey
to handle the command. This needs to handle signing the JWT token and calling the proper agent RPC handler.How the overall login flow works as designed is under change. We're still reviewing how the flow works and what the best way to approach it is. @shafiqihtsham Is reviewing the options right and and will make a write up comparing them. From there we will decide on the next steps in ENG-619.
Additional context
Parent issue: REF ENG-580
Tasks
polykey-cli
commandPolykey login <token>
.The text was updated successfully, but these errors were encountered: