-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide better examples of scope #380
Comments
This might be a stretch for this topic, but we are seeing a use case in ManifoldJS for the ability to add multiple end points to a scope. Mainly being able to support authentication. For example, if an app uses Facebook to authenticate, and Facebook is not into he scope, then the auth process is outside the app experience for the users. Any thoughts on this? |
Ok, two thoughts... and it would be great to work through a real example here...:
Given: {
"scope": "/myapp/"
} normal linkingSo, given a user wants to log into facebook, one could navigate to https://login.facebook.com - this "breaks" scope, hence causes browser to open (not great experience, but stay with me). Once authentication finishes, facebook.com navigates back to "example.com/myapp/logged_in/". As the scope is registered (and as the app is open), the web application reopens (i.e., this is a "deep link" behavior). Issues: requires the browser to keep track of which pages are working as "apps". The app could die in the background before the user finishes authentication. It doesn't integrate nicely with OS level pre-authentication (but it could, MAYBE, with the proposed credential management API ... need to investigate this). window.open()Using Issues: we probably need to have more control over window.open() to make it feel more native. |
I like having control over window.open in an app scenario. As an app you could want a different experience than on the web. |
@boyofgreen, yeah, I also found a few examples of this while researching |
FWIW, having an "unbounded" (i.e., undefined) |
Just a quick note that an example for scope might be registering a web app as handling a particular URL scope for the purpose of handling App Links on Android, or Universal Links on iOS. |
People are confused by the lack of examples relating to scope:
pwa-builder/PWABuilder-CLI#42 (comment)
The text was updated successfully, but these errors were encountered: