Java SAML2 SSO clientIs Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?SSO with CAS or OAuth?How do I convert a String to an int in Java?Creating a memory leak with JavaSAML2 SSO with sun httpserver

I keep switching characters, how do I stop?

Offset in split text content

What should be the ideal length of sentences in a blog post for ease of reading?

What is the meaning of "You've never met a graph you didn't like?"

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Why do Radio Buttons not fill the entire outer circle?

If the Dominion rule using their Jem'Hadar troops, why is their life expectancy so low?

Travelling in US for more than 90 days

Sort with assumptions

Why can't I get pgrep output right to variable on bash script?

Asserting that Atheism and Theism are both faith based positions

Extract substring according to regexp with sed or grep

What can I do if I am asked to learn different programming languages very frequently?

When is the exact date for EOL of Ubuntu 14.04 LTS?

Pre-Employment Background Check With Consent For Future Checks

Highest stage count that are used one right after the other?

How can a new country break out from a developed country without war?

New Order #2: Turn My Way

Not hide and seek

How do I prevent inappropriate ads from appearing in my game?

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Why didn’t Eve recognize the little cockroach as a living organism?

Should I warn a new PhD Student?

What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?



Java SAML2 SSO client


Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?SSO with CAS or OAuth?How do I convert a String to an int in Java?Creating a memory leak with JavaSAML2 SSO with sun httpserver













0















I want to connect to a SAML2 SSO identity provider with java so that I can then connect to some web endpoints and make authenticated requests.



I looked at the Java libraries at https://github.com/onelogin but they appear to be libraries for providing SAML authentication, as opposed to connecting to SAML as a client.



Does anyone know of any Java libraries for this. With examples would be great as I am a beginner with SAML2.










share|improve this question






















  • In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

    – Bernhard Thalmayr
    Mar 7 at 12:23















0















I want to connect to a SAML2 SSO identity provider with java so that I can then connect to some web endpoints and make authenticated requests.



I looked at the Java libraries at https://github.com/onelogin but they appear to be libraries for providing SAML authentication, as opposed to connecting to SAML as a client.



Does anyone know of any Java libraries for this. With examples would be great as I am a beginner with SAML2.










share|improve this question






















  • In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

    – Bernhard Thalmayr
    Mar 7 at 12:23













0












0








0








I want to connect to a SAML2 SSO identity provider with java so that I can then connect to some web endpoints and make authenticated requests.



I looked at the Java libraries at https://github.com/onelogin but they appear to be libraries for providing SAML authentication, as opposed to connecting to SAML as a client.



Does anyone know of any Java libraries for this. With examples would be great as I am a beginner with SAML2.










share|improve this question














I want to connect to a SAML2 SSO identity provider with java so that I can then connect to some web endpoints and make authenticated requests.



I looked at the Java libraries at https://github.com/onelogin but they appear to be libraries for providing SAML authentication, as opposed to connecting to SAML as a client.



Does anyone know of any Java libraries for this. With examples would be great as I am a beginner with SAML2.







java security saml saml-2.0






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 1:20









Al GrantAl Grant

440416




440416












  • In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

    – Bernhard Thalmayr
    Mar 7 at 12:23

















  • In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

    – Bernhard Thalmayr
    Mar 7 at 12:23
















In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

– Bernhard Thalmayr
Mar 7 at 12:23





In general, handling SAML message is different from implementing a SAMLv2 compliant service provider. If you have a web app, it might be worth looking at Spring Security SAML extension. IMHO it's the most complete SAMLv2 service provider implementation.

– Bernhard Thalmayr
Mar 7 at 12:23












1 Answer
1






active

oldest

votes


















0














From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.



Spring SAML is another alternative and Lastpass has yet another alternative



You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick.



To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.






share|improve this answer























  • Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

    – Al Grant
    Mar 7 at 23:23











  • No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

    – Stefan Rasmusson
    Mar 7 at 23:58










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034633%2fjava-saml2-sso-client%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.



Spring SAML is another alternative and Lastpass has yet another alternative



You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick.



To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.






share|improve this answer























  • Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

    – Al Grant
    Mar 7 at 23:23











  • No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

    – Stefan Rasmusson
    Mar 7 at 23:58















0














From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.



Spring SAML is another alternative and Lastpass has yet another alternative



You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick.



To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.






share|improve this answer























  • Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

    – Al Grant
    Mar 7 at 23:23











  • No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

    – Stefan Rasmusson
    Mar 7 at 23:58













0












0








0







From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.



Spring SAML is another alternative and Lastpass has yet another alternative



You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick.



To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.






share|improve this answer













From what I can understand, The OneLogin lib should do what you want. It will have your Java application act as a Service Provider and make authentication requests.



Spring SAML is another alternative and Lastpass has yet another alternative



You could also do SAML on a more low level using OpenSAML, but for a simple use-case the libs above will do the trick.



To get a feel for SAML I can hint for my book, A Guide to OpenSAML. It explains SAML and how to do user authentication using OpenSAML. Again I recommend the libs above, but the book can be good to get a understanding of SAML.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 7 at 23:17









Stefan RasmussonStefan Rasmusson

4,23931643




4,23931643












  • Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

    – Al Grant
    Mar 7 at 23:23











  • No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

    – Stefan Rasmusson
    Mar 7 at 23:58

















  • Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

    – Al Grant
    Mar 7 at 23:23











  • No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

    – Stefan Rasmusson
    Mar 7 at 23:58
















Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

– Al Grant
Mar 7 at 23:23





Nice answer. I like the sound of Spring since I have used it before. Do you have a link to a example with spring.

– Al Grant
Mar 7 at 23:23













No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

– Stefan Rasmusson
Mar 7 at 23:58





No sorry, but it shouldn't be hard to find. Good luck! Please mark the answer as correct if you consider your question answered

– Stefan Rasmusson
Mar 7 at 23:58



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034633%2fjava-saml2-sso-client%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved