{"id":5677,"date":"2019-07-24T00:20:01","date_gmt":"2019-07-24T00:20:01","guid":{"rendered":"https:\/\/blogs.aaddevsup.xyz\/?p=5677"},"modified":"2019-07-24T19:11:46","modified_gmt":"2019-07-24T19:11:46","slug":"understanding-the-difference-between-application-and-delegated-permissions-from-oauth2-authentication-flows-perspective","status":"publish","type":"post","link":"https:\/\/blogs.aaddevsup.xyz\/2019\/07\/understanding-the-difference-between-application-and-delegated-permissions-from-oauth2-authentication-flows-perspective\/","title":{"rendered":"Understanding the difference between application and delegated permissions from OAuth2 Authentication Flows perspective"},"content":{"rendered":"
It’s well documented in the Permissions and consent docs<\/a> and the Developer Glossary<\/a> page that there are 2 types of permissions for an access token: delegated permission and application permission. In simpler terms, delegated permission is the permission granted to a signed in user while application permission is the permission granted to an application. The main difference between the two is that the former requires a user to sign in while in the latter, there is no user and the application authenticates to Azure AD using its own application identity (client id and secret\/assertion)<\/p>\n Regardless of permission type, these API permission will have to be configured in In Azure AD’s App Registration portal under API permissions blade:<\/p>\n <\/p>\n Note:<\/strong><\/span> When configuring Application Permission, admin consent<\/a> will also need to be granted for the permission to work.<\/p>\n Azure Active Directory supports different OAuth2 authentication flows. The kind of authentication flow an application uses will result in a particular types of permission in an access token.<\/p>\n Application permission token can only be obtained from the following flow: Delegated permission token can only be obtained from the following flow:Authentication Flow:<\/h1>\n
\n<\/strong><\/span><\/p>\n\n
\n<\/strong><\/span><\/p>\n\n
I have an access token. How can I tell if this token is delegated permission or application permission?<\/h1>\n