Skip to content
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

feat: add steam as supported oauth provider #112

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Conversation

ahmedrangel
Copy link
Contributor

@ahmedrangel ahmedrangel commented Jun 29, 2024

Unlike other providers, Steam does not offer app authentication using a clientId and clientSecret. Steam login acts as an OpenID provider but I've noticed that it doesn't require any secrets.

Due to having a flow that does not require any secrets, it does not return any tokens upon success. However, a registered API key is required to fetch the user profile data. I just added NUXT_OAUTH_STEAM_API_KEY for it.

Logged in

image

Full user profile response example

{
  "steamid": "76561198194797527",
  "communityvisibilitystate": 3,
  "profilestate": 1,
  "personaname": "Ahmed",
  "profileurl": "https://steamcommunity.com/id/ahmedrangel/",
  "avatar": "https://avatars.steamstatic.com/13074d1889568798d956cab9266071d6a7721de6.jpg",
  "avatarmedium": "https://avatars.steamstatic.com/13074d1889568798d956cab9266071d6a7721de6_medium.jpg",
  "avatarfull": "https://avatars.steamstatic.com/13074d1889568798d956cab9266071d6a7721de6_full.jpg",
  "avatarhash": "13074d1889568798d956cab9266071d6a7721de6",
  "lastlogoff": 1719574140,
  "personastate": 1,
  "primaryclanid": "103582791429521408",
  "timecreated": 1430617727,
  "personastateflags": 0,
  "loccountrycode": "PA",
  "locstatecode": "08",
  "loccityid": 31125
}

@atinux atinux merged commit c8b02d0 into atinux:main Jul 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants