Hi@Jan
Yes, it's possible to get JWT Access tokens with AuthCodeFlow. Follow below steps:
1.Register an Enterprise Application with Redirect URI.
Add User. Read delegated permissions which Allows users to sign-in to the app and allows the app to read the profile of signed-in users.
Based on your requirement you can add scopes.
2.Open Browser and Request an authorization code with below URL
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?client_id={Application-Id}
&response_type=code
&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient(URL encoded)
&response_mode=query
&scope=user.read
users have to enter their credentials and complete the authentication. Once the user authenticates and grants consent, the Microsoft identity platform returns a response to your app at the indicated redirect Uri.
3.Request an JWT access token using the Postman
Set method as POST.
Content-Type : application/x-www-form-urlencoded
URL:https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
client_id= Application_id
scope=user.read
code= {The code acquired in previous step}
redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient
grant_type=authorization_code
Use Jwt.ms to decode your access token.
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.