Repository navigation
[fix/kw-bridge-interop] Fix KW bridge/IDP interoperability issues - #174
Conversation
|
After a first look:
fixed, after typing the URL of an already existing account, user is prompted to authentication ✅
Infinite loop is fixed. Error message about incorrect scope is gone by removing as stated above:
Before, we had a loop of errors (fixed), now, we have a singular error without a loop (you are now checking, not only the
so, tokens not refreshed because an Finally, the |
I'd say this issue has/had two sides to it:
|
- add parameter `force_login=1` to auth requests to require the KW IDP to prompt for login, even if valid cookies for an account already exist - check token response for existance of `access_token`, to account for invalid IDP responses that do not contain an `error` field, but not an `access_token` either - OCAuthenticationMethodOpenIDConnect: - remove ` offline_access` from `scope` for refresh requests to KW IDPs, since these take issue with that being included in `scope`, responding with a non-standard response
a6808fe to
33f652e
Compare
Description
Addresses the following issues:
Issue 1: only one user account can be added to the app
prompt=select_accountis ignored by the KW IDP and no login UI is presentedforce_login=1to auth requests to require the KW IDP to prompt for login, even if valid cookies for an account already existIssue 2: token refreshs fail & end in an infinite loop
{"error": "invalid_request"}errorfield falsely makes the SDK assume that the response is a successful refresh, resuming operation, running intoUnauthorizedresponses immediately after and retrying to perform a token refresh, … in an infinite loop.scopeparameter of the refresh request containingoffline_access. Removing it makes it return a valid OAuth2/OIDC response againerrorfield in the response, now also check for the existence ofaccess_token, returning an error if it is not included either.Types of changes