Skip to content

Fix: .well-known/openid-configuration doesn't work anymore#16845

Merged
Zeegaan merged 1 commit intov14/devfrom
v14/fix/openid-configuration
Aug 5, 2024
Merged

Fix: .well-known/openid-configuration doesn't work anymore#16845
Zeegaan merged 1 commit intov14/devfrom
v14/fix/openid-configuration

Conversation

@Migaroez
Copy link
Copy Markdown
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

Description

Somewhere between 14.0 and 14.1, our .well-known endpoint for OpenID (/.well-known/openid-configuration) has gone missing. We need it back.

testing

  • Request https://localhost:[port]/.well-known/openid-configuration
    It should return something like image
  • Make sure the backoffice requests are still working and openiddict is processing them (see console output)
  • Make sure frontoffice requests are still working and openIddict skips them (see console output)

var backOfficePathSegment = Constants.System.DefaultUmbracoPath.TrimStart(Constants.CharArrays.Tilde)
.EnsureStartsWith('/')
.EnsureEndsWith('/');
_pathsToHandle = [backOfficePathSegment, "/.well-known/openid-configuration"];
Copy link
Copy Markdown
Contributor Author

@Migaroez Migaroez Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel like we need to store this string in a const/configuration as we should not need it outside of this class even though it feels like a magic string.

@Zeegaan
Copy link
Copy Markdown
Member

Zeegaan commented Aug 5, 2024

Looks good, tests good 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants