Client Login via device authorization flow - #309
Conversation
Removing this package because there is no other provider at the moment and there is no use for the interface yet
We won't support only auth0 and renaming makes sense in the long run
Added a StatusNeedsLogin to trigger login when needed Updated the status command
Check for missing setup key or sso input
|
@mlsmaycon do we really need --sso? When there is no setup key provided then it should be interactive login by default, right? |
we do for now, for self-hosted users, we will make it default in new releases |
Maybe instead of saying to use a LOGIN command should we recommend the UP command?
|
Output from Down,UP and Login commands are going to stdout and stderr Silencing the help output after an error on CLI Better message when setup-key is invalid
Output from Down,UP and Login commands are going to stdout and stderr Silencing the help output after an error on CLI Better message when setup-key is invalid
Created a provider client interface Login flow will run on daemon. A new method to wait sso login was added
removed log errors from client in favor of clean error response that gets printed out
|
When doing first run: Log output. The PermissionDenied error is okay, right? We first try to log in and see, that the device has not been registered. |
|
When doing the first run and then There is an error in the log: |
Was a local issue with peers in testing account |
expected as our internal.Login outputs logs before returning. |
UI and CLI Clients are now able to use SSO login by default we will check if the management has configured or supports SSO providers daemon will handle fetching and waiting for an access token Oauth package was moved to internal to avoid one extra package at this stage Secrets were removed from OAuth CLI clients have less and better output 2 new status were introduced, NeedsLogin and FailedLogin for better messaging With NeedsLogin we no longer have endless login attempts
The client will fetch the device authorization flow information from management and will use it to login using our hosted provider.