Class: Decidim::Verifications::IdCatMobilHandler
- Inherits:
-
AuthorizationHandler
- Object
- AuthorizationHandler
- Decidim::Verifications::IdCatMobilHandler
- Defined in:
- app/forms/decidim/verifications/id_cat_mobil_handler.rb
Overview
A Handler form object that just holds OAuth2 data provided by AOC when performing “IdCat mòbil” authentication.
Instance Method Summary collapse
Instance Method Details
#metadata ⇒ Object
16 17 18 |
# File 'app/forms/decidim/verifications/id_cat_mobil_handler.rb', line 16 def oauth_data end |
#unique_id ⇒ Object
12 13 14 |
# File 'app/forms/decidim/verifications/id_cat_mobil_handler.rb', line 12 def unique_id oauth_data["identifier"] end |
#user ⇒ Object
20 21 22 |
# File 'app/forms/decidim/verifications/id_cat_mobil_handler.rb', line 20 def user Decidim::User.find(oauth_data[:user_id]) end |