Giter Club home page Giter Club logo

Comments (1)

dvoytenko avatar dvoytenko commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.