SaaS CMS has officially launched! Learn more now.

Cannot redirect to the authorization endpoint, the configuration may be missing or invalid. Error using Opt ID


Hi F

Hi Folks,

Trying to set up a site to use Optimizely Identity and keep running into this error. The credentials are in the Appsettings ok, config seems fine in the startup.  I've run a fresh alloy install with the same settings and it worked literally instantly. Anyone any idea what could be happening here?

May 31, 2024 16:34

Can you please post your config (remove keys and sensitive data). 

It appears as if you haven't referenced all endpoints. Another alternative is that you somehow have installed the Microsoft.IdentityModel.Tokens.JsonWebTokens package that also can cause the error.

Jun 03, 2024 7:05

As Eric kindly points out, the configuration should look something like this:

  "Optimizely": {
    "ContentGraph": {
      "ContentVersionSyncMode": "PublishedOnly",
      "PreventFieldCollision": true,
      "GatewayAddress": "",
      "AppKey": "<your app key>",
      "Secret": "<your secret key>",
      "SingleKey": "<your single key>",
      "AllowSendingLog": "true"

I have done a blog post on enabling Opti ID - can you run through the steps on their and confirm that you have ensured you have removed any references to ASP.Net Identity?

Edited, Jun 03, 2024 11:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.