Skip to content

Commit

Permalink
Merge pull request #150 from statisticsnorway/fix/guardian-client-mal…
Browse files Browse the repository at this point in the history
…formed-json

Send payload to Maskinporten Guardian as json
  • Loading branch information
kschulst authored Jun 5, 2024
2 parents 350d932 + 5b338d6 commit 862734f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dapla/guardian.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_guardian_token(
"Authorization": "Bearer %s" % keycloak_token,
"Content-type": "application/json",
},
data=body,
json=body,
)
if guardian_response.status_code == 200:
return t.cast(str, guardian_response.json()["accessToken"])
Expand Down

0 comments on commit 862734f

Please sign in to comment.