Skip to content

Commit 71396ff

Browse files
committed
Merge pull request #121 from Code-Sharp/develop
Fixing #120
2 parents a2ddc76 + 7066f79 commit 71396ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/net45/WampSharp/WAMP2/V2/MetaApi/Session/SessionDescriptorService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ public SessionDescriptorService(IWampHostedRealm realm)
2626

2727
private void OnSessionCreated(object sender, WampSessionCreatedEventArgs e)
2828
{
29+
WelcomeDetails welcomeDetails = e.WelcomeDetails;
30+
2931
WampSessionDetails sessionDetails = new WampSessionDetails()
3032
{
3133
Realm = mRealm.Name,
3234
Session = e.SessionId,
33-
AuthMethod = e.WelcomeDetails.AuthenticationMethod ?? "anonymous",
35+
AuthMethod = welcomeDetails.AuthenticationMethod ?? "anonymous",
36+
AuthId = welcomeDetails.AuthenticationId,
37+
AuthProvider = welcomeDetails.AuthenticationProvider,
38+
AuthRole = welcomeDetails.AuthenticationRole,
3439
TransportDetails = e.HelloDetails.TransportDetails
3540
};
3641

0 commit comments

Comments
 (0)