Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_appauth] remove idTokenHint assert #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clintpurser
Copy link

Hi @MaikuB

I am wondering if there is a specific reason for this assert?

Currently we want to only supply our postLogoutRedirectUrl but not the idTokenHint for logging out in our app. We tried using the additionalParameters field to supply only the post_logout_redirect_uri, but that causes fatal exception in android.

Would be nice to remove this assert, unless there is a reason with OpenID why we'd want to enforce it like this.

Let me know!
Thank you!

I am wondering if there is a specific reason for this assert?

Currently we want to only supply our postLogoutRedirectUrl but not the idTokenHint in our app. We tried using the additionalParameters field to supply only the postLogoutRedirectUrl, but that causes fatal exception in android.

Would be nice to remove this assert, unless there is a reason with OpenID why we'd want to enforce it like this.

Let me know!
Thank you!
@MaikuB
Copy link
Owner

MaikuB commented Feb 23, 2025

Hi @clintpurser, it's been a while so I don't remember the exact reasoning. I believe the goal was encouraging developers to providing all details or nothing at all. Typically both are given as giving both is indicates the app is providing details on who should be logged out and where the IdP should go to upon a successful logout. These are assertions though so shouldn't be impacting release builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants