0.0
No commit activity in last 3 years
No release in over 3 years
This gem is an OmniAuth 2.0 Strategy for the My Verified Id API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Myverifiedid

This gem provides login with MYVERIFIEDID. Following are the details to configure this gem with rails application. Feel free to contact us support@myverifiedid.com for any configuration related issues.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-oauth2'
gem 'myverifiedid', '~> 0.0.2'
------------------OR-----------------------

gem 'omniauth-oauth2'
    gem 'myverifiedid', :git => "git@github.com:didiergrossemy/myverifiedid-oauth2.git"

And then execute:

$ bundle install

Usage

Step1 : Create one initializer

config/initializers/omniauth.rb

Rails.application.config.middleware.use OmniAuth::Builder do
	provider "myverifiedid" , ENV["OAUTH_ID"], ENV["OAUTH_SECRET"], :scope => "email"
end

To get OAUTH_ID AND OAUTH_SECRET environment variables, please contact to support@myverifiedid.com
provide following details:
website url: 
and your contact details or 
open this https://myverifiedid.com/contacts snad send your request.

Step2: Add routes

In your config/routes.rb

match '/auth/:provider/callback' => 'session#create'
match 'auth/failure', to: redirect('/')

Step3: Add a link to login

<%= link_to "Login with MYVERIFIEDID", "/auth/myverifiedid" %>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request