react-native-keycloak
react-native-keycloak copied to clipboard
404 Error on a working keycloak config
Description 404 Not Found Error when trying to access a Keycloak server. It worked the other day with configuration that i set up and now it does not.
Steps to reproduce:
- Set up a config for keycloak:
const keycloak = new RNKeycloak({
url: 'http://auth.retailix.ai/',
realm: 'master',
clientId: 'retailix',
});
- Add Keycloak provider to app:
<ReactNativeKeycloakProvider
authClient={keycloak}
initOptions={{
redirectUri: 'mobile://app',
}}
/>
- use
keycloak.login()
function to go to login page
Expected behavior To see a keycloak console page
Screenshots
- Device: iPhone 13
- OS: iOS 15.2
- Versions: "@react-keycloak/native": "^0.6.2", "react-native-inappbrowser-reborn": "^3.7.0",
Additional context The keycloak page opens fine in any browser and console works fine too.
fixes as link was wrong