We need to use Azure AD for authn and authz for a mobile app to post data into spring boot backend application. Generated access token using client credentials for testing and the Spring boot application is configured with jwk url to validate token and it works fine. We used spring starter oidc resource server dependency for this.
Next we need to configure role to the client and control access to the spring boot resource. We have created app role but it's not printed on the spring boot backend when we printed the granted authority on spring boot backend code. Anyone please share what is the correct way to configure Azure AD for this scenario and if anything additional needed to do on the spring boot?