[GH-ISSUE #641] [BUG]OAuth2 keycloak 授权失败 #241

Closed
opened 2026-02-26 20:36:18 +03:00 by kerem · 6 comments
Owner

Originally created by @laopaoer-wallet on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/641

复现步骤

Image

预期行为

Image

部署方式

  • [ X ] cli 部署
  • 用户界面部署

浏览器环境

Chrome

Originally created by @laopaoer-wallet on GitHub (Apr 24, 2025). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/641 ## 复现步骤 <img width="672" alt="Image" src="https://github.com/user-attachments/assets/6d4f0513-4cea-4b54-a607-9c5d123ecec5" /> ## 预期行为 <img width="456" alt="Image" src="https://github.com/user-attachments/assets/a16197d3-a6c4-4215-8820-99712ed66ca1" /> ## 部署方式 - [ X ] cli 部署 - [ ] 用户界面部署 ## 浏览器环境 Chrome
kerem 2026-02-26 20:36:18 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 25, 2025):

感谢反馈,keycloak 的 oauth 有特殊流程么

<!-- gh-comment-id:2830163358 --> @dreamhunter2333 commented on GitHub (Apr 25, 2025): 感谢反馈,keycloak 的 oauth 有特殊流程么
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 25, 2025):

Image

看了下文档是因为grant_type 的问题,目前本项目只支持了authorization_code

我看下如何支持

<!-- gh-comment-id:2830190977 --> @dreamhunter2333 commented on GitHub (Apr 25, 2025): <img width="914" alt="Image" src="https://github.com/user-attachments/assets/c69579ec-fe9f-4f39-ad7b-f2bc8cd9bf79" /> 看了下文档是因为grant_type 的问题,目前本项目只支持了authorization_code 我看下如何支持
Author
Owner

@laopaoer-wallet commented on GitHub (Apr 25, 2025):

curl --location 'https://auth.mrcdev.eu.org/realms/mail/protocol/openid-connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=cf-mail' \
--data-urlencode 'username=test@mrcdevlab.com' \
--data-urlencode 'password=123456' \
--data-urlencode 'grant_type=password'

希望有帮助

<!-- gh-comment-id:2830819549 --> @laopaoer-wallet commented on GitHub (Apr 25, 2025): curl --location 'https://auth.mrcdev.eu.org/realms/mail/protocol/openid-connect/token' \\ --header 'Content-Type: application/x-www-form-urlencoded' \\ --data-urlencode 'client_id=cf-mail' \\ --data-urlencode 'username=test@mrcdevlab.com' \\ --data-urlencode 'password=123456' \\ --data-urlencode 'grant_type=password' 希望有帮助
Author
Owner

@dreamhunter2333 commented on GitHub (Apr 26, 2025):

main 分支已修复,有空可以再试试

<!-- gh-comment-id:2832141878 --> @dreamhunter2333 commented on GitHub (Apr 26, 2025): main 分支已修复,有空可以再试试
Author
Owner

@laopaoer-wallet commented on GitHub (Apr 27, 2025):

main 分支已修复,有空可以再试试

给力!!!感谢

<!-- gh-comment-id:2833171643 --> @laopaoer-wallet commented on GitHub (Apr 27, 2025): > main 分支已修复,有空可以再试试 给力!!!感谢
Author
Owner

@laopaoer-wallet commented on GitHub (Apr 27, 2025):

经过测试,已修复。感谢作者。。

Image

<!-- gh-comment-id:2833180854 --> @laopaoer-wallet commented on GitHub (Apr 27, 2025): 经过测试,已修复。感谢作者。。 ![Image](https://github.com/user-attachments/assets/2996c400-7b2d-4b33-bf8c-491d11867268)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#241
No description provided.