feat: get issuer from context for device auth

This commit is contained in:
Tim Möhlmann 2023-04-11 18:49:42 +03:00
parent 97bc09583d
commit 643669fe4f
4 changed files with 18 additions and 6 deletions

View file

@ -30,6 +30,7 @@ func Test_deviceAuthorizationHandler(t *testing.T) {
r := httptest.NewRequest(http.MethodPost, "/", body)
r.Header.Set("Content-Type", "application/x-www-form-urlencoded")
r = r.WithContext(op.ContextWithIssuer(r.Context(), testIssuer))
w := httptest.NewRecorder()