Comments (10)
@johnwheeler In your oAuth callback page, you write some script code to get window.location.href, extract access token from it, and then send it using CSEvent. Your main CEP extension should listen to this event and receive the token.
from cep-resources.
If this is a possible solution, we will give it a try and see whether we can hack Chromium so that those web sites can be hosted in an iframe.
from cep-resources.
Hi @zhangusc,
Can you elaborate more on what you mean by It is not a desktop application either and doesn't have control to the browser on which it runs
? Thanks.
from cep-resources.
Hi @zhangusc,
If we provide a way with which authorization page could be hosted in an iframe (instead of a new browser window), will "urn:ietf:wg:oauth:2.0:oob" work for you?
from cep-resources.
@lyip1992 In the case of desktop application. Normally, the client application starts an embedded browser to host an oauth login page from the server. If "urn:ietf:wg:oauth:2.0:oob" is specified as the callback of the authentication when sending the request, the server sends back a page with an authorization code or token in its title and content. The client application can then get the code from the page since it has the control of the browser. But in the case of CEP extension, the application itself is running inside a browser, there is no easy way for the extension to get the code from a page sent from server.
from cep-resources.
@dinghui0712 I gave it a try. But currently the browser refuse to load the page sent from oAuth server in an IFrame because the response sets 'X-Frame-Options' to 'SAMEORIGIN'. I don't know how much control you have on the embedded Chromium. But at this point, without changing either the Chromium or the response from the oAuth server, this approach don't seem to work.
from cep-resources.
@dinghui0712, Did you end up supporting urn:ietf:wg:oauth:2.0:oob as a redirect URI?
from cep-resources.
@dinghui0712 No. We ended up hosting a callback page on a web server for the oAuth sign-in workflow
from cep-resources.
@zhangusc Thank you. If you don't mind me asking, how do you pass the OAuth Access Token to the CEP Panel once it's received on the page on the hosted web server?
from cep-resources.
@zhangusc Hello, Can you please explain me your solution?, I was trying to do it but I do not know where should I load the callback page
from cep-resources.
Related Issues (20)
- Need API to move CEP dialog so that the Dialog can be centered on the screen after resizing
- Can't do D&D from CEP panel to Adobe Premiere after update to Premiere Pro 2022 HOT 2
- exportOptionsPNG24.antiAliasing not working HOT 1
- Drag unresponsive inside Adobe CEP html engine on Mac when using the Leva UI library
- Circumventing --ignore-certificate-errors
- ZXPSignCmd on MacOS M1 Pro loops in Terminal
- JSDoc parsing error in type expressions for @param tags
- Cannot use CMD+V to paste inside a shadow DOM input element (After-Effects) HOT 2
- Types of parameters in MOGRT.
- Trouble finding a timestamp service that works HOT 1
- Adobe CC session/user information HOT 2
- Possible to capture a screenshot / current Program Monitor output as image?
- ZXPSignCmd signing zxp using certificate with USB token HOT 1
- CEP 11.1 Character Encoding Issue Breaking Module Import HOT 1
- [PPRO] Apply custom LUT as effect HOT 2
- Where is CEP 11.1 csinsterface.js is still showing as v11.0.0
- Unable to command prompt and powershel to run ZXPSign-CMD HOT 2
- Адобе
- When will there be scripting reference update [2021,2022,2023] HOT 11
- VulcanInterface class not working in CEP_HTML_Test_Extension-10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cep-resources.