Socket
Book a DemoInstallSign in
Socket

exvo_notifications

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exvo_notifications

0.3.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

EXVO_NOTIFICATIONS

It's gem to maintain connection between Exvo-Store and widget app (Calculator, Word Clocks, etc...)

Flow: On widget site: After user has been logged in via Exvo-Auth, his privilages (does he has access to given widget) has to be checked. If user has access than he is allowed to watch the content, if not he is redirected to Store app.

Additionally Store send request to each widget if something change with user's privilages => this gem maintain those requests (notifications_controller)

INSTALLATION & REQUIRMENTS

  • Set GEMFILE

gem "exvo_notifications"

  • Generate migration: rails g exvo_notifications

Migration add field "plan" to table User, so it has to exist in database !!
This genearator append also "not_working.html" into /public

  • Migrate db: rake db:migrate

  • Include Controller helpers

include ExvoNotifications::Controllers::Access

it appends method check_access

this method requires current_user helper !!

  • Set before filter in controller

before_filter :check_access

  • Credentials / requirments:

ENV['EXVO_STORE_CLIENT_ID'] must be set (check_access require it) protect_from_forgery should be removed

FAQs

Package last updated on 13 Mar 2012

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.