Exception: Fluence::Gateway::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/fluence/gateway/errors.rb

Overview

Raised when the OAuth2 flow against the appcenter fails — typically invalid client_id/client_secret, a revoked client, or a 4xx/5xx response from the token endpoint.

Wraps the original OAuth2::Error#message.

Examples:

Handle bad credentials

begin
  Fluence::Gateway::Client.get('/api/v1/me', service: :base_valeur)
rescue Fluence::Gateway::AuthenticationError => e
  # credentials invalid — surface to operator, do not retry
end