Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decidim-ub

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decidim-ub

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Decidim::Ub

Gem Version [CI] Lint [CI] Test Maintainability Coverage Status

A Decidim module to sync users from Universitat de Barcelona who connect to the platform.

Installation

Add this line to your application's Gemfile:

gem "decidim-ub"

And then execute:

bundle
bundle exec rails decidim_ub:install:migrations
bundle exec rails db:migrate

Configuration

You need to configure some environment variables for the OAuth client:

ENVDescriptionExampleDefault
UB_CLIENT_IDThe OAuth2 client IDyour-client-id
UB_CLIENT_SECRETThe OAuth2 client secretyour-client-secret
UB_SITEThe OAuth2 sitehttps://example.org/oauth
UB_AUTHORIZE_URLThe path for the authorization URL/authorize
UB_TOKEN_URLThe path for the token URL/token
UB_ICONThe path for the icon shown in the buttonmedia/images/my_icon.svgmedia/images/ub_logo.svg

If you set the variables you don't see the OAuth button in the organization, you will need to create an initializer to configure this module. Just create a file in config/initializers/decidim_ub.rb with the content below:

Decidim::Ub.configure do |config|
  config.omniauth = {
    enabled: ENV["UB_CLIENT_ID"].present?,
    icon_path: ENV.fetch("UB_ICON", "media/images/ub_logo.svg"),
    client_id: ENV["UB_CLIENT_ID"].presence,
    client_secret: ENV["UB_CLIENT_SECRET"].presence,
    site: ENV["UB_SITE"].presence,
    authorize_url: ENV["UB_AUTHORIZE_URL"].presence,
    token_url: ENV["UB_TOKEN_URL"].presence
  }
end

Contributing

Contributions are welcome !

We expect the contributions to follow the Decidim's contribution guide.

Security

Security is very important to us. If you have any issue regarding security, please disclose the information responsibly by sending an email to francisco.bolivar [at] nazaries [dot] com and not by creating a Github issue.

License

This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.

FAQs

Package last updated on 12 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc