I would like to have the chance to return a promise for the signature creation in the onchallenge handler. Some two factor authentications like oAuth2 have a async signature or token creation. I currently try to connect WAMP to oAuth2.
something like that:
return function (session, method, extra) {
if (method === "wampcra") {
return autobahn.auth_cra.sign(autobahn.auth_cra.derive_key(password || "", extra.salt,extra.iterations,extra.keylen), extra.challenge);
} else if (method === "oauth2.authorization_code_grant") {
return new Promise(...);
}
}
I would like to have the chance to return a promise for the signature creation in the onchallenge handler. Some two factor authentications like oAuth2 have a async signature or token creation. I currently try to connect WAMP to oAuth2.
something like that: