react-native-keycloak icon indicating copy to clipboard operation
react-native-keycloak copied to clipboard

404 Error on a working keycloak config

Open dentep opened this issue 2 years ago • 1 comments

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:

  1. Set up a config for keycloak:
const keycloak = new RNKeycloak({
  url: 'http://auth.retailix.ai/',
  realm: 'master',
  clientId: 'retailix',
});
  1. Add Keycloak provider to app:
<ReactNativeKeycloakProvider
          authClient={keycloak}
          initOptions={{
            redirectUri: 'mobile://app',
          }}
/>
  1. use keycloak.login() function to go to login page

Expected behavior To see a keycloak console page

Screenshots simulator_screenshot_1D13FA70-1FC7-4FEB-818E-074C3B737485

  • 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.

dentep avatar Aug 04 '22 09:08 dentep

fixes as link was wrong

dentep avatar Aug 04 '22 12:08 dentep