From 9e4ffd1cce16597b9484ed1dba96bc757c55932e Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Wed, 4 Nov 2020 11:29:33 -0500 Subject: [PATCH] One of these days I will get here.Doc() spacing correct Signed-off-by: Andrew Keesler --- internal/oidc/auth/auth_handler_test.go | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/internal/oidc/auth/auth_handler_test.go b/internal/oidc/auth/auth_handler_test.go index 08f1c99b..58a8a221 100644 --- a/internal/oidc/auth/auth_handler_test.go +++ b/internal/oidc/auth/auth_handler_test.go @@ -30,23 +30,23 @@ func TestAuthorizationEndpoint(t *testing.T) { var ( fositeInvalidClientErrorBody = here.Doc(` - { - "error": "invalid_client", - "error_verbose": "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)", - "error_description": "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)\n\nThe requested OAuth 2.0 Client does not exist.", - "error_hint": "The requested OAuth 2.0 Client does not exist.", - "status_code": 401 - } + { + "error": "invalid_client", + "error_verbose": "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)", + "error_description": "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)\n\nThe requested OAuth 2.0 Client does not exist.", + "error_hint": "The requested OAuth 2.0 Client does not exist.", + "status_code": 401 + } `) fositeInvalidRedirectURIErrorBody = here.Doc(` - { - "error": "invalid_request", - "error_verbose": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed", - "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed\n\nThe \"redirect_uri\" parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls.", - "error_hint": "The \"redirect_uri\" parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls.", - "status_code": 400 - } + { + "error": "invalid_request", + "error_verbose": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed", + "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed\n\nThe \"redirect_uri\" parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls.", + "error_hint": "The \"redirect_uri\" parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls.", + "status_code": 400 + } `) fositeUnsupportedResponseTypeErrorQuery = url.Values{