From turning on the debug logs, it seems to me that ModuleCoreSecurity is stripping off everything after and including the “=” sign so the hashes don’t match. Is this a bug?
_JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI= hash sent
INFO session connect-pending 192.168.5.56 -
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: isPublisher:false FlashVer: LNX 16,0,0,305
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: Initiate SecureToken Authorization.
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: All security checks passed.
INFO session connect 192.168.5.56 -
INFO stream create - -
INFO server comment - ModuleCoreSecurity.play[live/streamer-1/stream]: Check SecureToken Authorization.
INFO server comment - [live/streamer-1]ModuleCoreSecurity:current time stamp: 1423146360
INFO server comment - [live/streamer-1]ModuleCoreSecurity:clientId: 23217498
INFO server comment - [live/streamer-1]ModuleCoreSecurity:hashReceived: _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI
INFO server comment - [live/streamer-1]ModuleCoreSecurity:creating RTMP token for ClientId:23217498 uri:rtmp://192.168.5.56:1935/live/streamer-1/stream
WARN server comment - ModuleCoreSecurity[live/streamer-1] Invalid value for token start time: null
WARN server comment - ModuleCoreSecurity[live/streamer-1] Invalid value for token end time: null
INFO server comment - [live/streamer-1]ModuleCoreSecurity:client IP: 192.168.5.56
INFO server comment - [live/streamer-1]ModuleCoreSecurity:hashCalculated: _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI=
INFO server comment - [live/streamer-1]ModuleCoreSecurity:string hashed: live/streamer-1/stream?secret
INFO server comment - [live/streamer-1]ModuleCoreSecurity:token start time stamp: 0
INFO server comment - [live/streamer-1]ModuleCoreSecurity:token end time stamp: 0
INFO server comment - [live/streamer-1]SecureTokenDef:Hash _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI, doesn’t match hash calculated, _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI=
INFO session comment 23217498 ModuleCoreSecurity.play[live/streamer-1/stream]: SecureToken failed. clientId: 23217498 play denied: clientId:23217498
INFO stream destroy - -
INFO session disconnect 23217498 -
And again with _JVK=1234 hash sent
INFO session connect-pending 192.168.5.56 -
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: isPublisher:false FlashVer: LNX 16,0,0,305
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: Initiate SecureToken Authorization.
INFO server comment - ModuleCoreSecurity.onConnect[live/streamer-1/]: All security checks passed.
INFO session connect 192.168.5.56 -
INFO stream create - -
INFO server comment - ModuleCoreSecurity.play[live/streamer-1/stream]: Check SecureToken Authorization.
INFO server comment - [live/streamer-1]ModuleCoreSecurity:current time stamp: 1423146740
INFO server comment - [live/streamer-1]ModuleCoreSecurity:clientId: 452295755
INFO server comment - [live/streamer-1]ModuleCoreSecurity:hashReceived: _JVK
INFO server comment - [live/streamer-1]ModuleCoreSecurity:creating RTMP token for ClientId:452295755 uri:rtmp://192.168.5.56:1935/live/streamer-1/stream
WARN server comment - ModuleCoreSecurity[live/streamer-1] Invalid value for token start time: null
WARN server comment - ModuleCoreSecurity[live/streamer-1] Invalid value for token end time: null
INFO server comment - [live/streamer-1]ModuleCoreSecurity:client IP: 192.168.5.56
INFO server comment - [live/streamer-1]ModuleCoreSecurity:hashCalculated: _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI=
INFO server comment - [live/streamer-1]ModuleCoreSecurity:string hashed: live/streamer-1/stream?secret
INFO server comment - [live/streamer-1]ModuleCoreSecurity:token start time stamp: 0
INFO server comment - [live/streamer-1]ModuleCoreSecurity:token end time stamp: 0
INFO server comment - [live/streamer-1]SecureTokenDef:Hash _JVK, doesn’t match hash calculated, _JVKyN33KaexRqoTo2LAbwICidR22K3msulK0pBcWZI=
INFO session comment 452295755 ModuleCoreSecurity.play[live/streamer-1/stream]: SecureToken failed. clientId: 452295755 play denied: clientId:452295755
INFO stream destroy - -
INFO session disconnect 452295755 -