public static AuthorisationCallbackDataContext Response( this AuthorisationCallbackDataContext context, AuthorisationCallbackPayload value) { context.Response = value; return(context); }
public string GetAuthtoriseResponse() { var model = new AuthorisationCallbackPayload("code123", "1ab89221-ca25-4055-9f96-7064fe953c52") { Nonce = "a71276e3-d7fe-4f0d-9ce5-10a7ac2f3dca" }; return(JsonConvert.SerializeObject(model)); }
public async Task <IActionResult> PostAuthorisationCallbackAsync([FromForm] AuthorisationCallbackPayload payload) { AuthorisationCallbackData?value = new AuthorisationCallbackData( responseMode: "fragment", response: payload); AuthorisationCallbackDataFluentResponse?resp = await _obRequestBuilder.AuthorisationCallbackData() .Data(value) .SubmitAsync(); return(resp.HasErrors ? new BadRequestObjectResult(resp.ToMessagesResponse()) as IActionResult : new NoContentResult()); }
public AuthorisationCallbackData(string responseMode, AuthorisationCallbackPayload response) { ResponseMode = responseMode; Response = response; }