Class: Decidim::Verifications::IdCatMobilHandler

Inherits:
AuthorizationHandler
  • Object
show all
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

#metadataObject



16
17
18
# File 'app/forms/decidim/verifications/id_cat_mobil_handler.rb', line 16

def 
  oauth_data
end

#unique_idObject



12
13
14
# File 'app/forms/decidim/verifications/id_cat_mobil_handler.rb', line 12

def unique_id
  oauth_data["identifier"]
end

#userObject



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