Jump to content

Individual Parameter for OAuth Method


Recommended Posts

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!
 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...