ASP.Net MVC, Okta and Entity Framework

Would like to integrate Okta into existing apps. Instead of using User.Identity.Claims from Okta, I would like to use existing claims from Entity Framework which we have in the database.

Do you have examples?

Thanks in advance,
Danny

Hi @dannydh0

You can use Token Inline Hook functionality to bring claims from your side inside the JWTs. If you don’t have the feature enabled, please send an email to support@okta.com and request for the features CALLBACKS and API_ACCESS_MANAGEMENT_EXTENSIBILITY to be enabled on your Okta tenant.

Here is an example to add a claim with a specific value inside ID tokens

{
    "commands": [
        {
            "type": "com.okta.identity.patch",
            "value": [
                {
                    "op": "add",
                    "path": "/claims/claim_name_here",
                    "value": "value of the claim here"
                }
            ]
        }
    ]
}
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.