Methods
Public Instance
Public Instance Aliases
change_login_requires_password? | -> | modifications_require_password? |
change_password_requires_password? | -> | modifications_require_password? |
close_account_requires_password? | -> | modifications_require_password? |
require_login_confirmation? | -> | modifications_require_password? |
require_password_confirmation? | -> | modifications_require_password? |
set_notice_now_flash | -> | set_notice_flash |
set_redirect_error_flash | -> | set_error_flash |
two_factor_modifications_require_password? | -> | modifications_require_password? |
Attributes
flash | [R] | |
internal_request_block | [RW] | |
params | [RW] | |
session | [RW] |
Public Instance methods
add_recovery_codes_view()
[show source]
# File lib/rodauth/features/internal_request.rb 84 def add_recovery_codes_view 85 _return_from_internal_request(recovery_codes) 86 end
clear_session()
[show source]
# File lib/rodauth/features/internal_request.rb 53 def clear_session 54 @session.clear 55 end
domain()
[show source]
# File lib/rodauth/features/internal_request.rb 41 def domain 42 d = super 43 if d.nil? || d == INVALID_DOMAIN 44 raise InternalRequestError, "must set domain in configuration, as it cannot be determined from internal request" 45 end 46 d 47 end
handle_internal_request(meth)
[show source]
# File lib/rodauth/features/internal_request.rb 106 def handle_internal_request(meth) 107 catch(:halt) do 108 _around_rodauth do 109 before_rodauth 110 send(meth, request) 111 end 112 end 113 114 @internal_request_return_value 115 end
modifications_require_password?()
[show source]
# File lib/rodauth/features/internal_request.rb 68 def modifications_require_password? 69 false 70 end
only_json?()
[show source]
# File lib/rodauth/features/internal_request.rb 117 def only_json? 118 false 119 end
otp_setup_view()
[show source]
# File lib/rodauth/features/internal_request.rb 78 def otp_setup_view 79 hash = {:otp_setup=>otp_user_key} 80 hash[:otp_setup_raw] = otp_key if hmac_secret 81 _return_from_internal_request(hash) 82 end
raw_param(k)
[show source]
# File lib/rodauth/features/internal_request.rb 49 def raw_param(k) 50 @params[k] 51 end
set_error_flash(message)
[show source]
# File lib/rodauth/features/internal_request.rb 57 def set_error_flash(message) 58 @flash = message 59 _handle_internal_request_error 60 end
set_notice_flash(message)
[show source]
# File lib/rodauth/features/internal_request.rb 63 def set_notice_flash(message) 64 @flash = message 65 end
webauthn_auth_view()
[show source]
# File lib/rodauth/features/internal_request.rb 97 def webauthn_auth_view 98 cred = webauthn_credential_options_for_get 99 _return_from_internal_request({ 100 webauthn_auth: cred.as_json, 101 webauthn_auth_challenge: cred.challenge, 102 webauthn_auth_challenge_hmac: compute_hmac(cred.challenge) 103 }) 104 end
webauthn_setup_view()
[show source]
# File lib/rodauth/features/internal_request.rb 88 def webauthn_setup_view 89 cred = new_webauthn_credential 90 _return_from_internal_request({ 91 webauthn_setup: cred.as_json, 92 webauthn_setup_challenge: cred.challenge, 93 webauthn_setup_challenge_hmac: compute_hmac(cred.challenge) 94 }) 95 end