Any java application for Shibboleth Authentication?

折月煮酒 提交于 2019-11-28 08:59:55

问题


I want to use shibboleth authentication for my web application. Is there any sample java application which tell how to use shibboleth authentication step by step.

I have installed shibboleth but still didn't get idea how to use it.


回答1:


I assume you have to use Service Provider

Use testshib to test your app in an easy way.

Follow the steps

  1. download and instal sp on your machine
  2. include shibboleth's configuration into your apache 2.1. into httpd.conf file add include "PATH/opt/path/etc/apache22"(if version is apache2.2, otherwise appropriate)
  3. in apache22.config file add the location you want to secure - it would be /secure bydefault
  4. in your shibboleth2.xml file (in etc folder) put your entity id(application defaults element), ex https://mywebsite.com/shibboleth - this can be anything, not neccessary a real path
  5. put entity id of your idp in sso element, in case of testshib it would be https://idp.testshib.org/idp/shibboleth
  6. in the metadata provider put idp's metadata uri to your idp's metadata urn, incase testshib it would be http://www.testshib.org/metadata/testshib-providers.xml
  7. Download your metadata from https://mywebsitehost.com/Shibboleth.sso/Metadata - here mywebsitehost would be a real host and rest path will be automatically configured by shibboleth - this path will download your sp's metadata file
  8. Upload your metadata file to testshib via register

You are ready to go. Go to https://mywebsitehost.com/secure and you should be redirected to idp to authenticate.

NOTE: Make sure you have a domain name configured with ssl(https)



来源:https://stackoverflow.com/questions/22781579/any-java-application-for-shibboleth-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!