You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLI constructs an OpenID Client, performs discovery on issuer URL and constructs an auth URL with a redirect to localhost:$PORT
CLI prints the URL to stdout and listens on localhost:$PORT (meanwhile the user opens the URL on the same machine the CLI is running on and performs the login)
Once the request arrives on the socket after successful login, code parameter should be extracted from the URL and a request should be made to identity provider to exchange the code to an access token.
rvolosatovs
changed the title
Extract crate/auth redirect and secret storage code into Enarx CLI
Login and secret storage code in Enarx CLI
Jun 23, 2022
The flow should be as follows:
localhost:$PORT
stdout
and listens onlocalhost:$PORT
(meanwhile the user opens the URL on the same machine the CLI is running on and performs the login)code
parameter should be extracted from the URL and a request should be made to identity provider to exchange the code to an access token.Very rough, insecure example adapted from https://docs.rs/openidconnect/2.3.1/openidconnect/index.html#getting-started-authorization-code-grant-w-pkce:
Refs #191
Refs #118
enarx/enarx#1953
Some of the session-related code from https://github.com/profianinc/benefice/tree/main/crates/auth could be extracted and adapted to OpenID Conect client login flow.
The text was updated successfully, but these errors were encountered: