Page 1 of 1

How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Posted: Wed Jan 15, 2020 6:56 am
by vivek.khare
Hi,

I have deployed OrangeHRM 4.3.4 on CentOS and trying to integrate Google Auth 2.0 with it but failing.
I can see OpenID & Google+ under Admin-->Configure Social Media Authentication while Google+ is deprecated 1 year back.
I still entered possible details like Redirect Url, Client ID, Client Secret & Developer Key (Though Google Auth does not have Developer key option for GAuth 2.0, it was in Google+)

Now when I see the login screen and select Google Authentication, it keeps redirecting me to login page only.
I need help to authenticate users through Google Auth 2.0, please help

Best,
Vivek

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Posted: Thu Jan 23, 2020 12:03 pm
by damithk
Hi Vivek,

I am not sure what are you referring to 'GAuth 2'. Couldn't find any resources on that.
Anyway OrangeHRM product has done some changes related to G+ Authentication in version 4.3.1
As you are already have version 4.3.4, those changes are included in your instance.

Regards,
Damith

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Posted: Mon Jan 27, 2020 4:30 am
by vivek.khare
Hi Damith,

G+ Authentication is deprecated by Google last year itself and now only Google Authentication (also known as GAuth 2.0) is available while OrangeHRM option (Admin-->Configure Social Media Authentication) is showing only G+ authentication problem.
Can you help me integrate OrangeHRM with Google Authentication.

Best,
Vivek

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Posted: Tue Feb 11, 2020 5:35 am
by kavitha
Hi Vivek

Choose Google+ to configure with Google authentication. This will be renamed in our next release.

Please add the details for following parameters.

Name *
Redirect Url *
Client Id *
Client Secret *
Developer Key *

Please refer to the following guidelines..
You have to go to Google Developers Console (https://console.developers.google.com/projectselector/apis/library?supportedpurview=project)
Create a new Project
Click the Create button and wait for the project to be created.
Select your newly created Project from the Projects drop-down at the top.
Go to “Credentials” In the left sidebar under "APIs & Services"
Create OAuth Client ID Credentials
Configure Consent Screen
Application Name - Name of the Instance Domain Name - Eg:- orangehrm.com Support Email - Eg: test@orangehrm.com
Note: Don't edit Application Homepage Link. We need to add Authorized domains and Application Name only and save
In the Application type section of the dialog, select Web application
Give the Authorized redirect URI field value as ; /openidauth/openIdCredentials (example: https://test.orangehrm.com/symfony/web/index.php/openidauth/openIdCredentials)
Click the Create button.
A pop up “OAuth client “ will appear.
Copy the Client id
Copy the Client Secret
Click OK
Select “Create API Key”
Copy the "API Key" from the “API key created “ pop up

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Posted: Thu Jun 03, 2021 3:46 pm
by rhernandez
Hi Kavitha,

Currently I have the same problem and I already have Social Media Authentication configured, every time I try to start with Google it redirects me to the Orange login. In the Google console, it has already been configured to enter the buzz section of the application.

What could I be doing wrong? :(

I remain attentive and thank you very much.