Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Page Properties
hiddentrue
idrLANG

Product Version2022 Spring
Report Note
AssigneeAntje

Resources & Remarks

Modification History

NameDateProduct VersionAction
Antje Oelschlägel17 DEC 20212022 SpringPage created and written.
Agnieszka20 DEC 20212022 SpringrLANG



Excerpt

Replace the default form for the tenant selection web page provided by the AUTHENTICATION service by a custom form.


Section
bordertrue


Column

Table of Contents

Table of Contents
exclude(Table of Contents|Read on|Authentication against the Core API|Access Authorization and Permissions|Test System Installation Guide)


Introduction

Users accessing yuuvis® Momentum via a browser have to select their tenant before their credentials are requested. This tenant selection web page is provided by the AUTHENTICATION Service. In order to customize the design, it is possible to replace the underlying default form files by a set of custom form files.

Required Sources

A directory public has to be available in the root of the AUTHENTICATION service's container when the service is started. In this public directory, there must be at least the files tenant.html and error.html.

In the tenant.html file, the reference on http://www.thymeleaf.org (line 2) and the corresponding form definition are required (lines 11-12) in order to provide the tenant selection functionality.

...

In the error.html file, the reference on http://www.thymeleaf.org (line 2) and the three span definitions are required (lines 8-10) in order to provide error details.

...

The example custom form files used in this article are available for download as public.zip file.
>> Download example 'public.zip'

Possible Procedures

There are different ways to proceed:

...

In this article, only the first procedure via Kubernetes ConfigMaps is described. The replacement of the default form files is explained by means of a simple example.

Configuration via Kubernetes ConfigMaps

By following these steps, you configure a simple custom web page for the tenant selection dialog:

  • Add the following line in the authentication-prod.yml configuration file:

    Code Block
    languageyml
    spring.thymeleaf.prefix: 'file:/public/'


  • Unpack the public.zip file.
  • Create a ConfigMap for the files in the public directory via the command:

    Code Block
    languagebash
    kubectl -n yuuvis create configmap templates --from-file=./public/


  • Adjust the Kubernetes deployment of the AUTHENTICATION service via the command:

    Code Block
    languagebash
    kubectl -n yuuvis edit deploy authentication


  • Extend the volumes section as follows:

    Code Block
    languageyml
    volumes:
    - name: templates
      configMap:
        name: templates


  • Extend the volumeMounts section as follows:

    Code Block
    languageyml
    volumeMounts:
    - name: templates
      mountPath: /public/tenant.html
      subPath: tenant.html
    - name: templates
      mountPath: /public/error.html
      subPath: error.html
    - name: templates
      mountPath: /public/res/tenant.css
      subPath: tenant.css
    - name: templates
      mountPath: /public/res/next-btn.svg
      subPath: next-btn.svg


  • Restart the AUTHENTICATION service.


Info
iconfalse

Read on

Section


Column
width25%

/wiki/spaces/YMY/pages/320051558

Insert excerpt
Test System Installation Guide
Test System Installation Guide
nopaneltrue
 /wiki/spaces/YMY/pages/320051558


Column
width25%

Access Authorization and Permissions

Insert excerpt
Access Authorization and Permissions
Access Authorization and Permissions
nopaneltrue
 Keep reading


Column
width25%

Authentication against the Core API

Insert excerpt
Authentication against the Core API
Authentication against the Core API
nopaneltrue
 Keep reading



...