Skip to content

Instantly share code, notes, and snippets.

@zmajstor zmajstor/README.md
Created Feb 17, 2015

Embed
What would you like to do?
AAI@EduH authentication for Ruby on Rails apps
class Account < ActiveRecord::Base
def self.get_saml_settings
settings = OneLogin::RubySaml::Settings.new
# Example settings data for your consumer endpoint, replace this values:
settings.assertion_consumer_service_url = "https://fqdn.myserver.com/saml/acs"
settings.assertion_consumer_logout_service_url = "https://fqdn.myserver.com/saml/logout"
settings.issuer = "https://fqdn.myserver.com/saml/metadata"
# AAI@EduH IdP metadata from https://login.aaiedu.hr/sso/module.php/aggregator/?id=aaieduhr_fedlab&mimetype=application/xml
settings.idp_sso_target_url = "https://fed-lab.aaiedu.hr/sso/saml2/idp/SSOService.php"
settings.idp_slo_target_url = "https://fed-lab.aaiedu.hr/sso/saml2/idp/SingleLogoutService.php"
settings.idp_cert_fingerprint = "5a393bbbf6bcdce1877a63092b89b7202307dd82"
settings.name_identifier_format = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
settings
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.