mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add keyring authentication to ILIAS CLI
This commit is contained in:
parent
be4b1040f8
commit
8dd0689420
@ -36,6 +36,11 @@ GROUP.add_argument(
|
|||||||
metavar="USER_NAME",
|
metavar="USER_NAME",
|
||||||
help="user name for authentication"
|
help="user name for authentication"
|
||||||
)
|
)
|
||||||
|
GROUP.add_argument(
|
||||||
|
"--keyring",
|
||||||
|
action=BooleanOptionalAction,
|
||||||
|
help="use the system keyring to store and retrieve passwords"
|
||||||
|
)
|
||||||
GROUP.add_argument(
|
GROUP.add_argument(
|
||||||
"--link-file-redirect-delay",
|
"--link-file-redirect-delay",
|
||||||
type=int,
|
type=int,
|
||||||
@ -70,6 +75,10 @@ def load(
|
|||||||
|
|
||||||
parser["auth:kit-ilias-web"] = {}
|
parser["auth:kit-ilias-web"] = {}
|
||||||
auth_section = parser["auth:kit-ilias-web"]
|
auth_section = parser["auth:kit-ilias-web"]
|
||||||
|
|
||||||
|
if args.keyring:
|
||||||
|
auth_section["type"] = "keyring"
|
||||||
|
else:
|
||||||
auth_section["type"] = "simple"
|
auth_section["type"] = "simple"
|
||||||
|
|
||||||
if args.username is not None:
|
if args.username is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user