Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google OAuth plugin for jenkins

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

and followed this guide:

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.

using the information from the google console:

enter image description here

In the Jenkins Global security configuration:

enter image description here

But when I logout and login I get the error:

  1. That’s an error.

Error: invalid_request

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

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

What have I missed?

like image 205
u123 Avatar asked Feb 15 '26 00:02

u123


1 Answers

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

Setting is under:

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

like image 171
devilpreet Avatar answered Feb 19 '26 12:02

devilpreet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!