Skip to content

A simple library to help with setting up SAML integrations in your application.

License

Notifications You must be signed in to change notification settings

michaelginalick/saml-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version Codacy Badge Codacy Badge

SamlParser

SAML parsing tool built with ruby. SAML configurations may vary based on your specific needs however, some elements are required to get SAML working for your application. SAML is an open spec, and exchanges data via XML documents. This library will parse out the essential elements from the IDP metadata URL to assist you in getting the provider integrated into your system.

Installation

Add it to your Gemfile:

gem 'saml_parser'

Or install it manually:

gem install saml_parser

Usage

instance = SamlParse.parse("https://your-providers-metadata-link", SamlBuilder.with_all_defaults)

# Methods
instance.ok?
instance.cert_fingerprint
instance.digest
instance.domain
instance.entity_id
instance.name_id_format
instance.sso_target_url
instance.xml_document

Note you must pass an instance of a SamlBuilder object. This class uses the builder pattern allowing you to set various attributes on the object. You may also use the with_all_defaults to use all default values.

About

A simple library to help with setting up SAML integrations in your application.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages