Earlybyte / aad_oauth

Flutter Azure Active Directory OAuth Package
https://pub.dev/packages/aad_oauth
MIT License
92 stars 179 forks source link

Web authntication not working - token not retrieved ? #290

Open alaindeseine opened 5 months ago

alaindeseine commented 5 months ago

Hi, Got same problem as others. Plugin example is not working when executing a web app (not tried with iOs/Android/windows/macos) When click on "Login (Web redirect)" authentication process went well and return well on redirect page.

But when clicking a second time on the same button to verify successful login, got this error message:

AadOauthFailure(ErrorType.accessDeniedOrAuthenticationCanceled, Access denied or authentication canceled. Error: ServerError: invalid_client: 7000218 - [2024-01-23 12:54:56Z]: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: f3dd8ba7-5545-4ed9-9a56-3250fedfa900 Correlation ID: 1a3c70a3-76d2-48d2-b0b4-7b5e3b43b517 Timestamp: 2024-01-23 12:54:56Z - Correlation ID: 1a3c70a3-5687-65fe-b0b4-7b5e3b43b517 - Trace ID: f3dd8ba7-cd54-4ed9-4732-3250fedfa900)

Can you provide feedback on this problem.

Thanks for advance.

Regards,

Alain Deseine.

tratum commented 1 month ago

Getting the same problem