-
Notifications
You must be signed in to change notification settings - Fork 141
Can this plugin override all HTTP calls? #45
Comments
@mraible Did you happen to get any further with this? |
@TomBeckett I have made progress in convincing Okta that they should support |
@mraible has Okta added |
@thomasvidas We did last week. However, we had to roll it back because the implementation caused all kinds of issues with existing data. |
@mraible is Okta currently trying to find a new solution/implementation to be able to add |
We're working on a new solution that doesn't impact existing customers.
…On Thu, Jan 21, 2021 at 04:04 Felix Schwarzmeier ***@***.***> wrote:
@mraible <https://github.com/mraible> is Okta currently trying to find a
new solution/implementation to be able to add capacitor://localhost as a
trusted origin or is this on hold at the moment?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAELZHEWK3EMUUISJOEYHDS3AC35ANCNFSM4QB7QVVQ>
.
|
@mraible can you already give an ETA for the new solution? |
Unfortunately, no. I can't commit to any particular date.
…On Thu, Feb 4, 2021 at 09:38 Felix Schwarzmeier ***@***.***> wrote:
@mraible <https://github.com/mraible> can you already give an ETA for the
new solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAELZACNYZYV7WT64H2STTS5LEQHANCNFSM4QB7QVVQ>
.
|
@mraible Okay, thanks for the quick reply! |
No. I recommend redirecting to Okta to login, just like you'd have to do
with a social login provider.
…On Thu, Feb 4, 2021 at 09:58 Felix Schwarzmeier ***@***.***> wrote:
@mraible <https://github.com/mraible> Okay, thanks for the quick reply!
Have you found another way to get the Okta Sign-In Widget working in a
Capacitor application on iOS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAELZGIGKL5AA6MIQ74KG3S5LG2FANCNFSM4QB7QVVQ>
.
|
@thomasvidas Have you alrady had the chance to look at the underlying issue with the |
We use Here is the relevant part of the Apple Docs
Hence why we use |
I see, thanks for the detailed explanation! |
@mraible I tried your recommended approach using your OktaDev Schematics project. I can transfer the access- and id-token to my application’s WebView. However, I am currently not able to get any session cookie information that I need to SSO into my applications. Using the Okta Sign-In Widget, I was able to set the Okta session cookie, do you know how I could achieve the same result when redirecting to Okta to login? |
@FelixSchwarzmeier Why do you need a session cookie? You might have better luck asking how to accomplish your use case on the Okta developer forums. |
@mraible I need a session cookie to Single-Sign-On into my applications. Okay thanks, will create a new topic there. |
@mraible FYI: I’ve got the Okta Sign-In-Widget working on iOS as well. The Okta Auth JS SDK supports adding your own http request implementation. You can pass the custom implementation via the authParams configuration of the Sign-In-Widget. Using the capacitor http plugin, you can then override the requests as follows which works great for my use case:
|
It's been a couple of weeks. @FelixSchwarzmeier Is this working well for you? |
@mraible Yes, it's working well. |
Does this fix require the Capacitor-http plugin? |
@SmartPlugins Yes, it requires the Capacitor http plugin to avoid any CORS issues. |
@FelixSchwarzmeier We now have the following issue:, want to check if that was the case in your implementation too? |
@SmartPlugins Sorry, I've never encountered this issue. |
I have the same issue as @SmartPlugins when trying @FelixSchwarzmeier's workaround.
--- UPDATE --- Very unrelated to the orignal issue, just figured it might help @SmartPlugins. |
Closing this since it seems that Okta is allowing |
I have created a repo that implements this solution: https://github.com/phofferkamp/Ionic-Okta-Widget-Starter |
Describe the bug
I'm trying to use Okta's Angular SDK and Sign-In Widget to embed a login form in my Ionic + Capacitor application. Everything works fine when I run it in my browser. When I try to run it in iOS Simulator, I get the following error:
I've known about this issue in the past and thought adding this plugin would solve the problem. Okta only allows http/s schemes for its Trusted Origins, and they're not (currently) willing to add support for
capacitor://
.I tried installing this plugin to fix the problem:
Unfortunately, it still happens.
If I run the following command, it does use
http://localhost:8100
as the origin instead ofcapacitor://localhost
.To Reproduce
Steps to reproduce the behavior:
Run app in Xcode, click Login, debug with Safari and you'll see the invalid origin error.
Expected behavior
This plugin overrides all origin headers to use
http://localhost:8100
rather thancapacitor://localhost
.The text was updated successfully, but these errors were encountered: