<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
0D51Y00009BKUxBSAXOkta Classic EngineAdministrationAnswered2024-03-25T08:51:36.000Z2020-08-12T19:56:40.000Z2020-08-13T14:46:58.000Z

9kfgf (9kfgf) asked a question.

Okta custom claims not working for angular Single-page App

for our test environment we are trying to use a custom sub field to mock the response from our production okta enviroment. the custom claim fields work for other applications but for some reason when use an application set up as single-page app the claims are all set back to default and not using the updated claims.

the sub field is configured as follows

Image is not available

The preview token screen shows this.

Image is not available

But then the token we get back from the application is as follows

Image is not available


  • BhaskarM.18336 (Customer)

    Can you check Authz server for rest of the apps and formula for SUB

    • i see firstname in one one screenshot
    • i see username in another screenshot
  • 9kfgf (9kfgf)

    hi sorry we were able to figure it our. turns out on the application they were not specifying /oauth/default in the issuer so it was not returning the claims. once adding .oauth/default to issuer application started working as expected

This question is closed.
Loading
Okta custom claims not working for angular Single-page App