FormidableLabs / FormidableLabs/react-native-app-auth

App closes while capturing redirect form keycloak

未关闭
#955 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
needs-triage
主要语言
Java
星标
2.3k
派生
473
PR 合并指标
30 天内没有已合并 PR

描述

## Closes while being redirected

Upon successful authentication from keycloak, when the app is redirected, it closes immediately. I've used try catch block to see if it throws any error, but couldn't find any errors, and the code does not reach the next line after the `authorize` function invocation.

## Environment
* **Identity Provider**: `Keycloak`
* **Platform**: `Android`
* **`react-native` Version**: `0.73.6`
* **`react-native-app-auth` Version**: `7.1.3`
* **Are you using Expo?**: `no`

## Configuration
```
// my keycloak sever is running at http://192.168.0.102:8080
{
issuer: 'http://192.168.0.102:8080',
clientId: 'owh-client',
redirectUrl: 'io.identityserver.demo:/oauthredirect',
additionalParameters: {},
scopes: ['openid', 'profile', 'email', 'offline_access'],
serviceConfiguration: {
authorizationEndpoint: 'http://192.168.0.102:8080/realms/Test/protocol/openid-connect/auth',
tokenEndpoint: 'http://192.168.0.102:8080/realms/Test/protocol/openid-connect/token',
},
}
```

贡献指南

打开贡献指南

调研方向

从 `authorize` 调用后的 Android 重定向流程开始,使用提供的 Keycloak 配置、`redirectUrl` 以及列出的 React Native 和 react-native-app-auth 版本。在 Android 上重现该重定向,并确定应用为何在到达下一行之前关闭;当身份验证返回应用且应用未关闭,并且该行为已得到验证时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, react-native
领域
authentication, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。