简体   繁体   中英

OrangeHRM: Google oauth redirects to login page after successful authorization instead of Dashboard

I am using opensource OrangeHRM and after logging in through admin,

I went to:

1.  Admin -> Configuration -> Social Media Authentication  
2.  Select Google+ from dropdown.
3. Add Client id, secret, redirect url and saved.  

In login page, if logging in through Google option, it provides an option to select gmail account and once I select account and allowing my gmail account to access OrangeHRM, It takes me back to login page instead of dashboard after successful authorization.

Is there a way I can fix it? As per one of documents of OrangeHRM, ie User Guide , it says:

 Google Plus -
  This section allows configuring the Google + providers.   
  This section should be enabled from the back end.    

I am not sure If I need to enable anything from backend and If so, what and where should I enable the same?

The redirect URI (where the OAuth response is returned to) has to be registered in Google APIs console, and the error is indicating that you haven't done that, or haven't done it correctly.

Go to the console for your project and look under API Access. You should see your client ID & secret there, along with a list of redirect URIs. If the URI you want isn't listed, click edit settings and add the URI to the list.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM