1.5.1 Authentication Provider
Various providers are available for registration. These are configured in a list under <authenticationProviders>:
config_viewer.xml
1
<user>
2
<authenticationProviders>
3
<provider type="local" enabled="true" name="Goobi viewer"/>
4
<provider type="openId" enabled="true" name="Google" endpoint="https://accounts.google.com/o/oauth2/auth" clientId="CHANGEME" clientSecret="CHANGEME" image="google.png" />
5
<provider type="userPassword" enabled="false" name="VuFind" endpoint="https://vufind.example.org/Api/User/Auth" image="vufind.png" timeout="7000"/>
6
<provider type="userPassword" enabled="false" name="littera" endpoint="https://littera.example.org/externauth" image="littera.png"/>
7
<provider type="userPassword" label="Aleph" enabled="false" name="x-service" endpoint="https://aleph-x-service.example.org/X?op=bor_auth&amp;library=FOO123" image="aleph.png">
8
<addUserToGroup>my first group</addUserToGroup>
9
<addUserToGroup>my secondgroup</addUserToGroup>
10
</provider>
11
<provider type="userPassword" enabled="false" name="bibliotheca" endpoint="https://example.oclcbibliotheca.org/auth.asp?client=goobiviewer" />
12
<provider type="saml" enabled="false" name="samltest.id" idpMetadataUrl="https://samltest.id/saml/" relyingPartyIdentifier="GoobiViewerExampleTest" publicKeyPath="/opt/digiverso/viewer/config/samlX509cert.cert" privateKeyPath="/opt/digiverso/viewer/config/samlPrivatekey" timeout="60000" />
13
</authenticationProviders>
14
</user>
Copied!
The attributes in <provider> Elements have the following meaning:
Attribute
Description
type
Defines the provider type. The specification is mandatory. Available are local, openId, userPassword and saml.
enabled
Specifies whether the provider is to be displayed on the logon page or hidden. Default value is true
name
Name of the provider. This information is mandatory. With the type="openId" Google is available as name. With the type="userPassword" you can choose between VuFind, littera, x-service and bibliotheca. With type="local" and type="saml" a free name can be chosen.
label
Optional label for the provider. If the attribute does not exist, the name is displayed.
endpoint
Authentication URL of the provider. Mandatory field for the types openId and userPassword. For examples, see the standard configuration file.
clientId
Registered ID of the Goobi viewer with the provider of type openId. The attribute is also mandatory there. A new client must be registered with the provider for each Goobi viewer installation.
clientSecret
Secret key for the registered clientId. The specification is mandatory for a provider of type openId.
image
File name of the displayed provider-specific screen.
timeout
Defines in milliseconds the maximum amount of time to wait for a response from the server before the login fails.
idpMetadataUrl
URL where the metadata of the identity provider can be retrieved. This specification is mandatory for the provider of the type saml.
relyingPartyIdentifier
Name of the Goobi viewer service. This name must match the entityID in the metadata sent to the identity provider. This specification is mandatory for the provider of type saml.
publicKeyPath
Path to the public X509 certificate. This specification is mandatory for the provider of the type saml.
privateKeyPath
Path to the private key for the certificate. This specification is mandatory for the provider of type saml.
Optional subelements <addUserToGroup> can be used to configure names of user groups to which a user should be automatically added as a member when logging in (provided the group already exists and the user is not already a member of it.
Last modified 3mo ago
Copy link