public void Can_ConvertSessionToToken() { var authClient = new JsonServiceClient(Config.ListeningOn); var authResponse = authClient.Send(new Authenticate { provider = "credentials", UserName = "******", Password = "******", RememberMe = true, }); Assert.That(authResponse.SessionId, Is.Not.Null); Assert.That(authResponse.UserName, Is.EqualTo("Stefan")); Assert.That(authResponse.BearerToken, Is.Not.Null); var jwtToken = authClient.GetTokenCookie(); //From ss-tok Cookie Assert.That(jwtToken, Is.Null); var response = authClient.Send(new HelloJwt { Name = "from auth service" }); Assert.That(response.Result, Is.EqualTo("Hello, from auth service")); authClient.Send(new ConvertSessionToToken()); jwtToken = authClient.GetTokenCookie(); //From ss-tok Cookie Assert.That(jwtToken, Is.Not.Null); response = authClient.Send(new HelloJwt { Name = "from auth service" }); Assert.That(response.Result, Is.EqualTo("Hello, from auth service")); }