Copy link to clipboard
Copied
Hi everyone,
I am developing an add-on that allow user to import medias (videos/images). We integrated adobe express embedded sdk into our platform. User gonna log into to our platform and use adobe express (full editor mode). The add-on gonna fetch and show all available videos/images from user. To do this, user also need to login again one more time in the add-on to be able to get data.
Do you have any ideas or suggestion so that user don't have to log in 2 times (to platform & to add-on)? I'm thinking somehow passing access_token information to adobe express embedded editor and access it from addOnUISdk object on the add-on side but it seem impossible?
Any helps would be really appreciated!
Copy link to clipboard
Copied
Hi, you can't pass arbitrary data to Express and then to add-on. You can achieve the required behaviour using browser cookies/local-storage/etc.
Copy link to clipboard
Copied
Hi, Thanks a lot for your reply. One thing I'm concern is the add-on, and hosted app may being deployed on different domain. And it's may need to do some work-around on the add-on to access local storage from cross-domain. Is this pratice ok when develop an Express add-on?
Copy link to clipboard
Copied
So you can open a popup window from add-on and the popup window location could be any domain. For this, you need to mention a permissions in add-on manifest - allow-popups
Copy link to clipboard
Copied
Or you can also use the OAuth authorize() api in add-on sdk and pass the url of the page that implements OAuth2 and which can do login based on browser state. In this case, add-on gets back the auth-code which it can use to fetch access-token.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more