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

Why remove origin: ENV.AUTH_SERVER_URL from utils.ts??? Oauth can't work #522

Open
bigzhu opened this issue May 30, 2024 · 2 comments
Open

Comments

@bigzhu
Copy link

bigzhu commented May 30, 2024

Same as

I still don't know how to solve this problem.

024258c do some wrong thing, it remove ENV.AUTH_SERVER_URL

If I set AUTH_API_PREFIX="/v1/auth", oauth set redirect_uri is right, but the other auth url changed from example https://api.entube.app/v1/auth/v1/auth/signin/provider/github/, it need two '/v1/auth' to access.

If not set, oauth redirect_uri miss /v1/auth, code can't pass

@dbarrosop
Copy link
Member

dbarrosop commented May 30, 2024

Could you provide steps to reproduce so we can help, please? I.e. a sample docker compose file triggering the issue you are reporting. Thanks!

@bigzhu
Copy link
Author

bigzhu commented May 31, 2024

I forked the source and made modifications to the commit bigzhu@2b0bd07. Now, using my self-built image, everything works fine.

The Docker Compose file does not have any special specific configurations.

Use Cloudflare to provide HTTPS.
Use Nginx to proxy pass.

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

2 participants