Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Configure the cluster to enable the tenant management API to create and modify tenants.

Table of Contents

Introduction

yuuvis® management console is based on the Tenant Management Endpoints. This article describes the configuration steps that are necessary in order to enable the usage of this API.

To proceed with the configuration, open the internal git repository (e.g. by port forwarding the pod).

Authentication Configuration

  • Open the application-oauth2.yml for editing.
  • Create an entry in authentication.oauth2.tenants for the Keycloak master realm:

    -   name: master
        clientId: dummy-client
        clientSecret: 12345678-1234-1234-1234-1234567890ab
        userAuthorizationUri: https://${keycloak.host}/auth/realms/master/protocol/openid-connect/auth
        accessTokenUri: https://${keycloak.host}/auth/realms/master/protocol/openid-connect/token
        userInfoUri: https://${keycloak.host}/auth/realms/master/protocol/openid-connect/userinfo
        endSessionUri: https://${keycloak.host}/auth/realms/master/protocol/openid-connect/logout?redirect_uri=${redir}
        userNameExtractionPattern: $.sub
        scope: openid

Expose Endpoints

  • Open the authentication-prod.yml for editing.
  • Ensure that your management section is configured as follows:

    management:
      endpoints:
        web:
          base-path: /manage
          exposure:
            include:
            - health
            - info
            - refresh
      endpoint:
        refresh:
          enabled: true
        info:
          enabled: true
        health:
          enabled: true
      security:
        enabled: true
  • If not already present: add tenant-management to the list of routing.endpoints .
  • If not already present: add endpoints configuration for the tenant management endpoints to the authorization.accesses list as follows:

      - endpoints: /tenant-management/swagger-ui.html/**,/tenant-management/**/springfox-swagger-ui/**,/tenant-management/**/swagger-resources/**,/tenant-management/**/v2/api-docs/**
      - endpoints: /tenant-management/api/system/**
        access: hasAuthority('YUUVIS_SYSTEM_INTEGRATOR')
      - endpoints: /tenant-management/api/admin/**
        access: hasAuthority('YUUVIS_TENANT_ADMIN')

Read on

Keycloak Settings for yuuvis® management console

Configure Keycloak for the use of yuuvis® management console and the management console API.

/wiki/spaces/YMY/pages/320047362

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Expose Endpoints'.

Configure Tenant Creation Profile

Error rendering macro 'excerpt-include' : No link could be created for 'Configure Tenant Creation Profile'.

  • No labels