From c68975601b8024d2ff2219fa6861e4ce3d42b45b Mon Sep 17 00:00:00 2001 From: JCustin <52421105+JCustin@users.noreply.github.com> Date: Tue, 28 Jul 2020 13:26:04 -0700 Subject: [PATCH] Update pkg/op/authrequest.go Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> --- pkg/op/authrequest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/op/authrequest.go b/pkg/op/authrequest.go index 6235fd2..44a49e4 100644 --- a/pkg/op/authrequest.go +++ b/pkg/op/authrequest.go @@ -114,7 +114,7 @@ func ValidateAuthReqRedirectURI(ctx context.Context, uri, client_id string, resp return ErrInvalidRequestRedirectURI("Unfortunately, http is only allowed for native applications. Please change your redirect uri configuration and try again. If you have any questions, you may contact the administrator of the application.") } if !(strings.HasPrefix(uri, "http://localhost:") || strings.HasPrefix(uri, "http://localhost/")) { - return ErrInvalidRequestRedirectURI("Unfortunately, this redirect_uri lacks a 'http://localhost/' prefix. Please ensure the redirect_uri has the appropiate prefix, and try again. If you have any questions, you may contact the administrator of the application at:") + return ErrInvalidRequestRedirectURI("Unfortunately, http is only allowed for localhost url. Please change your redirect uri configuration and try again. If you have any questions, you may contact the administrator of the application at:") } } return nil