Forum Discussion
eraserqueen
3 years agoExplorer
How can we setup a "login with Oculus" on our game's homepage?
We have an oculus game on the store that allows users to import their personal assets (picture, video, music), and a web portal for users to upload/manage those assets. We want our users to be able to login to that portal using their Oculus account.
The docs for Account Linking in the Oculus Developer dashboard reference a url to start the SSO workflow that turns out to be 404: https://auth.oculus.com/sso/?redirect_uri=https://someloginuri.com/oa&organization_id=1234567812345678
We thought that because Oculus accounts have now been merged into Facebook/Meta accounts, we may be able to use a classic FB login to authenticate our users, but this doesn't give us access to their Oculus user id, and the FB OAuth tokens are considered invalid by the Oculus Graph API.
What is the up-to-date flow to authenticate oculus users on our website using their Oculus/FB/Meta account?
Yes that's right:
- this is the link in our code: https://auth.oculus.com/sso/?redirect_uri=https://ourcompanyredirect.com/endpoint&organization_id=12345678123456
- make sure the org id is the org id, not the app id
- make sure https://ourcompanyredirect.com/endpoint is whitelisted in the SSO page
9 Replies
- eraserqueenExplorer
Ok so we had 2 issues :
- we were using AppID instead of OrgID
- we didn't had the correct url in SSO whitelist
With both these steps fixed, we now have a proper linking page.
- ioio.bz.itHonored Guest
Hello, would you be so kind to share how you solved it?
Are you calling the link from your URL and added that URL to the SSO whitelist?
Thanks- eraserqueenExplorer
Yes that's right:
- this is the link in our code: https://auth.oculus.com/sso/?redirect_uri=https://ourcompanyredirect.com/endpoint&organization_id=12345678123456
- make sure the org id is the org id, not the app id
- make sure https://ourcompanyredirect.com/endpoint is whitelisted in the SSO page
- certifiedmexican.20Honored GuestHow do I connect Oculus to game?Oculus Link Setup
Make sure your Quest is turned on and connected to your computer with your USB cable. From there, open the PC Oculus app and press 'Add a New Headset' and select either the original Oculus Quest or Quest 2. The app will then run you through an easy first-time setup process. - BaskaraAccelbyteHonored Guest
does oculus support add 'state' params to https://auth.oculus.com/sso along with 'redirect' params.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device