Skip to content

How to catch client side authentication failures #214

@jaimewyant

Description

@jaimewyant

I am using dynamic ticket authentication to authenticate users. When authentication fails, the authentication component raises an ApplicationError. How should this be handled in my WampSharp code?

This is what the python code looks like (full example here)

            if ticket != principal['ticket']:
               raise ApplicationError(u'com.example.invalid_ticket', "could not authenticate session - invalid ticket '{}' for principal {}".format

I expected an exception while awaiting channel.Open(), but it just doesn't return.

Am I overlooking something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions