nativescript-oauth2 icon indicating copy to clipboard operation
nativescript-oauth2 copied to clipboard

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

Open NechiK opened this issue 4 years ago • 5 comments

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?

  • iOS
  • iOS 15.2
  • emulator. iPhone 13 Pro

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

  • CLI: 8.1.4
  • Cross-platform modules: (check the 'version' attribute in the node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): 8.1.0
  • Plugin(s): "nativescript-oauth2": "3.0.7"

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.

NechiK avatar Dec 17 '21 23:12 NechiK

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

juniorschen avatar Jan 13 '22 12:01 juniorschen

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

JCpoz123 avatar Jan 19 '22 22:01 JCpoz123

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.

noturtype avatar Jan 20 '22 19:01 noturtype

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

PradeepAhuja avatar Mar 30 '22 03:03 PradeepAhuja

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

droide09 avatar Nov 29 '22 08:11 droide09