@@ -34,28 +34,57 @@ The ``createapplication`` management command provides a shortcut to create a new
34
34
35
35
.. code-block :: sh
36
36
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]
40
45
[--skip-checks]
41
46
client_type authorization_grant_type
42
47
43
48
Shortcut to create a new application in a programmatic way
44
49
45
50
positional arguments:
46
- client_type The client type, can be confidential or public
51
+ client_type The client type, one of: confidential, public
47
52
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
49
56
50
57
optional arguments:
51
58
-h, --help show this help message and exit
52
59
--client-id CLIENT_ID
53
60
The ID of the new application
54
61
--user USER The user the application belongs to
55
62
--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'
57
65
--client-secret CLIENT_SECRET
58
66
The secret for this application
59
67
--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