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

Problem opening native authenticator app #221

Open
FabianMeul opened this issue Oct 25, 2022 · 1 comment
Open

Problem opening native authenticator app #221

FabianMeul opened this issue Oct 25, 2022 · 1 comment

Comments

@FabianMeul
Copy link

FabianMeul commented Oct 25, 2022

Description

I'm having trouble getting this package to open a native authenticator app for our OAuth2 provider.

The authorization URL in question is; https://idp.e2e.itsme.services/v2/authorization.

The above URL opens the native app when using;

  • <a href="" />
  • AppLauncher.openUrl({ url })

The above URL opens in a new browser tab when using;

  • OAuth2Client.authenticate(options)

What can I do have the package open the native app instead of a new browser window?

Capacitor version:

Run npx cap doctor:

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 4.4.0
  @capacitor/core: 4.4.0
  @capacitor/android: 4.4.0
  @capacitor/ios: 4.4.0

Installed Dependencies:

  @capacitor/cli: 4.3.0
  @capacitor/core: 4.3.0
  @capacitor/android: 4.3.0
  @capacitor/ios: 4.3.0

[success] iOS looking great! 👌

Library version:

  • 4.0.0

OAuth Provider:

  • Other: ItsMe

Your Plugin Configuration

{
    appId: appInfo?.id,
    authorizationBaseUrl: baseUrl + '/authorize',
    accessTokenEndpoint: baseUrl + '/token',
    scope: 'openid email profile',
    resourceUrl,
    logsEnabled: true,
    responseType: 'code',
    web: {
        appId: window.location.origin,
        redirectUrl: window.location.href,
        windowOptions: 'height=600, left=0, top=0',
      },
    android: {
        appId: appInfo?.id,
        redirectUrl: `${appInfo?.id}:/`,
    },
    ios: {
        appId: appInfo?.id,
        redirectUrl: `${appInfo?.id}:/`,
    },
}

Affected Platform(s):

  • Android
    • all
  • iOS
    • all
@ludvigbostromdizparc
Copy link

ludvigbostromdizparc commented Nov 10, 2022

I have the exact same problem. Did you found any solution to the problem?

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

2 participants