How to use @axa-fr/react-oidc-context - 3 common examples

To help you get started, we’ve selected a few @axa-fr/react-oidc-context examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AxaGuilDEv / react-oidc / examples / context / src / Router / Routes.js View on Github external
const Routes = () => (
  <Switch>
    <Route exact path="/" component={Home} />
    <Route path="/dashboard" component={withOidcSecure(Dashboard)} />
    <Route path="/admin" component={Admin} />
    <Route path="/home" component={Home} />
    <Route component={PageNotFound} />
  </Switch>
);
github AxaGuilDEv / dojo-react-oidc-context / exercice-sample / src / Layout / Routes / routes.jsx View on Github external
const Routes = () => {
  return (
    <Switch>
      <Route exact path="/" component={Home} />
      <Route exact path="/projects" component={Projects} />
      <Route exact path="/admin" component={withOidcSecure(Admin)} />
    </Switch>
  );
};
github AxaGuilDEv / react-oidc / examples / context / src / index.js View on Github external
const App = () => (
  <div>
    <AuthenticationProvider
      configuration={oidcConfiguration}
      loggerLevel={oidcLog.DEBUG}
      isEnabled={true}
      callbackComponentOverride={CustomCallback}
    >
      <Router>
        <Header />
        <Routes />
      </Router>
    </AuthenticationProvider>
  </div>
);

@axa-fr/react-oidc-context

OpenID Connect & OAuth authentication using react

MIT
Latest version published 4 months ago

Package Health Score

84 / 100
Full package analysis