Question closed without any agreement, so restarting in a new thread
Suggested - Auth0 Angular SDK Quickstarts: Call an API
But code is similar to - Auth0 Angular SDK for Single Page Apps
// The AuthHttpInterceptor configuration
httpInterceptor: {
// Matching on HTTP method
{
uri: '/api/orders',
httpMethod: 'post',
tokenOptions: {
audience: 'http://my-api/',
scope: 'write:orders',
},
},
Why is scope passed? I thought it should be coming from the user session
Also the main problem is , spring end point is not getting claims/scope