Skip to content

Commit

Permalink
Merge pull request #121 from Code-Sharp/develop
Browse files Browse the repository at this point in the history
Fixing #120
  • Loading branch information
darkl committed Feb 20, 2016
2 parents a2ddc76 + 7066f79 commit 71396ff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ public SessionDescriptorService(IWampHostedRealm realm)

private void OnSessionCreated(object sender, WampSessionCreatedEventArgs e)
{
WelcomeDetails welcomeDetails = e.WelcomeDetails;

WampSessionDetails sessionDetails = new WampSessionDetails()
{
Realm = mRealm.Name,
Session = e.SessionId,
AuthMethod = e.WelcomeDetails.AuthenticationMethod ?? "anonymous",
AuthMethod = welcomeDetails.AuthenticationMethod ?? "anonymous",
AuthId = welcomeDetails.AuthenticationId,
AuthProvider = welcomeDetails.AuthenticationProvider,
AuthRole = welcomeDetails.AuthenticationRole,
TransportDetails = e.HelloDetails.TransportDetails
};

Expand Down

0 comments on commit 71396ff

Please sign in to comment.