Gitlab调用CAS新用户登陆报422错误无法获取邮箱问题
source link: https://chegva.com/3715.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Gitlab调用CAS新用户登陆报422错误无法获取邮箱问题
gitlab从8.x升级至11.14后,新用户登录提示422报错,确认为集团CAS做过调整,和通用CAS有区别,需修改cas认证
解决办法:
sed -i '/^ class AuthHash$/i\ require "uri"' /home/gitlab/gitlab/lib/gitlab/auth/o_auth/auth_hash.rb; \ sed -i 's/username_and_email\[:username\]\.to_s/URI.decode(username_and_email[:username].to_s)/' /home/gitlab/gitlab/lib/gitlab/auth/o_auth/auth_hash.rb; \ sed -i 's/username_and_email\[:email\]\.to_s/URI.decode(username_and_email[:email].to_s)/' /home/gitlab/gitlab/lib/gitlab/auth/o_auth/auth_hash.rb; \ sed -i 's/get_info(:name) || "#{get_info(:first_name)} #{get_info(:last_name)}"/URI.decode(get_info(:name) || "#{get_info(:first_name)} #{get_info(:last_name)}")/' /home/gitlab/gitlab/lib/gitlab/auth/o_auth/auth_hash.rb;
您可能还感兴趣的文章!
发表评论 取消回复
电子邮件地址不会被公开。 必填项已用*标注
评论
姓名 *
电子邮件 *
站点
Save my name, email, and website in this browser for the next time I comment.
Recommend
-
57
iOS开发过程中难免会遇到卡顿等性能问题或者死锁之类的问题,此时如果有调用堆栈将对解决问题很有帮助。那么在应用中如何来实时获取函数的调用堆栈呢?本文参考了网上的一些博文,讲述了使用mach thread的方式来获取调用栈的步骤,其中会...
-
53
新浪科技讯1月23日早间消息,抖音发布声明称接到大量用户反馈称,新用户无法正常以微信授权的方式登录、使用抖音。并判断是由于微信开放平台提供的登录服务出现问题导致的结果。“事先没有接到任何来自微信方面的通知,目前,尚不清楚这是微信登录服务的技
-
88
作者 | 凉介,iOS开发者,喜爱Swift,最近在学习汇编和C,没头绪没目标 ARM几种通用寄存器 ARM有15种通用寄存器,但是其实...
-
3
微信支付调用api获取沙箱验签秘钥(key) Wiken 2019-03-23 (Updated: 2020-06-14)
-
5
Android 10,11 调用系统相机错误:Failed to find configured root that contains data. 2021-08-19 做H5界面拍照功能遇到的错误:java.lang.IllegalArgumentException: Failed to find configured root that contains your_fi...
-
5
记一次golang经典错误--for循环中的go协程调用 发表于...
-
2
Firefox 下flashgot调用迅雷出现AddRef错误 Apr 26, 2008 实在不知道该怎么形容这个错误了,上图: 虽然每次都可以手动改存储目录跟名称,但毕竟不是很方便,恼人的bug。解决办法:打开 about:c...
-
2
d:/go/bin/go.exe build [C:/Users/Administrator/src/project] github.com/mattn/go-gtk/glib In file included from glib.go:5, from _cgo_export.c:4: d:\go\src\github.com\mattn\go-gtk\gl...
-
4
苹果为新用户送6个月iCloud+!现有付费用户无法参加|icloud|ipad|ios|新iphone_网易数码...
-
7
排错:调用 parseLog 报 data out-of-bounds 错误 胡键 Posted at — Mar 16, 2023 阅读 9 调用 parseLog 解析日志,结果得到: UnhandledPromiseRejectionWarning: Error: data out-of-bounds (length=...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK