Skip to content

Coder's /oauth2 route overrides app's route #12736

Closed
@alasdairtran

Description

@alasdairtran

It looks like recently, Coder introduced a new route handler for /oauth2 in #12240 which conflicts with our own app's route. In our development server, we set up an Ory Hydra's OAuth2 server in the backend and create a Coder app pointing to it. When logging in from our frontend, our login page first makes a request to:

https://hydra--main--workspace--username.coder.example.com/oauth2

where we've set up *.coder.example.com as our CODER_WILDCARD_ACCESS_URL

It used to work normally before #12240 was merged. Unfortunately, Coder now intercepts the request and displays an error message:

{
"message": "OAuth2 provider is under development."
}

Is it possible to disable Coder's built-in /oauth2 route? More generally, I feel that Coder shouldn't intercept any paths under the wildcard access URL.

Activity

self-assigned this
on Mar 28, 2024
Emyrk

Emyrk commented on Mar 28, 2024

@Emyrk
Member

This was fixed here: #12732

I made sure this does not happen again: #12812

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

Metadata

Metadata

Labels

waiting-for-infoThe issue creator is asked to provide more information.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Coder's /oauth2 route overrides app's route · Issue #12736 · coder/coder