mirror of
https://github.com/9001/copyparty.git
synced 2025-09-28 12:42:26 -06:00
helptext tweaks
This commit is contained in:
parent
543b7ea959
commit
0b3939002d
|
@ -693,7 +693,7 @@ def get_sects():
|
|||
provided by an authentication middleware such as
|
||||
authentik, authelia, tailscale, ... (see \033[33m--help-idp\033[0m)
|
||||
|
||||
[\033[35midp-h\033[0m] is specifically the \033[33m--idp-h-usr\033[0m header,
|
||||
[\033[35midp-h\033[0m] is specifically an \033[33m--idp-h-usr\033[0m header,
|
||||
[\033[35midp-hm\033[0m] is specifically an \033[33m--idp-hm-usr\033[0m header;
|
||||
[\033[35midp\033[0m] is the same as [\033[35midp-hm,idp-h\033[0m]
|
||||
|
||||
|
@ -1282,7 +1282,7 @@ def add_auth(ap):
|
|||
ses_db = os.path.join(E.cfg, "sessions.db")
|
||||
ap2 = ap.add_argument_group("IdP / identity provider / user authentication options")
|
||||
ap2.add_argument("--idp-h-usr", metavar="HN", type=u, action="append", help="\033[34mREPEATABLE:\033[0m bypass the copyparty authentication checks if the request-header \033[33mHN\033[0m contains a username to associate the request with (for use with authentik/oauth/...)\n\033[1;31mWARNING:\033[0m if you enable this, make sure clients are unable to specify this header themselves; must be washed away and replaced by a reverse-proxy")
|
||||
ap2.add_argument("--idp-hm-usr", metavar="TXT", type=u, action="append", help="\033[34mREPEATABLE:\033[0m bypass the copyparty authentication checks if the request-header \033[33mHN\033[0m is provided, and its value exists in a mapping defined by this option; see --help-idp")
|
||||
ap2.add_argument("--idp-hm-usr", metavar="T", type=u, action="append", help="\033[34mREPEATABLE:\033[0m bypass the copyparty authentication checks if the request-header \033[33mT\033[0m is provided, and its value exists in a mapping defined by this option; see --help-idp")
|
||||
ap2.add_argument("--idp-h-grp", metavar="HN", type=u, default="", help="assume the request-header \033[33mHN\033[0m contains the groupname of the requesting user; can be referenced in config files for group-based access control")
|
||||
ap2.add_argument("--idp-h-key", metavar="HN", type=u, default="", help="optional but recommended safeguard; your reverse-proxy will insert a secret header named \033[33mHN\033[0m into all requests, and the other IdP headers will be ignored if this header is not present")
|
||||
ap2.add_argument("--idp-gsep", metavar="RE", type=u, default="|:;+,", help="if there are multiple groups in \033[33m--idp-h-grp\033[0m, they are separated by one of the characters in \033[33mRE\033[0m")
|
||||
|
|
Loading…
Reference in a new issue