Allow starting a server with less then possible capabilities.
This commit is contained in:
parent
7645ac70fd
commit
75a5293e5a
|
@ -384,6 +384,9 @@ if __name__ == '__main__':
|
|||
parser.add_argument('-d', dest='debug', action='store_true')
|
||||
parser.add_argument('-p', dest='port', default=80, type=int)
|
||||
parser.add_argument('-k', dest='insecure', action='store_true')
|
||||
parser.add_argument(
|
||||
'-c', dest='capabilities',
|
||||
help="A file containing a JSON representation of the capabilities")
|
||||
parser.add_argument(dest="config")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
@ -526,6 +529,11 @@ if __name__ == '__main__':
|
|||
else:
|
||||
kwargs["verify_ssl"] = True
|
||||
|
||||
if args.capabilities:
|
||||
kwargs["capabilities"] = json.loads(open(args.capabilities).read())
|
||||
else:
|
||||
pass
|
||||
|
||||
OAS = Provider(config.issuer, SessionDB(config.baseurl), cdb, ac, None,
|
||||
authz, verify_client, config.SYM_KEY, **kwargs)
|
||||
|
||||
|
|
Reference in New Issue