HI Team ,
i am trying to use Okta with react i configured the
<Security issuer='https://${yourOktaDomain}/oauth2/default'
clientId='{clientId}'
redirectUri={window.location.origin + 'home/implicit/callback'}
i am configured redirectUri attribute in okta server to http://localhost:3000/home/implicit/callback
then i am entering url http://localhost:3000/home in my browser click enter ,then it ask credentials to okta login, once login process is completed the site is rediteced to http://localhost:3000/home and immediately again redirected to http://localhost:3000 i am expecting to reditect to http://localhost:3000/home but some how its again redirected to base, how can i stop redirecting to base again
okta routers are configured in react as below
-
<Route path="/home/implicit/callback" component={LoginCallback} /> -
<Switch> -
<Route path='/home' component={Home} /> -
<OktaSecuredRoute path='/profile' component={Profile} /> -
</Switch> -
</Router>
please shade some light on this problem , what is wrong in my configuration