How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Discuss Technical Queries about OrangeHRM
Post Reply
vivek.khare
Posts: 4
Joined: Tue Jan 07, 2020 1:39 pm

How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Post by vivek.khare » Wed Jan 15, 2020 6:56 am

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
Best,
Vivek

damithk
Posts: 7
Joined: Thu Aug 29, 2019 1:58 pm

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Post by damithk » Thu Jan 23, 2020 12:03 pm

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

vivek.khare
Posts: 4
Joined: Tue Jan 07, 2020 1:39 pm

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Post by vivek.khare » Mon Jan 27, 2020 4:30 am

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
Best,
Vivek

kavitha
Posts: 13
Joined: Thu Mar 15, 2018 8:24 am

Re: How to make GAuth 2.0 work with OrangeHRMS 4.3.4

Post by kavitha » Tue Feb 11, 2020 5:35 am

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

Post Reply