go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.02k stars 5.4k forks source link

oauth callback raise an error while use gitea with woodpecker #17969

Closed zxcvbnm3057 closed 2 years ago

zxcvbnm3057 commented 2 years ago

Gitea Version

1.15.7

Git Version

No response

Operating System

offical docker image gitea/gitea:latest

How are you running Gitea?

Just request an oauth permission form woodpecker after woodpecker first install. Then there is the bug.

both in docker gitea/gitea:latest woodpeckerci/woodpecker-server:v0.14.3

Log in gitea

2021/12/14 04:34:01 Started GET /login/oauth/access_token for *****
2021-12-13T20:34:01.159542506Z 2021/12/14 04:34:01 Completed GET /login/oauth/access_token 405 Method Not Allowed in 259.322µs

Log in woodpecker

time="2021-12-13T20:34:01Z" level=error msg="cannot authenticate user. oauth2: cannot fetch token: 405 Method Not Allowed\nResponse: "

Database

No response

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

No response

Screenshots

No response

6543 commented 2 years ago

Well gitea work as expected if it get's an GET request as it expect a POST

.

6543 commented 2 years ago

@zxcvbnm3057 can you paste your woodpecker server config?

(replace passwds with xxxxx or so)

6543 commented 2 years ago

closing this issue as it's more a configuration issue at woodpecker -> https://github.com/woodpecker-ci/woodpecker/issues/609#issuecomment-992979051

zxcvbnm3057 commented 2 years ago

Sorry for duplicate issue because in fact I don't know who caused the problem in fact...