cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate bearer token and access backend api from UI

0 Kudos
405

I am using UAA to secure my application and I am able to access my backend api by bearer token. now I am little confused on how to generate the token in UI in order to access by backend API.

Both backend and UI are using same UAA instance and the application is deployed in SAP cloud foundry.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

jhodel18
Active Contributor
0 Kudos

Hi Pavithra,

You don't have to generate the bearer token from the UI, as long as you bind the Web Content service to the same UAA and also configure you MTA destinations properly, you don't have to do anything manually in the authentication. This job is taken cared of by the App Router.

0 Kudos

Hi Jhodel,

Thanks for the response. Yes I have bind the Web Content service to the same UAA, By MTA destination you mean the destination of backend that is added to UI in the mta.yaml file of the application as shown in the attachment here creenshot-41.png . Also I would I appreciate if you can provide link to some blogs which explains this scenario.

Thanks in advance.