Re: how to get cf authentication token programmatically
Noburou TANIGUCHI
Hi zooba,
Though I haven't tried them by myself, I conceived the following 2 methods: (a) Push your app with an auth token and a refresh token, and refresh the auth token using the refresh token or, (b) Create another user only for your app and push the app with the credentials of the user For (a), I'm not sure how an auth token is refreshed, but it seems able to be done via /oauth/token endpoint in UAA [1]. For (b), it seems that you need just revokable credentials, so I think you can use a user dedicated to the app as revokable credentials. [1] https://github.com/cloudfoundry/uaa/blob/master/docs/UAA-APIs.rst#oauth2-token-endpoint-post-oauth-token I hope this helps. zooba Sir wrote Actually my app needs to get info of other apps running in same cf api ----- I'm not a ... noburou taniguchi -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-how-to-get-cf-authentication-token-programmatically-tp2668p2716.html Sent from the CF Dev mailing list archive at Nabble.com.
|
|