fixed client id
This commit is contained in:
@@ -69,6 +69,7 @@ func hasGrantType(grants []string, target string) bool {
|
||||
|
||||
func (pr *PublicRouter) validateClientIPPolicy(r *http.Request, clientID string, client *model.Client) http.HandlerFunc {
|
||||
if client == nil {
|
||||
pr.logger.Info("Client not found, rejecting authorization", zap.String("client_id", clientID))
|
||||
return response.Unauthorized(pr.logger, pr.service, "client not found")
|
||||
}
|
||||
clientIP := ipguard.ClientIP(r)
|
||||
|
||||
Reference in New Issue
Block a user