We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use gitea in docker, and set up oauth2 client with google. when i login with google, it shows account confirm page,
but after After continue, the page will stay for a few seconds, then redirect to my gitea page and show 500.
error page:
the gitea log:
2024/06/26 | 08:28:12 ...eb/routing/logger.go:68:func1() [W] router: slow GET /user/oauth2/Google/callback?state=ae3c5578-e834-46af-8213-030808afddcf&code=4%2F0ATx3LY5AXl-AaFvS2-Wd7HZQJG7S9AZj7R9C5_cXxXTf9vz7lEDHYlKpMx1SU30BkJ7sjw&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=0&prompt=consent for 172.17.0.1:57394, elapsed 3865.0ms @ auth/oauth.go:906(auth.SignInOAuthCallback) 2024/06/26 | 08:11:44 ...rs/web/auth/oauth.go:957:SignInOAuthCallback() [E] UserSignIn: Post "https://oauth2.googleapis.com/token": dial tcp 172.217.160.74:443: i/o timeout
i config proxy in app.ini:
[proxy] PROXY_ENABLED = true PROXY_URL = socks://192.168.25.2:1080 PROXY_HOSTS = *.gmail.com,*.googleapis.com [oauth2_client] REGISTER_EMAIL_CONFIRM = true ENABLE_AUTO_REGISTRATION = false USERNAME = nickname UPDATE_AVATAR = true ACCOUNT_LINKING = login
when i use commandline in docker containner and try to connect https://oauth2.googleapis.com it also timeout:
curl https://oauth2.googleapis.com
but if i use
curl -x socks://192.168.25.2:1080 https://oauth2.googleapis.com
I will receive a response in less than 1 second.
so it proved my proxy config is ok, but when gitea call https://oauth2.googleapis.com/token, It's not using the proxy I configured
1.22.0
No
No response
2.45.1
docker
PostgreSQL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
I use gitea in docker, and set up oauth2 client with google. when i login with google, it shows account confirm page,
![无标题](https://private-user-images.githubusercontent.com/5227189/343015151-2a502354-ab2d-43cb-b991-a6ceaaf26c77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODA1MjIsIm5iZiI6MTcxOTk4MDIyMiwicGF0aCI6Ii81MjI3MTg5LzM0MzAxNTE1MS0yYTUwMjM1NC1hYjJkLTQzY2ItYjk5MS1hNmNlYWFmMjZjNzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMDQxNzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDM2ZjA5OTgwODcxNjI1ZmIzMzA3ZTdkY2I4NzA0MzRmYTg3Mjc0NTdjMDdlMjViM2VmNjU2Njg0NDQyNzcxNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.GytttMgvTl9IfX48c0AbTg2AlCUjRvmJPgsDvOxHKwk)
but after After continue, the page will stay for a few seconds, then redirect to my gitea page and show 500.
error page:
![image](https://private-user-images.githubusercontent.com/5227189/342970811-09b09a64-dbf9-4d2c-bcb2-ac3ef0399068.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODA1MjIsIm5iZiI6MTcxOTk4MDIyMiwicGF0aCI6Ii81MjI3MTg5LzM0Mjk3MDgxMS0wOWIwOWE2NC1kYmY5LTRkMmMtYmNiMi1hYzNlZjAzOTkwNjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMDQxNzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Njk2YzZiYzAxZjFiMDUwY2ZlYTAwNTFkMTZkN2FmZjA1YzAyNjc4NjI1NWVjYjA2MWVkN2M4ZjNmMDUyNTBlMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.aTwgdt1ydNbsNFZYD5PxYIBTZhW0GNz7Vg7Y4gJMDAo)
the gitea log:
i config proxy in app.ini:
when i use commandline in docker containner and try to connect https://oauth2.googleapis.com it also timeout:
but if i use
I will receive a response in less than 1 second.
![image](https://private-user-images.githubusercontent.com/5227189/342981651-ce2a8b52-ed54-4fbf-98f9-675495db87d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5ODA1MjIsIm5iZiI6MTcxOTk4MDIyMiwicGF0aCI6Ii81MjI3MTg5LzM0Mjk4MTY1MS1jZTJhOGI1Mi1lZDU0LTRmYmYtOThmOS02NzU0OTVkYjg3ZDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMDQxNzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzBiZDk1ODc0MjkxOTA2ZGRlYmUyZDk2ZWU0MDlkMmU5ZjMxMjk5Yjk3YjI0ZGE0ODk5YjAwMzc2MmM3MDVlMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TS7EF7FDUI2OjLY43cukHxuFeja1g-b8fcYIuySqW8o)
so it proved my proxy config is ok, but when gitea call https://oauth2.googleapis.com/token, It's not using the proxy I configured
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.45.1
Operating System
No response
How are you running Gitea?
docker
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: