alexziskind1 / nativescript-oauth2

Other
85 stars 93 forks source link

iOS frame doesn't redirect back to app after IdentityServer login #175

Open NechiK opened 2 years ago

NechiK commented 2 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Hi, I'm trying to implement identity server login on iOS (on Android it works like a charm). But after successful login in the frame, it's not closing.

Here are my OAuth settings:

const identityServerProviderOptions: TnsOaProviderOptionsIdentityServer = {
      openIdSupport: 'oid-full',
      issuerUrl: '*****',
      clientId: 'chronosmobiledev',
      urlScheme: 'chronosmobiledev',
      redirectUri: 'chronosmobiledev:/authenticated',
      scopes: ['openid', 'profile', 'offline_access'],
};

And part of Info.plist:

<key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLName</key>
            <string>org.nativescript.chronos</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>chronosmobiledev</string>
            </array>
        </dict>
    </array>

I can't find out what I'm doing wrong. If I try to open chronosmobiledev:/authenticated in Safari it will ask if I want to open my app, but the oauth frame is not closing after successful login.

juniorschen commented 2 years ago

https://github.com/alexziskind1/nativescript-oauth2/issues/156

JCpoz123 commented 2 years ago

We have had the same issue, appears to have started in 3.0.3.

noturtype commented 2 years ago

Upgraded to 3.0.7. from 2.4.4. and this same issue appeared on iOS (android is fine). I went back to 3.0.1. and still had the issue. App has been migrated to NS7 and cannot go back past 3.0.1. causing dependency issues.

PradeepAhuja commented 2 years ago

Hi , Any update on this? We are facing same issue Thanks

droide09 commented 1 year ago

this is still not working on IOS. I cannot find an alternative plugin for Azure and nativescript 8.