Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to latest changes in wampproto #57

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/authentication_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ class AuthenticationExample {
}

Future<Session> connectTicket(String url, String realm, String authID, String ticket, Serializer serializer) {
var ticketAuthenticator = TicketAuthenticator(ticket, authID);
var ticketAuthenticator = TicketAuthenticator(authID, {}, ticket);

return connect(url, realm, ticketAuthenticator, serializer);
}

Future<Session> connectCRA(String url, String realm, String authID, String secret, Serializer serializer) {
var craAuthenticator = WAMPCRAAuthenticator(secret, authID);
var craAuthenticator = WAMPCRAAuthenticator(authID, {}, secret);

return connect(url, realm, craAuthenticator, serializer);
}

Future<Session> connectCryptoSign(String url, String realm, String authID, String privateKey, Serializer serializer) {
var cryptoSignAuthenticator = CryptoSignAuthenticator(authID, privateKey);
var cryptoSignAuthenticator = CryptoSignAuthenticator(authID, {}, privateKey);

return connect(url, realm, cryptoSignAuthenticator, serializer);
}
Expand Down