我写在这里是因为我想制作一个处理反恐精英锦标赛的应用程序。
我想在 VueJS、nodeJS 和 mongoDB 中开发这个应用程序。有没有办法我可以通过 vue js 登录 Steam 并获取用户的帐户信息?我到处搜索,但找不到任何文档。我已经让它在我的 nodeJS api 上工作,但是当涉及到会话和身份验证时,它只在我的 api url 上工作,这与我的 vue js 应用程序不同。
非常感谢。
我写在这里是因为我想制作一个处理反恐精英锦标赛的应用程序。
我想在 VueJS、nodeJS 和 mongoDB 中开发这个应用程序。有没有办法我可以通过 vue js 登录 Steam 并获取用户的帐户信息?我到处搜索,但找不到任何文档。我已经让它在我的 nodeJS api 上工作,但是当涉及到会话和身份验证时,它只在我的 api url 上工作,这与我的 vue js 应用程序不同。
非常感谢。
我不知道任何 Vue,但这里有一些 HTML。这实现了Steam官方文档中所述的登录。
<form action="https://steamcommunity.com/openid/login" method="post">
<input type="hidden" name="openid.identity"
value="http://specs.openid.net/auth/2.0/identifier_select" />
<input type="hidden" name="openid.claimed_id"
value="http://specs.openid.net/auth/2.0/identifier_select" />
<input type="hidden" name="openid.ns" value="http://specs.openid.net/auth/2.0" />
<input type="hidden" name="openid.mode" value="checkid_setup" />
<input type="hidden" name="openid.realm" value="https:\\yourOpenIdRealm.com" />
<input type="hidden" name="openid.return_to" value="https:\\YourDomainUrlToReturnTo.com" />
<Button type="submit">Log in through Steam</Button>
</form>
有没有办法我可以通过 vue js 登录 Steam 并获取用户的帐户信息?
YourDomainUrlToReturnTo
您指定用户在通过 Steam 成功登录后返回您网站的位置。