MCPcopy Create free account
hub / github.com/StackStorm/st2 / _validate_scope

Function _validate_scope

st2common/st2common/util/keyvalue.py:38–41  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

36
37
38def _validate_scope(scope):
39 if scope not in ALLOWED_SCOPES:
40 msg = "Scope %s is not in allowed scopes list: %s." % (scope, ALLOWED_SCOPES)
41 raise ValueError(msg)
42
43
44def _validate_decrypt_query_parameter(decrypt, scope, is_admin, user_db):

Callers 1

get_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected