gitlab 登录OAuth支持飞书登录
### 商机
URL:https://jihulab.com/jh-presales/east/-/issues/649
### 问题
- 客户现在统一登录想通过飞书登录,因为看到极狐GitLab OAuth适配已经支持钉钉登录。
- 目前对接下来还是有问题,错误详情见:


- 客户配置文件详情:
```
gitlab_rails['omniauth_providers'] = [
{
name: "oauth2_generic",
label: "INF",
app_id: "xxxxxxxxxxxx",
app_secret: "xxxxxxxxxx",
args: {
client_options: {
site: "https://passport.feishu.cn",
user_info_url: "/suite/passport/oauth/userinfo",
authorize_url: "/suite/passport/oauth/authorize",
token_url: "/suite/passport/oauth/token"
},
user_response_structure: {
root_path: [],
id_path: ["sub"],
attributes: {
email: "email",
name: "name"
}
},
authorize_params: {
scope: "openid profile email"
},
strategy_class: "OmniAuth::Strategies::OAuth2Generic"
}
}
]
```
- 参考链接:https://docs.gitlab.com/ee/integration/oauth2_generic.html?tab=Linux+package+%28Omnibus%29
epic