priyank
priyank

Reputation: 887

openshift 3 REST API authentication

Can we authenticate against OpenShift enterprise 3.2 or 3.3 REST API's using username and password instead of tokens?

Thanks much in advance!

Upvotes: 0

Views: 1817

Answers (1)

As stated in openshift documentation:

Requests to the OpenShift Container Platform API are authenticated using the following methods:

  • OAuth Access Tokens

Obtained from the OpenShift Container Platform OAuth server using the /oauth/authorize and /oauth/token endpoints.

Sent as an Authorization: Bearer…​ header or an access_token=…​ query parameter

  • X.509 Client Certificates

Requires a HTTPS connection to the API server. Verified by the API server against a trusted certificate authority bundle.

So you need to authenticate using either of these ways

Upvotes: 1

Related Questions