
kc6z4 (kc6z4) asked a question.
Hi ,
I have configured an OIDC IdP in Okta now my idp sends custom attribute "finaldecsion" as Approve/Deny for a user in the ID token along with success status now i want that okta should only allow login is the finaldecsion is approved for the user.
I am not sure how to implement it if anyone could provide me a resolution i would be great full

Hi @kc6z4 (kc6z4) , Thank you for reaching out to the Okta Community!
You could look into implementing IDP Routing rules with conditions set around the specific user attribute, but you would have to take into consideration that the values referenced during evaluation are based on the user's Okta Profile not the values being sent. So if the user's value has not been previously set to "approved" for example, this would not work.
Also, please note that IDP routing rules have the potential of breaking user login if not configured properly, so I strongly recommend testing in a preview environment and making sure you always have at least one SuperAdmin account that is not affected by the rules so you can access the tenant and revert changes when necessary.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.