Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

exp:addoauthauthorizepolicy

Gewährt oauth/authorize den Rollen, die Benutzern das Anmelden erlauben (Upgrade auf 6.0.15; Probelauf, außer mit --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/addoauthauthorizepolicy.md

On this page

This page is a translation. Read the English original

exp:addoauthauthorizepolicy

Gewährt oauth/authorize den Rollen, die Benutzern das Anmelden erlauben (Upgrade auf 6.0.15; Probelauf, außer mit --apply).

Skript bin/php/addoauthauthorizepolicy.php, Code in kernel/private/classes/commands/addoauthauthorizepolicy.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:addoauthauthorizepolicy --help
php bin/php/addoauthauthorizepolicy.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Grant the policy oauth/authorize to every role that lets users sign in (user/login),
with the same siteaccess limitation, so the users who could authorize OAuth clients before 6.0.15
still can. Roles that have the policy already are left alone; the script can run again.
Prints PASS or FAIL at the end. Without --apply nothing is written: the script lists the roles it
would grant the policy to. --dry-run is still accepted and means the same as no flag; --apply
together with --dry-run is a usage error (exit 2).

Example: php bin/php/addoauthauthorizepolicy.php
         php bin/php/addoauthauthorizepolicy.php --apply
         php bin/php/addoauthauthorizepolicy.php --apply --role=Editor --role=5

Optionen

OptionWertHilfe
--applyDie Änderungen schreiben (Standard ist ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, beibehalten für Skripte, die die Option übergeben: auflisten, was gewährt würde, nichts ändern
--roleerforderlichNur diese Rolle (ID oder Name), kann wiederholt werden; eine genannte Rolle ohne user/login erhält eine unbeschränkte Richtlinie

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/addoauthauthorizepolicy.php, kernel/private/classes/commands/addoauthauthorizepolicy.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x