My client side application is using Azure ad for authentication, but to authorize the user (check if the user is allowed to use my application) I need to go through my REST API. Is it ok, security wise to create an endpoint in my REST API where I can post a JWT and validate it, and then give back an access_token that is used for further calls to the API? I'm the developer of both the client application and the rest api, but only the client application is registered in Azure AD

Does this look ok? Or is there a better way of doing it?
