However, if an app happens to have a slug of "authorize" or "token" (etc) it will result in invalid discovery endpoints being returned. For example, if an app has a slug of "authorize", the discovery endpoint returns:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug The discovery endpoint returns the following URLs:
However, if an app happens to have a slug of "authorize" or "token" (etc) it will result in invalid discovery endpoints being returned. For example, if an app has a slug of "authorize", the discovery endpoint returns:
This is not warned about in the docs (to my knowledge), nor it is validated in authentik in any way
To Reproduce Steps to reproduce the behavior:
https://example.com/application/o/<app-slug>/.well-known/openid-configuration
Expected behavior Put the endpoint "verb" as prefix and move the app slug last for all endpoints:
Also discovery endpoint becomes:
Screenshots If applicable, add screenshots to help explain your problem.
Logs Output of docker-compose logs or kubectl logs respectively
Version and Deployment (please complete the following information):
Additional context Add any other context about the problem here.