No commit activity in last 3 years
No release in over 3 years
An RMUnify SAML strategy for OmniAuth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

OmniAuth SAML RM Unify

An RM Unify SAML strategy for OmniAuth.

https://github.com/hampei/omniauth-saml-rmunify

  • It's a simple subclass of omniauth-saml with a rm unify specific info hash.
  • Take a look at rm attributes for descriptions.
  • The attribute names have been taken from the manage-app/single-sign-on/saml-p page, underscored for your convenience.
  • Read the list of info attributes for what is available.

Requirements

Usage

See omniauth-saml for more options.

In your Rails application:

in Gemfile:

gem 'omniauth-saml-rmunify'

and in config/initializers/omniauth.rb:

RM_UNIFY_SETTINGS = {
  base_url:                       "https://sts.platform.rmunify.com",
  assertion_consumer_service_url: "https://#{app_host}/users/auth/saml_rmunify/callback",
  issuer:                         "https://#{app_host}/rmunify",
  idp_sso_target_url:             "https://sts.platform.rmunify.com/issue/saml/?binding=redirect",
  idp_cert_fingerprint:           "66:cb:2d:02:cd:81:f1:b1:03:22:6b:a0:21:cd:8e:69:0c:5e:f4:25",
  idp_slo_target_url:             'https://sts.platform.rmunify.com/issue/samlSLO/?binding=redirect'
}
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :saml_rmunify, RM_UNIFY_SETTINGS
end

In your callback:

  def saml_rmunify
    uid = request.env["omniauth.auth"].uid
    info = request.env["omniauth.auth"].info
    info.licence # {"is_trial"=>false, "is_connector"=>false, "description"=>".../premium/Pri/1y/RMUnify",
                 #  "app_name"=>"...", "package_name"=>"premium", "school_type"=>"Pri", "term"=>"1y"}
  end

Authors

Authored by Henk van der Veen.

Maintained by Henk van der Veen.

License

Copyright (c) 2014 Henk van der Veen IT.. All rights reserved. Released under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.