本文介绍了redirect_uri的参数值无效:方案丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 14.04服务器上托管了Jenkins. Jenkins的版本为2.46.我正在Jenkins上应用Google身份验证.为此,我正在使用 Google登录版本为1.3的Jenkins插件.我已经通过 Google开发者控制台创建了客户端ID和密钥ID.我使用教程创建的.因此,在创建凭据时,我输入了以下内容:

I have hosted Jenkins on Ubuntu 14.04 server. Jenkins version is 2.46. I am applying Google authentication on Jenkins. For this I am using Google Login Plugin of Jenkins with version 1.3. I have created Client ID and Secret ID through Google Developer Console. I created it using this tutorial. So while creating credentials, I entered following things:

JavaScript授权来源: http://jenkins .******.com

Authorized JavaScript origins: http://jenkins.******.com

授权的重定向URI: http://jenkins .******.com/securityRealm/finishLogin

Authorized redirect URIs: http://jenkins.******.com/securityRealm/finishLogin

此后,我在Jenkins的社会保障设置中输入了客户ID和秘密ID.登录选项成功显示在Jenkins主页上.但是,当我单击登录"选项时,会出现以下错误:

After that I entered Client ID and Secret ID in Social security settings of Jenkins. Log in option appears successfully on Jenkins home page. But when I click on Login option following error appears:

  1. 那是一个错误.

错误:invalid_request

Error: invalid_request

redirect_uri的无效参数值:缺少方案:jenkins.******.com/securityRealm/finishLogin

Invalid parameter value for redirect_uri: Missing scheme: jenkins.******.com/securityRealm/finishLogin

请帮助!

推荐答案

经过大量调试,我发现了问题所在.问题是,在管理Jenkins --->配置系统"中,对于Jenkis URL,我的值是jenkins.******.com.我将其替换为http://jenkisn.******.com.问题得到解决.

After lots of debugging, I found the problem. The problem was, In Manage Jenkins ---> Configure System, for Jenkis URL, I was having value jenkins.******.com. I replaced it with http://jenkisn.******.com. And problem got solved.

这篇关于redirect_uri的参数值无效:方案丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-20 16:51
查看更多