Display language of IDP

Scott Alexander scott.alexander at humak.fi
Thu May 16 10:28:26 UTC 2024


Hi,

The IDP maintainers answer me with this:

Short description: language on landing page


We use SAML 2.0 towards the service providers. In SAML there is a certain agreed way how the language parameter is transmitted.
Browser language is not included in the specs and is not supported as a means to indicate the desired language on the discovery page.
Please add the parameter in your saml autentication request to get it to work. You should have the flags on your own page and initiate the authentication request including one of the possible language parameters/codes (en, fi, sv) that are supported by Suomi.fi.

I don't understand how to implement this on my Shibboleth SP. How do I add the parameters?
In httpd ssl.conf I have added

<Directory /systems/arete/>
            AuthType shibboleth
            ShibRequestSetting requireSession 1

            SetHandler perl-script
            PerlResponseHandler ModPerl::Registry
            PerlOptions +ParseHeaders
            Options +ExecCGI +FollowSymLinks +Indexes +MultiViews

</Directory>

Then on index.html

a link to a protected page under /systems/arete/

Installed Packages
Name         : shibboleth
Version      : 3.4.1
Release      : 1
Architecture : x86_64
Size         : 4.8 M
Source       : shibboleth-3.4.1-1.src.rpm
Repository   : @System
From repo    : shibboleth
Summary      : Open source system for attribute-based Web SSO



Terveisin/Regards

Scott Alexander
Asiantuntija, järjestelmät Systems Specialist

Humak
Humanistinen ammattikorkeakoulu
University of Applied Sciences
www.humak.fi<http://www.humak.fi/>

Tel. +358 (0)50 411 9556

scott.alexander at humak.fi<mailto:scott.alexander at humak.fi>

________________________________
From: Simon Lundström <simlu at su.se>
Sent: 16 May 2024 11:03
To: Shib Users <users at shibboleth.net>
Cc: Scott Alexander <scott.alexander at humak.fi>
Subject: Re: Display language of IDP

Hyvää huomenta Scott!

Not the answer you want but that’s the job of the IDP.
The IDP should respect the users browser Accept-Language header. The IDP could also have buttons for the users to change the language.

BR
- Simon

On 16 May 2024, at 09:52, Scott Alexander via users <users at shibboleth.net> wrote:

Hi,

How do I control the interface language of an IDP by what I send in the authrequest and how to make changes in the shibboleth2.xml file in the SP.

I only have access to the SP.

In the authrequest message there must be


<saml2p:AuthnRequest
   …
   <saml2p:Extensions>
       <vetuma xmlns="urn:vetuma:SAML:2.0:extensions">
          <LG>sv</LG>
       </vetuma>
    </saml2p:Extensions>

sv for swedish, fi for finnish, en for english

Only one language can be requested.

Does it also mean I need a separate server SP for each language I want to provide?

Terveisin/Regards

Scott Alexander
Asiantuntija, järjestelmät Systems Specialist

Humak
Humanistinen ammattikorkeakoulu
University of Applied Sciences
www.humak.fi<http://www.humak.fi/>

Tel. +358 (0)50 411 9556

scott.alexander at humak.fi<mailto:scott.alexander at humak.fi>
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net<mailto:users-unsubscribe at shibboleth.net>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240516/da11c5e7/attachment.htm>


More information about the users mailing list