项目作者: tknzk

项目描述 :
SAML IdP metadata parser
高级语言: Ruby
项目地址: git://github.com/tknzk/saml_idp_metadata.git
创建时间: 2019-11-22T09:07:59Z
项目社区:https://github.com/tknzk/saml_idp_metadata

开源协议:MIT License

下载


SAML IdP Metadata Parser


CircleCI
Build Status

Parser for SAML IdP metadata

Installation

Add this line to your application’s Gemfile:

  1. gem 'saml_idp_metadata'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install saml_idp_metadata

Usage

Basic one:

  1. # validate_xmlsn
  2. xml = File.read('./idp_metadata.xml')
  3. SamlIdpMetadata::Parser.call(xml: xml).validate_xmlns
  1. # ensure_params?
  2. xml = File.read('./idp_metadata.xml')
  3. SamlIdpMetadata::Parser.call(xml: xml).ensure_params?
  1. # build_params
  2. xml = File.read('./idp_metadata.xml')
  3. SamlIdpMetadata::Parser.call(xml: xml).build_params

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tknzk/saml_idp_metadata. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the SamlIdpMetadata project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.