Affects Version/s: 13.5.2, 5.5.1, 18.104.22.168, 7.0.0
This is a subset of OPENAM-12242
When trying to end a session/logout using an OIDC id_token, if the related AM session has expired the endSession endpoint returns a error to the user.
For the usecase where the id_token is valid, but the session is already terminated then the improvement will be to treat the call as successful and continue and flow and follow the postlogouturi if registered.
1. Login.using oauth2/openid connect (using authorization code grant flow)
2. Wait for the session to expire.
3. Then attempt to logout.
4. The server returns an error such as
Log or ignore the failure to end the session and continue processing.