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

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

Open
NechiK opened this issue Dec 17, 2021 · 5 comments
Open

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

NechiK opened this issue Dec 17, 2021 · 5 comments

Comments

@NechiK
Copy link

NechiK commented Dec 17, 2021

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.

@juniorschen
Copy link

#156

@JCpoz123
Copy link

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

@noturtype
Copy link

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
Copy link

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

@droide09
Copy link

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

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

No branches or pull requests

6 participants