Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

PKCE true is not working when using Okta angular SDK for android and IOS #911

Open
6 tasks
patelchetan79 opened this issue Sep 15, 2020 · 2 comments
Open
6 tasks

Comments

@patelchetan79
Copy link

I'm submitting this issue for the package(s):

  • jwt-verifier
  • [ X] okta-angular
  • oidc-middleware
  • okta-react
  • okta-react-native

I'm submitting a:

  • Bug report
  • Feature request
  • [ X] Other (Describe below)

Current behavior

We are using @okta/okta-angular library to authenticate with OKTA. Our web site is working fine with PKCE true. When we use the same code in IOS app or Android APP. the okta redirect URL is not working. if we use PKCE false, it is redirecting. We are using IONIC capacitor for our app.

Expected behavior

Should call Okta if the PKCE true from APP.

Minimal reproduction of the problem with instructions

Extra information about the use case/user story you are trying to implement

Environment

  • Package Version:
  • Browser:
  • OS:
  • Node version (node -v):
  • Other:
@swiftone swiftone changed the title PKCE true is not working when using Okta anugular SDK for android and IOS PKCE true is not working when using Okta angular SDK for android and IOS Sep 18, 2020
@shuowu
Copy link
Contributor

shuowu commented Sep 21, 2020

@patelchetan79 The cause might be

However, in a Capacitor app, capacitor://localhost is sent as an origin header, and Okta only allows http and https as schemas. This means the CORS request for the ./well-known/openid-configuration metadata fails.

From https://developer.okta.com/blog/2020/09/21/ionic-apple-google-signin#what-about-oktas-angular-sdk-and-sign-in-widget

@sucaba
Copy link

sucaba commented Jun 3, 2021

Any updates on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants