C
christian.bryan@capita.co.uk
Guest
Hi All I would like to redirect a user to a password reset page on a expired login event using the PAS and a HybridRealm interface. I can see that there is a GetAttribute method i can implement and when i return "T" for true on the call for ATTR_EXPIRED a 401 unauthorised is duly returned however how can i distinguish this 401 from another 401 i.e. invalid password or locked account? Example: METHOD PUBLIC CHARACTER GetAttribute (piUserid AS INTEGER, pcAttrName AS CHARACTER): CASE pcAttrName: WHEN "ATTR_ROLES":U THEN RETURN "PSCUser":U . WHEN "ATTR_ENABLED":U THEN RETURN "T":U . WHEN "ATTR_LOCKED":U THEN DO: MESSAGE "ATTR_LOCKED". RETURN "F":u. END. WHEN "ATTR_EXPIRED":U THEN DO: MESSAGE "ATTR_EXPIRED". RETURN "T":u. END. END. RETURN "":U . END METHOD .
Continue reading...
Continue reading...