Am 30.01.2016 um 00:35 schrieb Jun:
> Hello,
>
> When a device connects to crossbar, it needs to be authenticated by an
> external authentication server who takes username and password and
> returns yes or no.
>
> 1st question: Will this supported by ticket authentication feature of
> crossbar?
Yes, that's exactly one use case for this authmethod.
Use WAMP-Ticket dynamic.
E.g. here is an example
https://github.com/crossbario/crossbarexamples/blob/master/authentication/ticket/dynamic/authenticator.py#L71
That line takes the secret ("ticket") provided by the client to be
authenticated, and compares that to a pre-shared known good secret.
In place of this line of code, invoke your external authentication server.
>
> If so, my understanding is to configure it as:
> |authenticator| "com.example.authenticate"
>
>
> 2nd question: Can I create a separate client which registers a callback
> to "com.example.authenticate"?
> for example, using jawampa,
>
> wampclient.registerProcedure("com.cisco.wamp.authen.callback").subscribe(new
> Action1<Request>() {
>
> @Override
>
> public void call(Request request) {
>
> // call external authenticator to authenticate
>
> }
>
>
> or it has to use python code the way it was done
> at
https://github.com/crossbario/crossbarexamples/blob/master/authentication/ticket/dynamic/authenticator.py
No need to use Python. That's the beauty: you can use _any_ WAMP
supported language to implement your dynamic authenticator. Does not matter.
From the point of view of Crossbar.io, a dynamic authenticator is just
a regular client as any other. It's just that Crossbar.io _itself_ will
issue calls into your component - which is different from regular
components (which never get called into from Crossbar.io, but only from
other user components).
>
>
>
> thank you.
>
>
> Regards,
>
> Jun
>
> --
> You received this message because you are subscribed to the Google
> Groups "Crossbar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
crossbario+...@googlegroups.com
> <mailto:
crossbario+...@googlegroups.com>.
> To post to this group, send email to
cross...@googlegroups.com
> <mailto:
cross...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/crossbario/c18cda39-6b4f-458d-8756-fefbad7bbe30%40googlegroups.com
> <
https://groups.google.com/d/msgid/crossbario/c18cda39-6b4f-458d-8756-fefbad7bbe30%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.