@@ -34,28 +34,57 @@ The ``createapplication`` management command provides a shortcut to create a new
3434
3535.. code-block :: sh
3636
37- usage: manage.py createapplication [-h] [--client-id CLIENT_ID] [--user USER] [--redirect-uris REDIRECT_URIS]
38- [--client-secret CLIENT_SECRET] [--name NAME] [--skip-authorization] [--version] [-v {0,1,2,3}]
39- [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color]
37+ usage: manage.py createapplication [-h] [--client-id CLIENT_ID] [--user USER]
38+ [--redirect-uris REDIRECT_URIS]
39+ [--client-secret CLIENT_SECRET]
40+ [--name NAME] [--skip-authorization]
41+ [--algorithm ALGORITHM] [--version]
42+ [-v {0,1,2,3}] [--settings SETTINGS]
43+ [--pythonpath PYTHONPATH] [--traceback]
44+ [--no-color] [--force-color]
4045 [--skip-checks]
4146 client_type authorization_grant_type
4247
4348 Shortcut to create a new application in a programmatic way
4449
4550 positional arguments:
46- client_type The client type, can be confidential or public
51+ client_type The client type, one of: confidential, public
4752 authorization_grant_type
48- The type of authorization grant to be used
53+ The type of authorization grant to be used, one of:
54+ authorization-code, implicit, password, client-
55+ credentials, openid-hybrid
4956
5057 optional arguments:
5158 -h, --help show this help message and exit
5259 --client-id CLIENT_ID
5360 The ID of the new application
5461 --user USER The user the application belongs to
5562 --redirect-uris REDIRECT_URIS
56- The redirect URIs, this must be a space separated string e.g ' URI1 URI2'
63+ The redirect URIs, this must be a space separated
64+ string e.g ' URI1 URI2'
5765 --client-secret CLIENT_SECRET
5866 The secret for this application
5967 --name NAME The name this application
60- --skip-authorization The ID of the new application
61- ...
68+ --skip-authorization If set, completely bypass the authorization form, even
69+ on the first use of the application
70+ --algorithm ALGORITHM
71+ The OIDC token signing algorithm for this application,
72+ one of: RS256, HS256
73+ --version Show program' s version number and exit.
74+ -v {0,1,2,3}, --verbosity {0,1,2,3}
75+ Verbosity level; 0=minimal output, 1=normal output,
76+ 2=verbose output, 3=very verbose output
77+ --settings SETTINGS The Python path to a settings module, e.g.
78+ "myproject.settings.main". If this isn' t provided, the
79+ DJANGO_SETTINGS_MODULE environment variable will be
80+ used.
81+ --pythonpath PYTHONPATH
82+ A directory to add to the Python path, e.g.
83+ " /home/djangoprojects/myproject" .
84+ --traceback Raise on CommandError exceptions.
85+ --no-color Don' t colorize the command output.
86+ --force-color Force colorization of the command output.
87+ --skip-checks Skip system checks.
88+
89+ If you let `createapplication` auto-generate the secret then it displays the value before hashing it.
90+
0 commit comments