Skip to content

Bug: Cannot use KindeClient in tests #197

@repolevedavaj

Description

@repolevedavaj

Prerequisites

Describe the issue

Currently, the initialization of the KindeClient fails as there is no implementation for OidcMetaData:

1) [Guice/MissingImplementation]: No implementation for OidcMetaData was bound.

Requested by:
1  : KindeClientImpl.<init>(KindeClientImpl.java:27)
      \_ for 2nd parameter
     at KindeClientGuiceModule.configure(KindeClientGuiceModule.java:37)

Learn more:
  https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

1 error

======================
Full classname legend:
======================
KindeClientGuiceModule: "com.kinde.client.KindeClientGuiceModule"
KindeClientImpl:        "com.kinde.client.KindeClientImpl"
OidcMetaData:           "com.kinde.client.OidcMetaData"
========================
End of classname legend:
========================

This issue seems to come from here com.kinde.client.KindeClientGuiceModule#isTestEnvironment, where it is checked whether we run in a test environment.

Library URL

https://github.com/kinde-oss/kinde-java-sdk

Library version

2.2.0

Operating system(s)

Windows

Operating system version(s)

Windows 11

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions