Messtone Devices Enables TFORCE Token Endpoint from Application Integration example:OAuth Client DIALOG as the URL request. //line breaks for legibility only POST/ca4f5969-c10f-40d4-8127-e74b691f95de/oauth2/v2.0/token HTTP1.1 Host: login.microsoftonline.com Content-Type:application/x-www-form-urlencoded client_id=3c29446e-153e-4b92-8f06-c453f117b645&client_secret=3e04~5e12339444d1852d73bb33e9.3cf2&grant_type=client_credentials&scope=https://tffproduction.onmicrosoft.com/f06cb173-a8e6-44ad–89a1-06c1070a1f62/.default Response Content-type:application/json {“token_type”:”Bearer”,”expires_in”:3599,”ext_expires_in”:3599,”access_token”:”eyJOeXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9… Authorization header: Bearer eyJOeXAiOiJKV1QiLCJhbGci0iJSUzI1NiIsImtpZcI6Ii1LSTNROW50UjdiUm9meG1lWm9YcWJIWkdldyJ9 … Request Permissions from a directory admin example:HTTP //Line breaks are for legibility only. GET https://login.microsoft.com/{tenant}/adimnconsent?client_id=535fb089-9ff3-47b6-9bfb-4f1264799865&state=12345&redirect_uri=http://localhostmesstonecoms.com/myapp/permissions https://login.microsoftonline.com/common/adminconsent?client_id=535fb089-9ff3-47b6-9bfb-4f1264799865&state=12345&redirect_uri=http://localhostmesstonecoms.com/myapp/permissions Success response. GET http://localhostmesstonecoms.com/myapp/permissions?tenant=a8990e1f-ff32-408a-9f8e-78d3b9139b95&state=state=12345&admin_consent=True response error HTTP GET http://localhostmesstonecoms.comyapp/permissions ? error=permission_denied&error_description=The + admin+canceled+the+request

Leave a comment