Skip to content

Add autoGenerateState flag to EndSessionRequest to control whether to auto-generate state parameter#647

Open
pcba-dev wants to merge 1 commit intoMaikuB:masterfrom
SniffersDev:allow-explicitly-null-state-in-endsessionrequest
Open

Add autoGenerateState flag to EndSessionRequest to control whether to auto-generate state parameter#647
pcba-dev wants to merge 1 commit intoMaikuB:masterfrom
SniffersDev:allow-explicitly-null-state-in-endsessionrequest

Conversation

@pcba-dev
Copy link

Problem

Some Identity Providers reject the end-session request because AppAuth (Android, iOS, macOS) automatically generates a random state value by default. When those IdPs do not echo the state back, response validation fails and the logout flow breaks.

`state` `autoGenerateState` Behaviour
null true (default) AppAuth auto-generates stateunchanged
"value" true Explicit non-empty "value" used as stateunchanged
"value" false Explicit non-empty "value" used as stateunchanged
null false State suppressed — no state sent to IdP → state suppressed

Fixes #646

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.

Allow explicitly null state in EndSessionRequest

1 participant