<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00000eGPJq0AOOkta Classic EngineSingle Sign-OnAnswered2026-05-12T09:00:28.000Z2025-04-09T06:14:19.000Z2025-04-30T19:59:47.000Z

kc6z4 (kc6z4) asked a question.

Allow IdP Sign in based on Custom attributes value

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


  • Mihai N. (Okta, Inc.)

    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.

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    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.

    Expand Post
    Selected as Best
This question is closed.
Loading
Allow IdP Sign in based on Custom attributes value