Skip to content

Commit

Permalink
Add info for error
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Dec 15, 2024
1 parent fc4b969 commit 1b6c812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IssueUnlockDoor/Services/IssuerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Options;
using Microsoft.Graph.Models;

namespace IssueUnlockDoor;

Expand Down Expand Up @@ -56,6 +57,7 @@ public async Task<ActionResult> IssuanceRequestAsync()
var defaultRequestHeaders = _httpClient.DefaultRequestHeaders;
defaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Token);

_log.LogWarning("Send payload: {payload}", JsonSerializer.Serialize(payload));
var res = await _httpClient.PostAsJsonAsync(_credentialSettings.Endpoint, payload);

//var test = await res.Content.ReadAsStringAsync();
Expand Down

0 comments on commit 1b6c812

Please sign in to comment.