Exception: Osso::Error::InvalidRedirectUri

Inherits:
OAuthError
  • Object
show all
Defined in:
lib/osso/error/oauth_error.rb

Instance Method Summary collapse

Methods inherited from OAuthError

#docs_url

Methods inherited from Base

#docs_url

Constructor Details

#initialize(redirect_uri:) ⇒ InvalidRedirectUri

Returns a new instance of InvalidRedirectUri.



33
34
35
36
# File 'lib/osso/error/oauth_error.rb', line 33

def initialize(redirect_uri:)
  super
  @redirect_uri = redirect_uri
end

Instance Method Details

#messageObject



38
39
40
41
42
43
# File 'lib/osso/error/oauth_error.rb', line 38

def message
  "The requested redirect URI #{@redirect_uri} is not on the allow-list for the rquested " \
  'OAuth client identifier. Review our OAuth documentation, check you\'re using the correct ' \
  'OAuth client identifier, and confirm your Redirect URI allow-list includes the ' \
  'appropriate URI(s).'
end