Re: CLI login when using social authentication provider

2018-05-29 Thread Tim Dudgeon
OK, didn't quite work that way for me as just using `oc login ... -u 
username` just gave me a pw prompt.
Instead if I just logged in to the console using github I could then go 
to the menu in the top right corner and choose the 'Copy login command' 
option and this copied the entire `oc login https://your.server 
--token=**` command to the clipboard.



On 29/05/18 14:59, Jordan Liggitt wrote:
If you attempt to log in from the command line (`oc login 
https://your.server`), you get prompted to obtain a token via a web 
login, and are given a command to take back to the CLI to log in.


On Tue, May 29, 2018 at 9:53 AM, Tim Dudgeon > wrote:


We've set up our OpenShift environment to use GitHub as an
authentication provider as described in [1].
Logging in through the web console works perfectly.
What's not clear is now to login using the CLI. Using:

oc login https://your.server -u githubusername

is clearly not going to work. Presumably you need to get some form
of token form github and then specify that.
How does one go about doing this?

[1]

https://docs.openshift.org/latest/install_config/configuring_authentication.html#GitHub




___
users mailing list
users@lists.openshift.redhat.com

http://lists.openshift.redhat.com/openshiftmm/listinfo/users





___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: CLI login when using social authentication provider

2018-05-29 Thread Jordan Liggitt
If you attempt to log in from the command line (`oc login
https://your.server`), you get prompted to obtain a token via a web login,
and are given a command to take back to the CLI to log in.

On Tue, May 29, 2018 at 9:53 AM, Tim Dudgeon  wrote:

> We've set up our OpenShift environment to use GitHub as an authentication
> provider as described in [1].
> Logging in through the web console works perfectly.
> What's not clear is now to login using the CLI. Using:
>
> oc login https://your.server -u githubusername
>
> is clearly not going to work. Presumably you need to get some form of
> token form github and then specify that.
> How does one go about doing this?
>
> [1] https://docs.openshift.org/latest/install_config/configuring
> _authentication.html#GitHub
>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


CLI login when using social authentication provider

2018-05-29 Thread Tim Dudgeon
We've set up our OpenShift environment to use GitHub as an 
authentication provider as described in [1].

Logging in through the web console works perfectly.
What's not clear is now to login using the CLI. Using:

oc login https://your.server -u githubusername

is clearly not going to work. Presumably you need to get some form of 
token form github and then specify that.

How does one go about doing this?

[1] 
https://docs.openshift.org/latest/install_config/configuring_authentication.html#GitHub



___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users