How to request and pass an oauth token via OpenShift 3 Web UI or CURL

Solution Unverified - Updated -

Issue

  • Unable to access the Rest API from a browser.
  • I get HTTP 403 error when making request to REST API.
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "User \"system:anonymous\" cannot list all projects in the cluster",
  "reason": "Forbidden",
  "details": {
    "kind": "projects"
  },
  "code": 403
}
  • How do I make REST API calls with curl for OpenShift 3?

Environment

  • Red Hat Enterprise OpenShift 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.