ghosts-network / gateway

RESTful public API for GhostNetwork education project
1 stars 5 forks source link

Implementation for ICurrenUserProvider #20

Closed volodymyr-borodin closed 3 years ago

volodymyr-borodin commented 3 years ago

Instead of FakeCurrentUserProvider create CurrentUserProvider. CurrentUserProvider should use “sub” field from token as UserId. For unauthorized users UserId should be null