Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not authorized on physical device #347

Open
raienkoa opened this issue Jan 26, 2023 · 0 comments
Open

Not authorized on physical device #347

raienkoa opened this issue Jan 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@raienkoa
Copy link

raienkoa commented Jan 26, 2023

Describe the bug?

both signIn and signInWithBrowther works great on simulators/emulators (both iOS and Android)
but on physical device facing followin issue:

  1. signInSuccess event triggered and accessToken received
  2. but when I try to getUser, get error User is not authenticated, cannot perform the specific action

At the same time:

  • getAccessToken returns same access_token
  • isAuthenticated returns authenticated: false

Once again, on simulators everything works fine

What is expected to happen?

authentication works on both simulator and physical device

What is the actual behavior?

authentication works only on simulators

Reproduction Steps?

await Okta.createConfig({
    issuer: `https://${env.oktaDomain}`,
    clientId: env.oktaClientId,
    redirectUri: env.oktaSignInUri,
    endSessionRedirectUri: env.oktaSignOutUri,
    discoveryUri: `https://${env.oktaDomain}`,
    scopes: ['openid', 'profile', 'offline_access', 'email'],
    requireHardwareBackedKeyStore: false,
    androidChromeTabColor: colors.brown,
    browserMatchAll: true,
    httpConnectionTimeout: 15,
    httpReadTimeout: 10,
});

await Okta.signInWithBrowser(); // same for await Okta.signIn()

Additional Information?

If we fetch user using API (.well-known/openid-configuration and userinfo_endpoint),
everything works fine

SDK Version

2.8.0

Build Information

iOS 16.2
react-native: 0.70.3
@okta/okta-react-native: 2.8.0
xCode 14.2

@raienkoa raienkoa added the bug Something isn't working label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant