-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: token-based login #132
Conversation
b2e62fb
to
bd562a3
Compare
CC @pmuir |
Verifying this! |
@@ -87,6 +89,8 @@ func NewLoginCmd() *cobra.Command { | |||
cmd.Flags().StringVar(&args.url, "url", stagingURL, "URL of the API gateway. The value can be the complete URL or an alias. The valid aliases are 'production', 'staging', 'integration', 'development' and their shorthands.") | |||
cmd.Flags().BoolVar(&args.insecureSkipTLSVerify, "insecure", false, "Enables insecure communication with the server. This disables verification of TLS certificates and host names.") | |||
cmd.Flags().StringVar(&args.clientID, "client-id", defaultClientID, "OpenID client identifier.") | |||
cmd.Flags().StringVar(&args.authURL, "auth-url", connection.DefaultAuthURL, "SSO Authentication server") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would add comment to separate those flags as temp.
README.md
Outdated
@@ -8,7 +8,7 @@ Go to [releases](https://github.com/bf2fc6cc711aee1a0c2a/cli/releases) to downlo | |||
|
|||
## Getting Started | |||
|
|||
1. Login to RHOAS | |||
### Login to RHOAS | |||
|
|||
```shell | |||
rhoas login --insecure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add info to qa server so it will be clear for the moment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added here d5d2beb
(#132)
Resolves #130
This PR makes it (again) possible to login with an offline token. This is a temporary workaround until a client is available on production SSO and should be removed again ASAP.
Logging in
rhoas login --token $TOKEN --client-id cloud-services
Side note
This now means that to log in using the authorization code flow, you must specify the auth URL: