'What Callback_URL should do in OAuth2?

I have a Vue app, a backend part on Python, and other utils in a K8s cluster. I want to create an SSO for them. I deployed Keycloak and oauth2-proxy. And when I navigate to the Vue app, Keycloak and oauth2-proxy redirect me to some <host_name>/oauth2/callback endpoint. And I cannot understand what this URL actually does and didn't find a way to change it. I thought it should be the index page of the Vue app but it seems not a way. Should it be a page in the Vue app with this prefix? And isn't it that any app after oauth2-proxy shouldn't know something about authentication happening before? What is the exact page the callback_url should navigate to?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source