适用于jenkins的Google OAuth插件 [英] Google OAuth plugin for jenkins

查看:790
本文介绍了适用于jenkins的Google OAuth插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Jenkins 2.86上安装了Google登录插件: https://wiki.jenkins.io/display/JENKINS/Google+Login+Plugin

I have installed the Google Login plugin on Jenkins 2.86: https://wiki.jenkins.io/display/JENKINS/Google+Login+Plugin

并遵循本指南:

Login to the Google Developers Console
Create a new project
Under APIs & Auth -> Credentials, Create a new Client ID
The application type should be "Web Application"
The authorized redirect URLs should contain ${JENKINS_ROOT_URL}/securityRealm/finishLogin
Enter the created Client Id and secret into the fields below.

使用Google控制台中的信息:

using the information from the google console:

在Jenkins Global安全配置中:

In the Jenkins Global security configuration:

但是当我注销并登录时,出现错误消息:

But when I logout and login I get the error:

  1. 那是一个错误.

错误:invalid_request

Error: invalid_request

redirect_uri的参数值无效:未提供原始IP地址 允许: http://1.111.111.111:8080/securityRealm/finishLogin

Invalid parameter value for redirect_uri: Raw IP addresses not allowed: http://1.111.111.111:8080/securityRealm/finishLogin

(上面的1.111.111.111是正确IP的掩码).

(where 1.111.111.111 above is a mask for the correct IP).

我错过了什么?

推荐答案

您需要在
中正确设置詹金斯的URL. http://your-jenkins/configure

You need to set the URL of jenkins correctly in
http://your-jenkins/configure

设置位于:

Jenkins位置> Jenkins URL
将此值设置为: http://your-jenkins.net 而不是IP.

Jenkins Location > Jenkins URL
Set this with value: http://your-jenkins.net instead of IP.

这篇关于适用于jenkins的Google OAuth插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆