I have benn added react native app but unable to integrate abp authorization flow to expo react native app.
package.json: { "name": "portalsystem", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start --port 19000", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@expo/react-native-action-sheet": "^4.0.0", "@react-native-async-storage/async-storage": "~1.23.0", "@react-navigation/drawer": "^6.5.4", "@react-navigation/native": "^6.1.0", "@react-navigation/native-stack": "^6.9.5", "@reduxjs/toolkit": "^1.7.1", "axios": "~1.2.1", "expo": "~52.0.0", "expo-auth-session": "~6.0.3", "expo-crypto": "~14.0.0", "expo-image-picker": "~16.0.0", "expo-random": "~14.0.0", "expo-status-bar": "~2.0.0", "expo-web-browser": "~14.0.0", "formik": "^2.0.0", "i18n-js": "^3.8.0", "native-base": "^3.4.25", "prop-types": "^15.8.1", "react": "18.3.1", "react-dom": "18.3.1", "react-native": "0.76.5", "react-native-base64": "^0.2.1", "react-native-chart-kit": "^6.11.0", "react-native-gesture-handler": "~2.20.0", "react-native-paper": "^5.9.1", "react-native-reanimated": "~3.16.0", "react-native-root-toast": "^3.5.0", "react-native-safe-area-context": "4.12.0", "react-native-screens": "~4.1.0", "react-native-svg": "15.8.0", "react-native-web": "~0.19.6", "react-redux": "^8.0.0", "reanimated-bottom-sheet": "^1.0.0-alpha.22", "redux-persist": "^6.0.0", "redux-saga": "^1.2.1", "yup": "^0.32.11" }, "devDependencies": { "@babel/core": "^7.19.3", "@babel/plugin-transform-template-literals": "^7.25.7", "@expo/metro-runtime": "~4.0.0", "@types/react-native": "~0.70.6", "typescript": "~5.3.0" }, "private": true }
Error message:
error:unauthorized_client error_description:This client application is not allowed to use the authorization endpoint error_uri:https://documentation.openiddict.com/errors/ID2040 culture:en ui-culture:en
Logs:
(NOBRIDGE) LOG OAuth result: null
(NOBRIDGE) LOG currentUser: {"email": null, "emailVerified": false, "id": null, "impersonatorTenantId": null, "impersonatorTenantName": null, "impersonatorUserId": null, "impersonatorUserName": null, "isAuthenticated": false, "name": null, "phoneNumber": null, "phoneNumberVerified": false, "roles": [], "sessionId": null, "surName": null, "tenantId": null, "userName": null}
1 Answer(s)
-
0
Hi, this usually happens because your React Native client app is not registered properly as a public client (i.e., without a client secret) in the OpenIddict/OpenId configuration. Can you check or share your openiddict configurations?