Skip to main content
Participant
November 9, 2009
Answered

Auth module: denial reason

  • November 9, 2009
  • 1 reply
  • 508 views

Hi.

I'm developing an auth module for FMS and wondering if there's a way to pass a custom reason string to client in case the specific event (e.g. E_PLAY) is not authorized. Tried passing a message to addDisconnectAction(), but it seems to take no effect, client still getting

Event:Connection.Rejected, info: NetConnection.Connect.Closed = undefined status = undefined

Thanks in advance.

    This topic has been closed for replies.
    Correct answer Asa_-_FMS

    Hey Alex,

    Currently there's not but this is being added as an item for upcoming FMS releases. You can work around it as you like by notifying script as you're doing and sending an out of band message to the client, but it won't come back in the description for the actual reject. We're aware of the pain point here, and are resolving it for the next version.

    Asa

    1 reply

    Asa_-_FMS
    Adobe Employee
    Asa_-_FMSCorrect answer
    Adobe Employee
    November 9, 2009

    Hey Alex,

    Currently there's not but this is being added as an item for upcoming FMS releases. You can work around it as you like by notifying script as you're doing and sending an out of band message to the client, but it won't come back in the description for the actual reject. We're aware of the pain point here, and are resolving it for the next version.

    Asa

    Participant
    November 10, 2009

    Thanks for the reply.

    Could you please provide an example on how to send client an OOB message from AS app?

    Edit: Oh, never mind. It's just a simple client.call().