Skip to content

Commit 2d03a86

Browse files
Merge pull request #204 from skanct/ck_default_userinfo_request_method
Changes the default for the userinfo_request_method to GET
2 parents e87467a + 6daef5f commit 2d03a86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/satosa/backends/openid_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _check_error_response(self, response, context):
161161
raise SATOSAAuthenticationError(context.state, "Access denied")
162162

163163
def _get_userinfo(self, state, context):
164-
kwargs = {"method": self.config["client"].get("userinfo_request_method", "POST")}
164+
kwargs = {"method": self.config["client"].get("userinfo_request_method", "GET")}
165165
userinfo_resp = self.client.do_user_info_request(state=state, **kwargs)
166166
self._check_error_response(userinfo_resp, context)
167167
return userinfo_resp.to_dict()

tests/satosa/backends/test_openid_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def setup_token_endpoint(self, token_endpoint_url, userinfo, signing_key):
119119
content_type="application/json")
120120

121121
def setup_userinfo_endpoint(self, userinfo_endpoint_url, userinfo):
122-
responses.add(responses.POST,
122+
responses.add(responses.GET,
123123
userinfo_endpoint_url,
124124
body=json.dumps(userinfo),
125125
status=200,

0 commit comments

Comments
 (0)