Carl Zeiss GOM Metrology Posted February 10, 2021 Posted February 10, 2021 Dear Invision Community, Due to our external identity management, we are using an "Other OAuth 2.0" Method as an identity provider. So far everything is fine. Now we would like to map custom parameters from our identity management to custom fields in Invision Community. For example: Name of field: "Country" Input: "Germany" or "United Kingdom" This filed should be updated every time a user sign in. Is it possible to get this implement? Is there a documented way or is it a customization? Thank you!
bfarber Posted February 10, 2021 Posted February 10, 2021 You will need a custom plugin to accomplish this.
Carl Zeiss GOM Metrology Posted February 10, 2021 Author Posted February 10, 2021 Thank you @bfarber Do you know a (ready to use) plugin we could use here?
bfarber Posted February 11, 2021 Posted February 11, 2021 No, however we've written these in-house for managed clients so I know it's entirely possible. As a general rule, you'll be creating a hook on \IPS\Login\Handler\OAuth2\Custom::_processAccessToken(). Call the parent (which returns the member object you're working with), check the user data and adjust the member's custom field values, then return the member object you obtained from calling the parent.
Recommended Posts