I want to use the go-cfclient library to connect to Cloud Foundry and check for application services etc.
I was able to connect with Java/Node/Go while using my user password explicit in the code.
Now I want to simulate a scenario using a token, i.e. instead of using my password, use my user token to simulate the connection.
How can I achieve this kind of simulation?
Preferred in go-cfclient or Node.
Update
I need an E2E real-life example with a CF token where the user uses some sample UI and maybe provides some credentials the first time, but all subsequent requests should work with the CF token only.
I need this example in Golang.