-
-
Notifications
You must be signed in to change notification settings - Fork 782
Closed
Labels
Description
We use LDAP for authentication. I've been sharing this one-liner with all of our internal users:
export ST2_AUTH_TOKEN=$(st2 auth `whoami` -t)
As a new user this is definitely non-intuitive. It'd be really nice to support a mechanism like
st2 login
While you could require your username, you could also just default to the current user name since thats how many (most?) corporate environments would be setup with ldap anyway.
Or you can prompt with default like:
$ st2 login
Username [default <user>]: <prompt for input>
Password: <prompt for input>
Or skip straight to username and optional password
$ st2 login `whoami` -p $PASSWORD
Lots of ways to skin the cat. But the business objective here is to make it easier for new/occasional end-users to authenticate.
enykeev and Kami