react-keycloak / react-native-keycloak

React Native components for Keycloak
MIT License
170 stars 45 forks source link

404 Error on a working keycloak config #102

Closed dentep closed 2 years ago

dentep commented 2 years ago

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',
    });
  2. Add Keycloak provider to app:
    <ReactNativeKeycloakProvider
          authClient={keycloak}
          initOptions={{
            redirectUri: 'mobile://app',
          }}
    />
  3. 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

Additional context The keycloak page opens fine in any browser and console works fine too.

dentep commented 2 years ago

fixes as link was wrong