Skip to content
edunotari edited this page Aug 30, 2023 · 4 revisions

Credentials

https://192.168.42.150:8443/console<br>
User:     developer<br>
Password: developer<br>

oc login -u system:admin

Access rest API Openshift:

$ minishift oc-env
$ eval $(minishift oc-env)
$ oc login -u system:admin
$ curl -k https://192.168.42.150:8443/oapi/v1/projects //verify access failure

oAPI

$ oc login -u developer -p developer
Login successful.

You have one project on this server: "myproject"

Using project "myproject".
[nock@nock ~]$ oc whoami
developer
[nock@nock ~]$ oc whoami -t
umt_c2LU2xMhmU7GWghLdi5ZoAoqT5IvN_3waZINnEc
[nock@nock ~]$ curl -k https://192.168.42.150:8443/oapi/v1/projects -H "Authorization: Bearer umt_c2LU2xMhmU7GWghLdi5ZoAoqT5IvN_3waZINnEc"

Clone this wiki locally