Device-Authentifizierung verwenden - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of the Industrial Edge Platform - IEM - Hub - Industrial - Device - IED - Edge - IEH

Industrial Edge Platform Operation - APIs & Referenzen

Portfolio
Industrial Edge
Product
Industrial Edge
Product Version
v25.04
Edition
04/2025
Language
de-DE

Nach dem Erstellen der Anwendung mit iectl publisher standalone-app create

Das Edge-Gerät bietet Funktionen für andere installierte Anwendungen, damit sie sich selbst registrieren und Authentifizierungs- und Autorisierungsdienste verwenden können.

Der Edge-Dienst ist auch als vordefinierte App im Authentifizierungsdienst registriert. Anwendungsentwickler können die folgenden Funktionen dieses Authentifizierungsdienstes verwenden:

  • Benutzererstellung und Sitzungsverwaltung
  • Direkter Benutzer mit vordefiniertem Benutzernamen/Passwort
  • Melden Sie sich für App-Benutzer an
  • Gruppen
  • Einladung für eine Gruppe
  • Festlegen von Rollen und Berechtigungen
# examples are based on given yaml
version: "2.4" 
services: 
  nginx: #serviceName to be used in --redirectsection, to tell device to use this service for app redirection.
    image: nginx:alpine 
    restart: always 
    mem_limit: 200m

Verwenden Sie das Argument --authservice "{"servicename":"/opt/appsecrets.json"}"

$ iectl publisher standalone-app version create \
        --appname "my cool app" \
        --yamlpath "/path/to/folder/with/docker-compose.yaml" \ 
        --versionnumber "1.0.0" \
        --authservice "{"nginx":"/opt/appsecrets.json"}"
        --nginxjson '{"nginx":[{"name":"ui","protocol":"HTTPS","port":"80","headers":"","rewriteTarget":"/"}]}' \ # nginxjson is json map of docker compose service name and array of reverse proxy.
        --redirectsection "nginx" \         # redirectsection requires the service name within docker-compose which contains the container that shall be exposed
        --redirecttype "FromBoxReverseProxy" \  # redirecttype is either FromBoxSpecificPort for direct port exposure or FromBoxReverseProxy for reverse proxy exposure
        --redirecturl "ui/" \                   # redirecturl is the port which shall be exposed from your container
        --restredirecturl "" \                  # restredirecturl path will be used upon redirect to your application