Replies: 2 comments 1 reply
-
Hi Olaf, Thanks for your question! Just to better understand your case — may I ask which OAuth provider you're using (e.g., Google, Azure AD, Facebook, etc.)? As far as I know, Google, Yahoo, Facebook, and similar public identity providers usually do not include group information in their OAuth responses. If you're using Google, for example, the OAuth token will contain basic user info (like name, email, profile picture), but not roles or groups. Let me know which provider you're working with — then I can guide you on how (or if) syncing groups is possible. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your fast response. Now to your question for more details: ;-)
I would put the info into a custom field of $usersColumnsName inside the custom oauth-provider so it's accessible later on. In the meantime i allready managed to use a copy of your original OAuthController.php by putting it into app/Controllers/OAuthController.php and adjusting the route for the call-back-URI. Would it be feasible to declare them as protected in your code, so they could be inherited instead of declared newly in the file? Regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello datamweb,
i'm starting to use your library and codeigniter as a whole, so maybe i just don't see how to reach my goal ;-)
Could you please give some advice...?
I would like to add some steps to the callback-method in case the user successfully logged in, for example sync with groups provided in the oauth-answer.
This would be at line 111 of your OAuthController.php
How can one do this?
I don't want to change the code in vendor, since this would be overridden by future updates...
Regards
Olaf
Beta Was this translation helpful? Give feedback.
All reactions