cancel
Showing results for 
Search instead for 
Did you mean: 

Get token in SAP Foundry for API api.cf.eu10.hana.ondemand.com

enric101
Active Contributor
0 Kudos

Hi gurus,

I'm trying to get Bearer token from cloud foundry API in order to get information related with deploys ( like CF client with command mta-ops).

Unfortunally, I can't get the authorization.

Could you give some information about the authorization for this API? And if anybody have and example it would be fantastic!

Thanks in advance

Regards

Enric

View Entire Topic
ennoury
Participant
0 Kudos

Hi Enric,

For access token signing and verification across your configuration, ensure that the JWT settings are exactly the same for every web node. These JWT settings are defined on each web node in the configuration file, appsetting.json. As defined by HTTP/1.1 [RFC2617], the application should send the access_token directly in the Authorization request header. You can do so by including the bearer token's access_token value in the HTTP request body as 'Authorization: Bearer {access_token_value}'. When the API call is sent with the token, Machine Learning Server attempts to validate that the user is successfully authenticated and that the token itself is not expired. If an authenticated user has a bearer token's access_token or refresh_token that is expired, then a '401 - Unauthorized (invalid or expired refresh token)' error is returned. If the user is not successfully authenticated, a '401 - Unauthorized (invalid credentials)' error is returned.

Cheers,