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

Closed
opened 2025-11-02 07:59:18 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @zxcvbnm3057 on GitHub (Dec 13, 2021).

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

Originally created by @zxcvbnm3057 on GitHub (Dec 13, 2021). ### 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_
Author
Owner

@6543 commented on GitHub (Dec 13, 2021):

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

.

@6543 commented on GitHub (Dec 13, 2021): Well gitea work as expected if it get's an `GET` request as it expect a `POST` ![.](https://user-images.githubusercontent.com/24977596/145899416-117eef03-6797-443e-b297-c794a15f94bd.png)
Author
Owner

@6543 commented on GitHub (Dec 13, 2021):

@zxcvbnm3057 can you paste your woodpecker server config?

(replace passwds with xxxxx or so)

@6543 commented on GitHub (Dec 13, 2021): @zxcvbnm3057 can you paste your woodpecker server config? (replace passwds with xxxxx or so)
Author
Owner

@6543 commented on GitHub (Dec 13, 2021):

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

@6543 commented on GitHub (Dec 13, 2021): closing this issue as it's more a configuration issue at woodpecker -> https://github.com/woodpecker-ci/woodpecker/issues/609#issuecomment-992979051
Author
Owner

@zxcvbnm3057 commented on GitHub (Dec 13, 2021):

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

@zxcvbnm3057 commented on GitHub (Dec 13, 2021): Sorry for duplicate issue because in fact I don't know who caused the problem in fact...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8243