Skip to content

OAuth2ClientCredentials access token not working in a load balanced setup #5

@mastrup

Description

@mastrup

We run Umbraco in a load balanced setup in Azure.
This is the Authorized Services configuration that we are using:

"CdpApi": {
  "DisplayName": "Personalized Recommendations API",
  "AuthenticationMethod": "OAuth2ClientCredentials",
  "ClientCredentialsProvision": "AuthHeader",
  "ApiHost": "https://e2e.api.com/recommendation",
  "TokenHost": "https://e2e.api.com",
  "AuthorizationUrlRequiresRedirectUrl": false,
  "RequestTokenPath": "/oauth2/token",
  "RequestTokenMethod": "POST",
  "RequestTokenFormat": "FormUrlEncoded",
  "ClientId": "<ClientId>",
  "ClientSecret": "<ClientSecret>",
  "AccessTokenResponseKey": "access_token",
  "ExpiresInResponseKey": "expires_in",
  "JsonSerializer": "JsonNet"
}

When clicking the "Authorize Service"-button on our SchedulingPublisher the service authorizes just fine and I can see an access token being stored in the database.

If I then sign into one of our subscriber instances, I see that the service is not authorized. I can click the authorize button and the service will start working on that instance, but then my SchedulingPublisher will loose its authorization.

This is happening on Umbraco 13.7.2 running Umbraco.AuthorizedServices 10.1.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions