Exemplo n.º 1
0
 public void WhenExtractJwsPayloadFromAuthorizationRequest(string name)
 {
     var jws = WebApiSteps.ParseValue(name, _scenarioContext).ToString();
     var jwsGenerator = new JwsGeneratorFactory().BuildJwsGenerator();
     _scenarioContext.Set(jwsGenerator.ExtractPayload(jws), "tokenPayload");
     _scenarioContext.Set(jwsGenerator.ExtractHeader(jws), "jwsHeader");
 }
Exemplo n.º 2
0
        public void WhenExtractJwsPayloadFromAuthorizationRequest(string name)
        {
            var jws          = Parse(name).ToString();
            var jwsGenerator = new JwsGeneratorFactory().BuildJwsGenerator();

            _scenarioContext.Set(JObject.Parse(JsonConvert.SerializeObject(jwsGenerator.ExtractPayload(jws))), "tokenPayload");
            _scenarioContext.Set(jwsGenerator.ExtractHeader(jws), "jwsHeader");
        }