As an update from further investigation:

The 'returnto' part of URL
https://wiki.unitas.org/index.php?title=Spezial:Anmelden&returnto=Corporate+Design&returntoquery=
seems to be replaced by the page name of the main page during
SimpleSAMLAuth redirect, as the SSO URL looks like
https://sso.unitas.org/module.php/core/loginuserpass.php?AuthState=_b1b96843d964038ab5bb10f066a7e0d4076f73b398%3Ahttps%3A%2F%2Fsso.unitas.org%2Fmodule.php%2Fcore%2Fas_login.php%3FAuthId%3Dsewobesqlauth%26ReturnTo%3D%252F%252Fwiki.unitas.org%252FHauptseite

That said there seems no need to rewrite the $1 variable directly but to
find the code in SimpleSAMLAuth class builds the redirect URL.

Some hints are appreciated for the SimpleSAMLphp code but I will take a
deeper look into SimpleSAMLphp and PluggableAuth as mentioned by Mark
Hershberger, too.

Have a nice weekend.

Ingo

Ingo Gabriel schrieb:
> Hi,
>
> the URL are anonymized (it's a habit in my working environment, sorry).
>
> See real URLs
>
>   * 
> https://wiki.unitas.org/index.php?title=Spezial:Anmelden&returnto=Corporate+Design&returntoquery=
>   * 
> https://sso.unitas.org/module.php/core/as_login.php?AuthId=sewobesqlauth&ReturnTo=https%3A%2F%2Fwiki.unitas.org%2FCorporate_Design
>
> on https://wiki.unitas.org/Corporate_Design (which redirects to the same
> page as https://wiki.unitas.org if not logged in)
>
> Thanks.
> Ingo
>
> Amanda Quad schrieb:
>> Hi,
>> I could be missing something here, but both of the URL's (our.wiki.de and 
>> sso.wiki.de) both don't go anywhere. Attempting to open either of them 
>> throws a "server not found" error. If the wiki is private, the URL will 
>> still load, but attempting to read any page except (usually) the Main Page 
>> will throw a "you do not have permission to read this page" message. Are you 
>> sure you spelled your address(es) correctly?
>> --Amanda
>>
>>
>> On Saturday, September 9, 2017, 2:28 PM, Ingo Gabriel <[email protected]> 
>> wrote:
>>
>> Hello,
>>
>> we are using MediaWiki as a closed wiki for our community.
>>
>> For authentication purpose we use SimpleSAMLAuth against our CRM
>> database. Applied skin is 'Vector'. All works fine so far.
>>
>> We like to improve usability for accessing direct wiki links of
>> protected pages like https://our.wiki.de/InternalPage
>>
>> On the landing page we configured MediaWiki:Loginreqpagetext using the
>> parameter $1 with some explanatory text to link to our "sso" login form.
>>
>> The link url of $1 looks like
>> https://our.wiki.de/index.php?title=Spezial:Anmelden&returnto=InternalPage&returntoquery=
>> (Spezail:Anmelden translates to Special:Login?)
>>
>> The login link in the top right corner of the landing page looks like
>> https://sso.wiki.de/module.php/core/as_login.php?AuthId=specialsqlauth&ReturnTo=https%3A%2F%2Four.wiki.de%2FInternalPage
>>
>> After login on the sso site the first one leeds to the homepage of the
>> protected wiki instead to the protected page 'InternalPage'.
>> The second one leeds to the protected page 'InternalPage' after
>> successful login.
>>
>> I assume that the link in top right corner is covered by SimpleSAMLAuths
>> SimpleSamlAuth.class.php method 'hookPersonalUrls'.
>>
>> Question: Is it possible to change the link generation $1 in
>> MediaWiki:Loginreqpagetext the same way like in top right corner and if
>> so how?. How can it be accessed? Any hints or code snippets appreciated.
>>
>> Thanks in advance.
>>
>> Ingo
>>
>

--
Ingo Gabriel
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to