Opaque Tokens

I was trying to use the CloudFoundry API. I was able to obtain a regular token and call the API and things were working. I then read a blog about opaque tokens. I added the extra parameter to generate opaque tokens for the uaa API. I do get an opaque token however when I try to use it I get a 401 HTTP error. Does the API support opaque tokens? I am calling the following API:


What I get back is the following:

HTTP 401
“description”: “Invalid Auth Token”,
“error_code”: “CF-InvalidAuthToken”,
“code”: 1000

I don’t know about opaque tokens. We don’t use them in any of the tooling that I’m aware of. I just use the access_token provided in the JWT for our tooling.

How are you passing the token into the cf api call?

I was adding it to the Authorization header as a BEARER token.

I found the information from this CloudFoundry blog…