Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ClientUser::SetSSOHandler()

Return an instance of the ClientSSO subclass.

## Notes

For the P4API to invoke the subclassed ClientSSO `ClientSSO::Authorize( StrDict &vars, int maxLength, StrBuf &result )` method, `ClientUser::GetSSOHandler()` must return an instance of the ClientSSO subclass. This may be done in either of two ways:

- By setting an instance of ClientSSO on ClientUser with `ClientUser::SetSSOHandler()`, which causes the ClientSSO to be deleted when ClientUser is deleted.

- By overloading `ClientUser::ClientUser::GetSSOHandler()` in a custom ClientUser subclass. If you chose to do this, the ClientSSO should have a lifetime that matches the ClientUser because the P4API will not attempt to delete the ClientSSO instance.

Your search for returned results