diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb index 169e0387e852d9efbfdd281d218cf0d1b9262268..3144e96ba31f74c67dbd2331f01baa36b4b30b53 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -6,7 +6,7 @@ module Auth return error('not found', 404) unless registry.enabled if params[:offline_token] - return error('forbidden', 401) unless current_user + return error('unauthorized', 401) unless current_user else return error('forbidden', 403) unless scope end