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

Vote:
 

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?

#322944
May 31, 2024 16:34
Vote:
 

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.

#323026
Jun 03, 2024 7:05
Vote:
 

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

  "Optimizely": {
    "ContentGraph": {
      "ContentVersionSyncMode": "PublishedOnly",
      "PreventFieldCollision": true,
      "GatewayAddress": "https://cg.optimizely.com",
      "AppKey": "<your app key>",
      "Secret": "<your secret key>",
      "SingleKey": "<your single key>",
      "AllowSendingLog": "true"
    }
  }

I have done a blog post on enabling Opti ID https://world.optimizely.com/blogs/allthingsopti/dates/2024/5/a-day-in-the-life-of-an-optimizely-developer---enabling-opti-id-within-your-websites/ - can you run through the steps on their and confirm that you have ensured you have removed any references to ASP.Net Identity?

#323041
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.