我想使用带 identityServer4 和 AppAuth 库的asp.net内核对Android应用程序使用身份验证。 我可以登录。但是我想知道如何重定向到我的Android应用程序中的活动。 (我也不想使用网络视图)
在这里我配置 位于ids4的Android客户端。 org.springframework.web.util.UriBuilder
Android配置
manifestPlaceholders = [
'appAuthRedirectScheme': 'com.googleusercontent.apps.samudini'
]
Gradle应用文件
<activity android:name="net.openid.appauth.RedirectUriReceiverActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="com.googleusercontent.apps.samudini"
/>
</intent-filter>
</activity>
清单
{{1}}