Skip to content

fix: redirect bare /auth to the login page in mock and ldap auth units - #428

Open
DaniilSmirnov wants to merge 1 commit into
VKCOM:developfrom
DaniilSmirnov:fix/410-auth-mock-redirect
Open

DaniilSmirnov wants to merge 1 commit into
VKCOM:developfrom
DaniilSmirnov:fix/410-auth-mock-redirect

Conversation

@DaniilSmirnov

Copy link
Copy Markdown

When a reverse proxy routes the whole /auth prefix (location /auth instead of the exact "location = /auth" + "location /auth/" pair) to the auth unit, the UI's redirect to /auth ended on "Cannot GET /auth" from auth-mock. The mock and ldap units now send /auth to their own login page.

auth-mock exposes createApp, like auth-oauth2, so the routes can be tested.

Fixes #410

When a reverse proxy routes the whole /auth prefix (location /auth instead
of the exact "location = /auth" + "location /auth/" pair) to the auth unit,
the UI's redirect to /auth ended on "Cannot GET /auth" from auth-mock.
The mock and ldap units now send /auth to their own login page.

auth-mock exposes createApp, like auth-oauth2, so the routes can be tested.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant