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

Method __init__

st2auth/st2auth/controllers/v1/auth.py:59–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 validate = TokenValidationController()
58
59 def __init__(self):
60 try:
61 self.handler = HANDLER_MAPPINGS[cfg.CONF.auth.mode]()
62 except KeyError:
63 raise ParamException("%s is not a valid auth mode" % cfg.CONF.auth.mode)
64
65 def post(self, request, **kwargs):
66 headers = {}

Callers

nothing calls this directly

Calls 1

ParamExceptionClass · 0.90

Tested by

no test coverage detected