summaryrefslogtreecommitdiff
path: root/crates/arti-rpcserver/src/connection/auth.rs
Commit message (Collapse)AuthorAgeFilesLines
* rpc: Give the session-creation function an argument.Nick Mathewson2023-06-151-1/+11
| | | | | | This will later let us tell the session-creation function how the authentication occurred, which will let it decide what privileges to provide.
* rpc: revise session initialization a lot.Nick Mathewson2023-06-151-8/+4
| | | | | | | | | | | | | | Formerly, every time we wanted to launch a new connection, we had to give the RpcMgr a TorClient. The connection would hold that TorClient until a session was authenticated, and then would wrap it in a Session and put it in the object map. Now, the RpcMgr holds a Box<dyn Fn()...> that knows how to create Sessions. When a connection is authenticated, it asks the Mgr to make it a new session. This lets us make it clearer that the TorClient simply can't be given out until the connection is authenticated. Later, it will let us create more types of Session objects under more complicated rules.
* rpc: Rename Session=>RpcSessionNick Mathewson2023-06-151-1/+1
|
* rpc: Disable auth:get_rpc_protocol for now.Nick Mathewson2023-05-241-0/+8
|
* rpc: Make the top-level returned object a "session".Nick Mathewson2023-05-241-6/+12
| | | | | | This will make it easier to change the semantics of what exactly we return, whether it has to be/contain a client, whether you can use it to look up all the live objects, &etc.
* rpc: Implement auth:query.Nick Mathewson2023-05-231-1/+39
|
* rpc: Implement the auth:get_rpc_protocol method.Nick Mathewson2023-05-231-0/+49
|
* rpc: move existing auth code to new module.Nick Mathewson2023-05-231-0/+82