SignedPolicy, How to authorize a user with userID, instead of "allow_ip"? #1168
Replies: 2 comments 2 replies
-
The intention is that you have a separate service that provides authorization however you want to in order to determine who gets to play the stream |
Beta Was this translation helpful? Give feedback.
-
In such scenarios, service providers usually:
Checking to allow playback is up to your service implementation. for example
For reference, <stream_name> is not exposed to users because it is exchanged only between OME and your control server. |
Beta Was this translation helpful? Give feedback.
-
Hi,
This may sound like a stupid question, but I would like to understand how SignedPolicy helps authorize a specific user, say a user with userID = "1234" to access to a stream? The Policy's properties do not have some thing like "userID", it has allow_ip:
`{
"url_activate":1399711581,
"url_expire":1399721581,
}`
How to I know a user that just logged in has the right to access to my resource? IP address is not good enough as a user can use different networks and devices that have different IP addresses? Is Policy customizable to add "user_id", so that on backend code, I can use that ID to authorize that user to access a resource?
Beta Was this translation helpful? Give feedback.
All reactions