-
Couldn't load subscription status.
- Fork 472
Service provider fixes to work as expected. #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service provider fixes to work as expected. #94
Conversation
- Fixed script hash to remove JS console errors when redirecting - Fixed samlsp.New method to not overwrite m.ServiceProvider.IDPMetadata
6b4f886 to
f367785
Compare
|
@crewjam What do you think? |
|
@RichardKnop I applied your patch as I ran into the same issue as #93 and created a server using the example code in README. The patch does fix the issue and prevent the JS endless loop however, I get Is it something related to your patch or I'm missing something here? |
|
@umayr I had the same problem using www.testshib.org I have switched instead and am testing single sign on integration with www.onelogin.com Create a developer account at www.onelogin.com and there you can create Then just configure that IdP to use your service provider and it will work (works for me). I couldn't get it working with Testshib. |
|
@umayr You can also debug testshib here: https://idp.testshib.org/cgi-bin/idplog.cgi?lines=3000&logname=idp-process.log But that wasn't very helpful for me as I couldn't figure out how to fix the encryption error. So I gave up on testshib. |
35c4026 to
f367785
Compare
|
@RichardKnop i tried this lib yesterday and suffered the same issue, wished i could get here earlier |
|
👍 |
Thank you for this useful library.
This PR fixes two issues I have found out while using this library to integrate a web application with Active Directory single sign on.
The JS script hash for content security settings only include one of inline scripts. I have combined two inline scripts into one and corrected the sha256 hash.
This is the new hash:
m.ServiceProvider.IDPMetadatawould be empty. This was because the loop would assign pointer to variable from for loop to them.ServiceProvider.IDPMetadatafield during iteration wherelen(e.IDPSSODescriptors) > 0, however in subsequent iterations the pointer would be moved to empty variable without descriptiors.Please review :)