-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
新增自己oauth2 server,一直报错,希望大佬指点一下 #53
Comments
遇到了同样的问题~ |
我的完整报错信息如下:
|
需要提供完整的复现步骤,否则我没办法调试并解决问题。 |
#23 |
---
apiVersion: auth.halo.run/v1alpha1
kind: AuthProvider
metadata:
name: logto
labels:
auth.halo.run/auth-binding: "true"
spec:
displayName: Logto
description: Logto is an Auth0 alternative designed for modern apps and SaaS products. It offers a seamless developer experience and is well-suited for individuals and growing companies.
logo: /plugins/plugin-oauth2/assets/static/logto.svg
website: https://logto.io
authenticationUrl: /oauth2/authorization/logto
bindingUrl: /oauth2/authorization/logto
unbindUrl: /apis/uc.api.auth.halo.run/v1alpha1/user-connections/logto/disconnect
authType: oauth2
settingRef:
name: generic-oauth2-setting
group: genericOauth
configMapRef:
name: oauth2-logto-config 2.在client-registrations.yaml增加 ---
apiVersion: oauth.halo.run/v1alpha1
kind: Oauth2ClientRegistration
metadata:
name: logto
spec:
clientAuthenticationMethod: "client_secret_basic"
authorizationGrantType: "authorization_code"
redirectUri: "{baseUrl}/login/oauth2/code/logto"
scopes:
- "openid"
- "profile"
- "email"
authorizationUri: "****"
tokenUri: "****"
userInfoUri: "****"
userInfoAuthenticationMethod: "header"
userNameAttributeName: "username"
clientName: "Logto" |
Hi @a2008q ,感谢提供详细的复现步骤,我将尝试复现并调试。 另外,新增 AuthProvider 和 Oauth2ClientRegistration 并不需要重新构建项目,可以参考:#23 (comment). |
出现以上问题的原因,可能是大家的认证服务器采用的 OIDC 协议,而不是 OAuth2 协议。当前插件暂时还不支持 OIDC 协议进行登录。不过我已经尝试修改少部分代码即可支持 OIDC 协议。 /assign |
/remove-triage needs-information Closes in favor of #68. /close |
@JohnNiang: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The text was updated successfully, but these errors were encountered: