使用 Identity Server 4 和 nativescript-oauth2 登录挂起



我有一个使用nativescriptoauth2插件登录的Nativescript应用程序。

在身份服务器页面上进行身份验证后,它挂起。如果我关闭 Web 视图并再次登录,它就会被自动引导并转到空白的白页并坐在那里。

我的配置是

export function configureOAuthProviderIdentityServer(): TnsOaProvider {
const identityServerProviderOptions: TnsOaProviderOptionsIdentityServer = {
openIdSupport: 'oid-full',
issuerUrl:
'http://10.0.2.2:8000', // using localhost server
clientId: 'mobile',
urlScheme: 'com.company.go',
redirectUri: 'com.company.go://auth',
scopes: [ 'openid' ]
};

这是现在同样的问题,但它没有解决方案 身份服务器 4/本机脚本挂起

有人有这方面的经验吗?

我意识到自定义网址方案没有正确注册。 我不得不在模拟器中重新安装该应用程序。 更新AndroidManifest后.xml并擦除模拟器的数据后,它起作用了。

最新更新