Problem/Motivation

When a language path prefix in domain is used, the "Redirect-URL" under /admin/config/people/doccheckbasic is always generated with the language prefix, e.g. https://domain.tld/nl/_dc_callback. It is taken the first activated language. But when more than one language should use the doccheck login, you will then need more docchecks login clients and possibilities to set many Login-Client-ID's.

Steps to reproduce

  • Path prefix is used here /admin/config/regional/language/detection/url
  • URL is used here /admin/config/regional/language/detection
  • First language is disabled here /admin/config/regional/language

Proposed resolution

The best way is to not have the language path prefix in "Redirect url" and also not on the callback page himself. Like in the previous verison 8.x-1.10.

Comments

kspanka created an issue.

sleitner’s picture

I think this is only a cosmetic problem, since the language prefix of the "Redirect-URL" does not interfere with the language of the URL where the user is finally redirected to (which was stored in the session before clicking the Doccheck button).

https://domain.tld/_dc_callback should work as "Redirect-URL" as well.

kspanka’s picture

Thanks for your answer and sorry for my late reply.
I already tried to remove the prefix from the in doccheck saved Redirect-URL like "https://domain.tld/_dc_callback", but the Doccheck button sends the prefix inside the uri get param redirect_uri like "https://domain.tld/nl/_dc_callback". So when trying to login, doccheck raises the message that the redirect uri isn't valid and doesn't redirect to this uri.