cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 How to avoid the authentication when calling an image url.

naseemvp007
Participant
0 Kudos

Hi all,

In my SAPUI5 application, I have to display an image using a url which is pointing to another server and it is having authentication with username and password.

But it is not good to have a popup authentication within the sapui5 app.

Could you please suggest some possibilities to avoid having this authentication popup inside of the sapui5?

Thanks in advance,

Naseem

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

You will need to configure SSO between your fiori system and the server with images.

Other workaround might be to fetch the image in the backend using a sm59 destination that has access to that server. Expose the image together with your data on the gateway system.

It all depends a bit on your landscape..

naseemvp007
Participant
0 Kudos

Hi Wouter,

Thanks for your suggestions.

your first option with SSO sounds a better option. In this scenario, does the configuration needs to be done on both the sides or only on the fiori system? Do you have any valuable blog links in this regard?

Regarding your workaround with SM59 destination, I am currently using OData generated from CDS annotations using OData.publish: true.
How do we handle the images in this scenario?

Thanks & regards,

Naseem

WouterLemaire
Active Contributor
0 Kudos

What kind of system are you using for the images?


Cds view won’t be enough, you’ll need some ABAP to do that..

Kr, Wouter