Skip to content

OAuthAccessTokenProvider constructed too early #53

Closed
@danielwiehl

Description

@danielwiehl

Describe the bug

If enabling OAuth authentication, the configured OAuthAccessTokenProvider is instantiated immediately when starting the application, causing problems if the access token provider depends on services only available after the application startup.

Expected behavior

  • OAuthAccessTokenProvider should be constructed lazily when used for the first time
  • MessageClient should be constructed lazily when used for the first time

Environment

  • Angular Solace Message Client version: 14.0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions