Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Sharing information between hosted app and add-on

New Here ,
Jun 04, 2024 Jun 04, 2024

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!

 

 

 

TOPICS
Embed SDK , Performance , User Interface
469
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 06, 2024 Jun 06, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 10, 2024 Jun 10, 2024

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 10, 2024 Jun 10, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 10, 2024 Jun 10, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines