Skip to content

gencat/decidim-module-idcat_mobil

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Decidim::IdcatMobil

User registration and login through IdCat Mòbil, an authentication method that uses OAuth 2.0 protocol. IdCat mòbil is an identity validator from VÀLid (Validador d'Identitats del Consorci AOC).

User verification via IdCat Mòbil was started but is incomplete.

Installation

Add this line to your application's Gemfile:

gem 'decidim-idcat_mobil'

And then execute:

bundle install

Usage

To use it you have to first configure the omniauth-idcat_mobil.

omniauth-idcat_mobil configuration

IdCat mòbil will be available as a configurable OAuth2 strategy. Check how to configure the strategy in Decidim's related documentation. The summary is that you have to edit your config/secrets.rb and simply enable the strategy:

  omniauth:
    idcat_mobil:
      enabled: true
      icon_path: decidim/idcat_mobil/idcat_mobil-icon.svg

Remember to set IDCAT_MOBIL_CLIENT_ID, IDCAT_MOBIL_CLIENT_SECRET and IDCAT_MOBIL_SITE_URL environment variables.

Refer to omniauth-idcat_mobil gem for further documentation.

TODO

  • User Verification development has to be finished.

Contributing

See Decidim.

Run tests

Create a dummy app in your application (if not present):

bundle exec rake decidim:generate_external_test_app

And run tests:

bundle exec rspec spec/

License

The Department d'Exteriors of Generalitat de Catalunya makes this gem available as open source under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE.

Authored by CodiTramuntana.

About

User registration, login and verification through IdCat mòbil, an authentication method that uses OAuth 2.0 protocol.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •