I am planning to access Dynamics CRM entities in my flutter application, After getting client id and tenant from AZURE ACTIVE DIRECTORY, Now I need scope to access Dynamics CRM entities.
From PowerApp at the Developer resources I get Web API endpoint:

This is my config:

When I am trying to get token :
void login() async {
try {
await oauth.login();
String? accessToken = await oauth.getAccessToken();
print('------------> $accessToken');
} on Exception catch (e) {
print('------------> $e');
}
}
I got this error:
I/flutter ( 7460): ------------> Exception: Access denied or authentication canceled.
When I used `scope: "openid profile offline_access",` I received token. What is a problem ?
Even When I past `Web API endpoint` in browser I got :
This page isn’t workingIf the problem continues, contact the site owner.
HTTP ERROR 401