Class: GrapeTokenAuth::OmniAuthFailureHTML
- Inherits:
-
OmniAuthHTMLBase
- Object
- OmniAuthHTMLBase
- GrapeTokenAuth::OmniAuthFailureHTML
- Defined in:
- lib/grape_token_auth/omniauth/omniauth_failure_html.rb
Constant Summary collapse
- FAILURE_MESSAGE =
'authFailure'
Instance Method Summary collapse
- #auth_origin_url ⇒ Object
-
#initialize(error_message) ⇒ OmniAuthFailureHTML
constructor
A new instance of OmniAuthFailureHTML.
- #json_post_data ⇒ Object
Methods inherited from OmniAuthHTMLBase
Constructor Details
#initialize(error_message) ⇒ OmniAuthFailureHTML
Returns a new instance of OmniAuthFailureHTML.
6 7 8 |
# File 'lib/grape_token_auth/omniauth/omniauth_failure_html.rb', line 6 def initialize() @error_message = end |
Instance Method Details
#auth_origin_url ⇒ Object
10 11 12 |
# File 'lib/grape_token_auth/omniauth/omniauth_failure_html.rb', line 10 def auth_origin_url "/#?error=#{}" end |
#json_post_data ⇒ Object
14 15 16 17 18 19 |
# File 'lib/grape_token_auth/omniauth/omniauth_failure_html.rb', line 14 def json_post_data { 'message' => FAILURE_MESSAGE, 'error' => }.to_json end |