Hello @Ourain,
I understand that you get authentication token via acquire_token_interactive
but it is asking for client secret whereas it must not throw an error.
The error occurs due to the configuration issue in Microsoft Entra ID application.
To resolve the error, make sure that the Microsoft Entra ID application is configured as below:
For sample, I used redirect URL as http://localhost
under Mobile and desktop applications:

And make sure to enable "Enable the following mobile and desktop flows:" as YES:

I used the below code to acquire token interactively:
from msal import PublicClientApplication
CLIENT_ID = "ClientID"
AUTHORITY = "https://login.microsoftonline.com/TenantID"
app = PublicClientApplication(
client_id=CLIENT_ID,
authority=AUTHORITY
)
scopes = ["User.Read"]
result = app.acquire_token_interactive(scopes=scopes)
if "access_token" in result:
print("Access token:\n", result["access_token"])
else:
print("Failed to acquire token:")
print(result.get("error"))
print(result.get("error_description"))

Access token generated successfully:

- Make sure you're using PublicClientApplication, not ConfidentialClientApplication
- Verify your app registration allows public client flows
- Use the correct redirect URI (
nativeclient
)
- Don't send
client_secret
or client_assertion
- If still the issue persists, ensure that the client ID used in your application matches the one registered in Azure.
If this answer was helpful, please click "Accept the answer" and mark Yes
, as this can be beneficial to other community members.

If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.