simplesamlphp

How do I map attributes returned by an IDP to friendly names inSimpleSAMLphp?

柔情痞子 提交于 2021-02-08 20:39:56
问题 I have successfully configured simpleSAMLphp so that it authenticates via the Test Shib IDP (https://www.testshib.org/). Test Shib returns the following attributes: urn:oid:0.9.2342.19200300.100.1.1 urn:oid:1.3.6.1.4.1.5923.1.1.1.1 urn:oid:1.3.6.1.4.1.5923.1.1.1.6 urn:oid:2.5.4.4 urn:oid:1.3.6.1.4.1.5923.1.1.1.9 urn:oid:2.5.4.42 urn:oid:1.3.6.1.4.1.5923.1.1.1.7 urn:oid:2.5.4.3 urn:oid:1.3.6.1.4.1.5923.1.1.1.10 urn:oid:2.5.4.20 I would like to map these attributes to friendly names. Can anyone

How do I map attributes returned by an IDP to friendly names inSimpleSAMLphp?

旧巷老猫 提交于 2021-02-08 20:38:29
问题 I have successfully configured simpleSAMLphp so that it authenticates via the Test Shib IDP (https://www.testshib.org/). Test Shib returns the following attributes: urn:oid:0.9.2342.19200300.100.1.1 urn:oid:1.3.6.1.4.1.5923.1.1.1.1 urn:oid:1.3.6.1.4.1.5923.1.1.1.6 urn:oid:2.5.4.4 urn:oid:1.3.6.1.4.1.5923.1.1.1.9 urn:oid:2.5.4.42 urn:oid:1.3.6.1.4.1.5923.1.1.1.7 urn:oid:2.5.4.3 urn:oid:1.3.6.1.4.1.5923.1.1.1.10 urn:oid:2.5.4.20 I would like to map these attributes to friendly names. Can anyone

SimpleSAMLPHP redirection loop

瘦欲@ 提交于 2020-07-21 07:04:12
问题 we are trying to setup sso with custom mysql database but it is going into endless loop between below two requests. POST http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php Set-Cookie PHPSESSID=d0eaabb959ffeb2a0dd20f4744945f8f; path=/; HttpOnly SimpleSAMLAuthToken=_297a91e9a4e14c61d247427063201a39587396c2e3; path=/; httponly http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php?AuthState=_e3e75218660095b936b9582356bcbc7b1e26934876%3Ahttp%3A%2F%2F192.168.0.15

Single sign on using SimpleSamlPhp wrapper on Laravel

孤人 提交于 2020-05-27 07:00:31
问题 Implementing single sign on in my laravel application. I have decided to use this plugin https://github.com/aacotroneo/laravel-saml2 which is basically a wrapper on famous SimpleSamlPhp. I downloaded the code via composer and as per given information Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php $metadata['http://laravel_url/saml/metadata'] =

Single sign on using SimpleSamlPhp wrapper on Laravel

筅森魡賤 提交于 2020-05-27 07:00:08
问题 Implementing single sign on in my laravel application. I have decided to use this plugin https://github.com/aacotroneo/laravel-saml2 which is basically a wrapper on famous SimpleSamlPhp. I downloaded the code via composer and as per given information Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php $metadata['http://laravel_url/saml/metadata'] =

How do I embed a signature within an AuthNRequest for SAML 2.0 SSO in php

浪子不回头ぞ 提交于 2020-01-07 03:24:10
问题 my IDP requires an AuthNRequest with an embedded, signed and encrypted, where the request url looks like this: http://idp.example.com/SSOService.php?SAMLRequest={val1} AuthNRequest with embedded signature (HTTP-POST binding) <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="pfx41d8ef22-e612-8c50-9960-1b16f15741b3" Version="2.0" ProviderName="SP test" IssueInstant="2014-07-16T23:52:45Z" Destination="http://idp.example

Override vendor autoload composer

微笑、不失礼 提交于 2019-12-25 01:34:27
问题 Is there a way to have an autoload file you created run before the vendor autoload is called? We seem to be running into an issue with SimpleSAML's autoload overriding one of the autoload files we created. I am new to Composer, and couldn't seem to find any solutions online. I tried including our autoload file in the file that needs it as well and that still did not work. A workaround is to just include the files explicitly, but being able to use the autoloader would be preferred. 回答1: Yes,

Implement single logout in simplesamlphp

大憨熊 提交于 2019-12-24 16:53:20
问题 This is in continuation with my previous question Central login with SAML and making site to work as identity provider Now I have sessions at cauth.com and also a.com (or b.com).What can be the best way to logout the sessions on both the site on click of "Logout" button.? This is the code I have witten for logout in cauth.com public function actionSlo(){ $metadata = \SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20

How apache know that SAML response is authenticated

这一生的挚爱 提交于 2019-12-20 06:37:08
问题 I am new to Apache and SAML. I have below configuration in my my_app_httpd.conf file which redirects un-authenticated request to OKTA which is working fine. <Location /> ErrorDocument 401 "/simplesaml/module.php/core/authenticate.php?as=default-sp" </Location> But after authentication when SAML response is received, apache doesn't understand and it redirects again for authentication on same url. This causes indefinite loop. Can anyone please tell me how can I setup apache configuration so

Quickbook Intergration Using PHP

喜夏-厌秋 提交于 2019-12-16 18:03:07
问题 I want to integrate Quickbook using php. I downloaded php coding from https://github.com/pleslie/phpaggcat/ Also i downloaded http://simplesamlphp.org/download and OAuth files. I have linked Private key and certificate . And also i have sepecified the OAUTH_CONSUMER_KEY and OAUTH_SHARED_SECRET I want to specify the SAML_IDENTITY_PROVIDER_ID I dont know where i get this PROVIDER ID. Code : define('SAML_IDENTITY_PROVIDER_ID', 'PLEASE FILL IN'); Can anyone tell, where i get this ID? 回答1: