Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
/ omniauth-vph Public archive

Omniauth Authorisation using MI-Ticket used in Atmosphere

License

Notifications You must be signed in to change notification settings

VPH-Share/omniauth-vph

Repository files navigation

Omniauth Vph

Build Status Code Climate Test Coverage Dependency Status

Use the VPH-Share ticket strategy as a middleware in your application:

use OmniAuth::Strategies::Vphticket,
  host: 'https://portal.vph-share.eu',
  roles_map: {cloudadmin: 'admin', developer: 'developer'}
  ssl_verify: true #or false if self signed cert is used

VPH-Share Ticket is required to use this strategy. It can be retrieved after successful log in into Master Interface, located in host URL.

VPH-Share security mechanism is role based. roles_map allows to map VPH-Share roles into application specific roles.

ssl_verify true/false flag is used to turn on or off ssl validation by Faraday client, while trigering ticket validation request.

The result of invoking this strategy is a object with following elements:

login
email
full_name
roles

inside roles array application specific roles are returned based on roles_map hash.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-vph'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-vph

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

About

Omniauth Authorisation using MI-Ticket used in Atmosphere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages