Rest end point for getting the bearer token from openshift

1/8/2020

I am trying to consume the REST endpoints in openshift such as get pods / deployments etc. In order to hit those endpoints i need the bearer token. I am trying to find out the REST end point that will return the bearer token.

I used curl -u un:pwd -kI 'https://myopenshift.xyz.com/oauth/authorize?clientid=openshift-challenging-client&response_type=token'

It did not return me the token though. Can someone help me here?

-- lr-pal
kubernetes-helm
openshift
redhat

0 Answers