Engineering / ENG-1660
Okta: home depot taken from the first of two depot codes
Description
Vossberg (SUP-1120): people who work at two depots get their home depot changed at sign-in. Okta sends both codes in vossbergDepot and doesn't always send them in the same order; identity-service:src/Saml/AssignRolesFromClaims.php takes the first value as the home depot. Access isn't affected, only which depot shows as home (and so where their requests go).
Fix
Keep the current home depot when it's among the values; add the others as depots the person works at.
Linked issues
- relates to SUP-1120 Vossberg: home depot changes at sign-in for people with two depot codes in Okta Done
- relates to ENG-1512 Okta: when the depot attribute is empty, use the person's home depot and log it Done
Agree. Small. Next sprint.