Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value=Field.text(),
chirper=Authorization(Chirper),
)
@inlineCallbacks
def addChirp(chirper, value):
# type: (Chirper, str) -> Deferred
yield chirper.chirp(value)
returnValue(Redirect(b"/"))
sessionID=Field.text(),
url=RequestURL(),
)
@inlineCallbacks
def logOtherOut(sessionID, binding, url):
# type: (str, ISimpleAccountBinding, DecodedURL) -> Deferred
from attr import assoc
# TODO: public API for getting to this?
session = yield binding._session._sessionStore.loadSession(
sessionID, url.scheme == u'https', SessionMechanism.Header
)
other_binding = assoc(binding, _session=session)
yield other_binding.unbindThisSession()
returnValue(Redirect(b"/sessions"))