dsv-su / play

Dev repository for Play
0 stars 1 forks source link

User emulation #102

Closed pavelsokolov closed 1 year ago

pavelsokolov commented 2 years ago

It would help a lot if we could 'log in' as another user, i.e. emulate a given SU username (instead of switching between roles). Then the role could be derived from our logic, and we would be able to test things a lot more thoroughly. Right now it's very hard to replicate the issues reported by users, and it has been great pain in mediasite as well.

booski commented 2 years ago

This is kind of tricky since we don't store user info - there's no immediate way to know what entitlements another user would show up with.

A possible solution would be to query the info from SUKAT when impersonating. SUKAT exposes all entitlements for all users, so we could build a "fake" set of entitlements from there based on the person to impersonate.

orkit commented 1 year ago

Implemented!