[GH-ISSUE #2597] oidc bug? #2073

Closed
opened 2026-05-05 13:20:01 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ivan0413 on GitHub (Sep 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2597

Bug Description

the frpc.ini
authentication_method=oidc
oidc_client_id = 615551f85***************
oidc_client_secret = b30a094aa73638a74***************
oidc_audience = https://yfce8l-demo..cn/oidc/.well-known/openid-configuration
oidc_token_endpoint_url = https://yfce8l-demo.
.cn/oidc/token

the frps.ini
authentication_method = oidc
oidc_issuer = https://yfce8l-demo..cn/oidc
oidc_audience = https://yfce8l-demo.
.cn/oidc/.well-known/openid-configuration

the error is:
2021/09/30 15:15:35 [W] [service.go:104] login to server failed: couldn't generate OIDC token for login: oauth2: cannot fetch token: 400 Bad Request
Response: {"error_name":"invalid_client","error_description":"client authentication failed. ak and sk is incorrect"}
couldn't generate OIDC token for login: oauth2: cannot fetch token: 400 Bad Request
Response: {"error_name":"invalid_client","error_description":"client authentication failed. ak and sk is incorrect"}

why????? help me please,thx

frpc Version

0.37.0

frps Version

0.37.0

System Architecture

a client is windows/amd64 other client is linux/arm

Configurations

nothing

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ivan0413 on GitHub (Sep 30, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2597 ### Bug Description the frpc.ini authentication_method=oidc oidc_client_id = 615551f85*************** oidc_client_secret = b30a094aa73638a74*************** oidc_audience = https://yfce8l-demo.*****.cn/oidc/.well-known/openid-configuration oidc_token_endpoint_url = https://yfce8l-demo.*****.cn/oidc/token the frps.ini authentication_method = oidc oidc_issuer = https://yfce8l-demo.*****.cn/oidc oidc_audience = https://yfce8l-demo.*****.cn/oidc/.well-known/openid-configuration the error is: 2021/09/30 15:15:35 [W] [service.go:104] login to server failed: couldn't generate OIDC token for login: oauth2: cannot fetch token: 400 Bad Request Response: {"error_name":"invalid_client","error_description":"client authentication failed. ak and sk is incorrect"} couldn't generate OIDC token for login: oauth2: cannot fetch token: 400 Bad Request Response: {"error_name":"invalid_client","error_description":"client authentication failed. ak and sk is incorrect"} why????? help me please,thx ### frpc Version 0.37.0 ### frps Version 0.37.0 ### System Architecture a client is windows/amd64 other client is linux/arm ### Configurations nothing ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:20:01 -06:00
Author
Owner

@ivan0413 commented on GitHub (Sep 30, 2021):

When using authentication_method=token, the sk is no problem

<!-- gh-comment-id:930917777 --> @ivan0413 commented on GitHub (Sep 30, 2021): When using authentication_method=token, the sk is no problem
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2021):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:955613879 --> @github-actions[bot] commented on GitHub (Oct 31, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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: github-starred/frp#2073
No description provided.