Hello!
I would like to integrate the Roblox OAuth 2.0 Authentication into Auth0.
I already setup it:
And this is my user fetch script:
function(access_token, ctx, callback){
request({
method: 'GET',
url: 'https://apis.roblox.com/oauth/v1/userinfo',
headers: {
Authorization: 'Bearer ' + access_token
}
}, function(err, resp, body) {
if(err) {
return callback(err);
}
if(resp.statusCode !== 200) {
return callback(new Error('StatusCode:' + r.statusCode));
}
let profile = {
"sub": "1516563360",
"name": "exampleuser",
"nickname": "exampleuser",
"preferred_username": "exampleuser",
"created_at": 1584682495,
"profile": "https://www.roblox.com/users/1516563360/profile",
"picture": "https://tr.rbxcdn.com/03dc2a9abe7b1aacaaf93ea46d5c0646/150/150/AvatarHeadshot/Png"
};
callback(null, profile);
});
}
however when I test it there are 2 problems:
- Roblox says “Account selection prompt is required for this request.” but when I remove the
&prompt=login
from the url it works. URL https://authorize.roblox.com/?client_id=3035920536971400383&response_type=code&redirect_uri=https%3A%2F%2Fmerutagroup.eu.auth0.com%2Flogin%2Fcallback&scope=openid+profile&state=urOJd-vbPI5ioFJHqZzWxo-6XNca7-tj&prompt=login - When everything is done, Auth0 says:
Please help me with this, thank you so much.