Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign in through Steam with Java [closed]

I want to use STEAM-LOGIN in my JSF2 web application. I found this in Steam Web API documentation:

"Steam can act as an OpenID provider. This allows your application to authenticate a user's SteamID without requiring them to enter their Steam username or password on your site (which would be a violation of the API Terms of Use.) Just download an OpenID library for your language and platform of choice and use http://steamcommunity.com/openid as the provider. The returned Claimed ID will contain the user's 64-bit SteamID. The Claimed ID format is: http://steamcommunity.com/openid/id/"

Here are my questions:

  • There are several OpenID libraries for Java, which one should I use?
  • I have no idea how to implement redirection to Steam login page and back to my page

I found some examples for PHP but nothing for Java.

like image 295
RueKow Avatar asked Sep 26 '15 13:09

RueKow


1 Answers

You can use pac4j. It has openid connect support.

They also have several implementations that they offer here.

You can see here an example of pac4j's j2e implementation.

like image 115
Andrei Sfat Avatar answered Nov 11 '22 11:11

Andrei Sfat