Open cforce opened 1 month ago
I am able to use local debugging using either the frontend server (and configuration): http://localhost:5173/ Or the backend server (and configuration) http://localhost:50505/
Are you getting this error with http://localhost:50505/ ?
yes, the the latter on 50505 started with launch.json "Python: Quart",
Setup looks good for me ..and works on azure
Here are screenshots from my Application configuration, from various pages in the portal. Can you cross-check with these?
This is in the CLient App Registration, right Why did you add Ms Grapgh User.Read? This is missing in the documentation, isn' it? I have set http://localhost:50505/redirect but neither http://localhost:5173 or the backend uri. Both was not mentioned in the docs at all, was it?
When using VisCode Debug Runcfg Pythzon:Qaurt and Runcfg Frontend:Watch and trying to login via the login button i get below error
I am using
AZURE_USE_AUTHENTICATION="true" AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS="true" AZURE_ENABLE_UNAUTHENTICATED_ACCESS="false" AZURE_ENFORCE_ACCESS_CONTROL="true"
Testing without login raises the below
The stack trace is ...
Reason: The function get_auth_claims_if_enabled()->get_token_auth_header() is called an mandatory requires x-ms-token-aad-access-token
When i set below...
..i can run queries but then i am unable to debug authorization context features like ACL switched on by AZURE_ENFORCE_ACCESS_CONTROL. But How to make the login works on local development?
Even if if use the same same PRINCIPAL for the execution of the debugged app on vscode as i do for the cloud successfully i get above error message,
Btw i spotted a bug : Overriding the env vars in then vscode launch.,json ""env": .." section does not work because of load_azd_env.py always gives the dot env presence. Therefore i changed load_dotenv(env_file_path, override=True) to load_dotenv(env_file_path, override=False)