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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: OAuth2AuthenticateOptions during test #202

Open
shifenis opened this issue Apr 15, 2022 · 0 comments
Open

Bug: OAuth2AuthenticateOptions during test #202

shifenis opened this issue Apr 15, 2022 · 0 comments

Comments

@shifenis
Copy link

shifenis commented Apr 15, 2022

Capacitor version:

Run npx cap doctor:

馃拪   Capacitor Doctor  馃拪

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 馃憣
[success] Android looking great! 馃憣

Library version:

^3.0.1

OAuth Provider:

Azure AD (B2C)

Your Plugin Configuration

  private readonly configuration: OAuth2AuthenticateOptions = {
    appId: `appId`,
    authorizationBaseUrl: `authorize`,
    scope: myScope,
    accessTokenEndpoint: `accessTokenUri`,
    resourceUrl: null,
    responseType: "code",
    pkceEnabled: true,
    additionalParameters: {
      prompt: "select_account",
    },
    web: {
      redirectUrl: `myRedirect`,
    },
    android: {
      redirectUrl: "uri",
    },
    ios: {
      pkceEnabled: true,
      redirectUrl: "uri",
    },
  } ;

Current Behavior

The problem is present when adding additionalParameters and running npx ng test with .spec that contains some test on that file it runs:

Object literal may only specify known properties, and 'additionalParameters' does not exist in type 'OAuth2AuthenticateOptions'

Even if the interface is correctly extended.

Expected Behavior

The test should run.

Reproduction Steps

  1. Add configuration
  2. additionalParameters object
  3. run npx ng test
@shifenis shifenis changed the title Bug: Bug: OAuth2AuthenticateOptions during test Apr 15, 2022
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

1 participant