Comments (1)
@sebastianbenz This is not 100% accurate, so I wanted to first confirm the technicals here. In the example you describe, if user is already logged in with publisher backend and the user is accessing the CDN document in the same browser context then regardless of the 3rd party iframe or not - the authorization request will see all the publisher's cookies (assuming they are set of the same or a parent domain).
The situation you describe would happen if the login dialog were to open in a different browser context. For instance, if we were to open the document in a WebView and open the login dialog in SFSafariViewController or CCT. Then - correct, your case applies and the expectation is that the user will be automatically logged in. Besides prototyping it this way, we can also emulate this case by putting authorization and login endpoints on different domains. If possible - then definitely, it would be a good example. Not sure if this would be easy enough to set up without over-bloating the sample code.
Another option I'm trying to pursue is to have iGSA folk to create SFSafariViewController-based login flow via an experiment - but I don't know the timing on that yet.
One thing you could do now is simply open your sample site on a separate domain for testing. This way you can emulate separate browser context.
from samples.
Related Issues (20)
- [amp-shadow-reader] 'connect-history-api-fallback' declared at gulpfile.js and NOT USED?
- Dependency deprecation warning: babel-preset-es2015 (npm)
- Dependency deprecation warning: babel-preset-es2015 (npm)
- Error in running Amp-pwa sample HOT 5
- Unable to install amp-paywall-demo
- Remove Google+ from AMP Samples
- amp-camp fails to start
- Creating a PWAMP application using wordpress as CMS HOT 6
- Consider some accessibility for the top of the page at https://amp-article.herokuapp.com/ HOT 1
- AMP Camp: related products don't work when you click on item from cart
- In amp-update-cache sample we are getting amp_ts=undefined error.
- I tried to find the declaration the ${ampjs} but I did not find it. ¿Where is it? HOT 1
- Rename the default branch of this repo from `master` to `main` HOT 7
- Sample for angular
- Demo is down
- Dependency Dashboard
- ampproject/samples
- Samples
- Working Groups for amp
- Ampproject/examples HOT 1
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 samples.