Implement simple generation of access tokens for users (+ test)

[#79005958]