Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get a correct callback_url for a forwarded request #36

Closed
secretworry opened this issue Aug 19, 2016 · 1 comment
Closed

Cannot get a correct callback_url for a forwarded request #36

secretworry opened this issue Aug 19, 2016 · 1 comment

Comments

@secretworry
Copy link

After I tried to forward the request to my controller handing the auth logic as below,

scope "/", Example do
    forward "/auth", AuthController
end

In the AuthController, I wouldn't be able to get a correct callback_url with the \auth prepended.

I think the reason is that when generating the callback_url, the script_name in Plug.Conn doesn't get considered.

@secretworry
Copy link
Author

I just noticed that the ueberauth is routed with request_path, i.e. doesn't support forward.

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

No branches or pull requests

1 participant