Bug 1369671 - User can not login via oc when grantMethod is prompt for openshift-challenging-client oauthclient
Summary: User can not login via oc when grantMethod is prompt for openshift-challengin...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: Chuan Yu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-24 06:28 UTC by weiwei jiang
Modified: 2018-08-08 12:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-08 12:40:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description weiwei jiang 2016-08-24 06:28:46 UTC
Description of problem:
User login got "error: unsupported protocol scheme" after the grantMethod of openshift-challenging-client oauthcliet is prompt.

Version-Release number of selected component (if applicable):
# openshift version 
openshift v3.3.0.24-dirty
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

How reproducible:
always

Steps to Reproduce:
1. Change the grantMethod of openshift-challenging-client to prompt
2. Try to oc login the master
3.

Actual results:
 oc login <master host>
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Authentication required for <master URL> (openshift)
Username: wjiang
Password: 
error: unsupported protocol scheme ""


Expected results:
Should login successfully

Additional info:

Comment 1 Jordan Liggitt 2016-08-24 23:54:03 UTC
CLI login when grant prompt is required is not currently supported, but we should display a nicer message or redirect to a web flow

Comment 2 weiwei jiang 2016-08-25 08:52:00 UTC
(In reply to Jordan Liggitt from comment #1)
> CLI login when grant prompt is required is not currently supported, but we
> should display a nicer message or redirect to a web flow

Agree with you.
And when I try to write the expected result, I am not sure if oc can login succefully when grantMethod is prompt.

Comment 5 Simo Sorce 2018-08-08 10:29:21 UTC
Is this still a valid bug ?
Can we close ?


Note You need to log in before you can comment on or make changes to this bug.