I have an azure AD tenant and several App registrations. Using postman I use one app registrations client id and secret to access other applications like so:
POST /__TENANTID__/oauth2/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: __POSTMAN__GENERATES__THIS__
grant_type=client_credentials&client_id=__POSTMAN_APPID__&resource=__REQUESTING_APPID__&client_secret=__SECRET__
I am granted a token whether or not __POSTMAN_APPID__
includes __REQUESTING_APPID__
or not. How do I limit which apps a service can generate a token for with a client id and client secret?
All my apps have Implicit flow set to true, if that has anything to do with it. I'm totally confused on exactly what that does but this answer doens't indicate its related to my problem.