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 <[email protected] <mailto:[email protected]>> 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
    
<https://docs.openshift.org/latest/install_config/configuring_authentication.html#GitHub>


    _______________________________________________
    users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openshift.redhat.com/openshiftmm/listinfo/users
    <http://lists.openshift.redhat.com/openshiftmm/listinfo/users>



_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to