You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As recommended by the OAuth 2.0 for Native Apps RFC claimed "https" scheme redirect URIs (or app links on Android/iOS) should be favoured for security reasons as they guarantee the domain ownership.
App-claimed "https" scheme redirect URIs have some advantages
compared to other native app redirect options in that the identity of
the destination app is guaranteed to the authorization server by the
operating system. For this reason, native apps SHOULD use them over
the other options where possible.
I got it working on Android using the following AndroidManifest.xml configuration:
But on iOS I'm facing an issue when using an associated domain, the redirection is not caught because I think that the handler is not listening on the right event:
capacitorOpenURL is called for custom scheme links but for universal links a different application signature is called in the AppDelegate.swift which in turn calls the capacitorOpenUniversalLink notification instead.
Platform(s) Support Requested
iOS
Describe Preferred Solution
I've opened a PR with a simple fix, by registering the capacitorOpenUniversalLink notification observer the same way it's done with capacitorOpenURL the redirection is handled properly. So something like this:
Describe the Feature
As recommended by the OAuth 2.0 for Native Apps RFC claimed "https" scheme redirect URIs (or app links on Android/iOS) should be favoured for security reasons as they guarantee the domain ownership.
I got it working on Android using the following AndroidManifest.xml configuration:
But on iOS I'm facing an issue when using an associated domain, the redirection is not caught because I think that the handler is not listening on the right event:
capacitorOpenURL
is called for custom scheme links but for universal links a different application signature is called in the AppDelegate.swift which in turn calls thecapacitorOpenUniversalLink
notification instead.Platform(s) Support Requested
Describe Preferred Solution
I've opened a PR with a simple fix, by registering the
capacitorOpenUniversalLink
notification observer the same way it's done withcapacitorOpenURL
the redirection is handled properly. So something like this:Describe Alternatives
Not sure if there are any unfortunately 🤷
Thank you for all the work on this package!
The text was updated successfully, but these errors were encountered: