openid / AppAuth-Android

Android client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-Android
Apache License 2.0
2.83k stars 883 forks source link

Is there a guidance or a suggested way on how to safely deliver the deeplink which carries the redirect URI to an app ? #984

Open Ch0pin opened 1 year ago

Ch0pin commented 1 year ago

Configuration

Description

My point is that by using what is on the README (assuming that I am not missing something important), any app can imitate another app by using the client id along with the redirect uri. In case two apps are using the same redirect scheme, the intent will be delivered to the "legit" app assuming that the user can identify the legitimate component in the ambiguity dialog. In case, though, that the legitimate app is not installed on the device the auth code will be delivered to the app that 'claims' the redirect uri in its manifest.

So I am asking if there is a way or a safer implementation when it comes to delivering the deeplink back to the authorised application.