Skip to content

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

Description

@NechiK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions