| 48 | } |
| 49 | |
| 50 | Status PyServerAuthHandler::IsValid(const std::string& token, |
| 51 | std::string* peer_identity) { |
| 52 | return SafeCallIntoPython([=] { |
| 53 | const Status status = vtable_.is_valid(handler_.obj(), token, peer_identity); |
| 54 | RETURN_NOT_OK(CheckPyError()); |
| 55 | return status; |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | PyClientAuthHandler::PyClientAuthHandler(PyObject* handler, |
| 60 | const PyClientAuthHandlerVtable& vtable) |