EronWright commented on a change in pull request #635:
URL: https://github.com/apache/pulsar-client-go/pull/635#discussion_r724336146



##########
File path: oauth2/oidc_endpoint_provider.go
##########
@@ -36,10 +36,16 @@ type OIDCWellKnownEndpoints struct {
 // GetOIDCWellKnownEndpointsFromIssuerURL gets the well known endpoints for the
 // passed in issuer url
 func GetOIDCWellKnownEndpointsFromIssuerURL(issuerURL string) 
(*OIDCWellKnownEndpoints, error) {
+       if issuerURL == "" {
+               return nil, errors.New("required: issuer url")
+       }
        u, err := url.Parse(issuerURL)
        if err != nil {
                return nil, errors.Wrap(err, "could not parse issuer url to 
build well known endpoints")
        }
+       if !u.IsAbs() {
+               return nil, errors.New("invalid: issuer url")

Review comment:
       The other error messages don't seem to do that, and frankly I think 
these messages are sufficient to troubleshoot the issue.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to