createOIDCRequest creates the request with the sessionEndpoint and token put in. sessionEndpoint should end with "/_session".
(t *testing.T, sessionEndpoint string, token string)
| 994 | // createOIDCRequest creates the request with the sessionEndpoint and token put in. |
| 995 | // sessionEndpoint should end with "/_session". |
| 996 | func createOIDCRequest(t *testing.T, sessionEndpoint string, token string) *http.Request { |
| 997 | request, err := http.NewRequest(http.MethodPost, sessionEndpoint, strings.NewReader(`{}`)) |
| 998 | require.NoError(t, err, "Error creating new request") |
| 999 | request.Header.Add("Authorization", BearerToken+" "+token) |
| 1000 | return request |
| 1001 | } |
| 1002 | |
| 1003 | // E2E test that checks OpenID Connect Implicit Flow. |
| 1004 | func TestOpenIDConnectImplicitFlow(t *testing.T) { |
no test coverage detected