File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,19 +99,19 @@ func parseWellKnownConfiguration(httpClient apiClient, wellKnownConfigURL string
9999 return nil , fmt .Errorf ("found no issuer" )
100100 }
101101 if utils .ValidateURLDomain (wellKnownConfig .Issuer ) != nil {
102- return nil , err
102+ return nil , fmt . Errorf ( "issuer is invalid" )
103103 }
104104 if wellKnownConfig .AuthorizationEndpoint == "" {
105105 return nil , fmt .Errorf ("found no authorization endpoint" )
106106 }
107107 if utils .ValidateURLDomain (wellKnownConfig .AuthorizationEndpoint ) != nil {
108- return nil , err
108+ return nil , fmt . Errorf ( "authorization endpoint is invalid" )
109109 }
110110 if wellKnownConfig .TokenEndpoint == "" {
111111 return nil , fmt .Errorf ("found no token endpoint" )
112112 }
113113 if utils .ValidateURLDomain (wellKnownConfig .TokenEndpoint ) != nil {
114- return nil , err
114+ return nil , fmt . Errorf ( "token endpoint is invalid" )
115115 }
116116
117117 err = SetAuthField (IDP_TOKEN_ENDPOINT , wellKnownConfig .TokenEndpoint )
You can’t perform that action at this time.
0 commit comments