I am using Auth0 to create a SSO on a WordPress website as a B2C model to provide students access to private content course materials, the application that students use is Classlink.
Classlink is an educational application that provides ease of access to applications without creating accounts, more information can be found at www.classlink.com and the developer’s section is found here
I tried following the instructions in the documentation to make a connection to Classlink and it seems to be not making a proper connection.
I will show the steps I did, and hopefully with the community’s help, we can find what I am missing to complete the connection for a custom social connection.
- I filled in the required fields for the custom social extension extension for a new connection. I also used the following code.
function(accessToken, ctx, cb) {
request.get(' https://nodeapi.classlink.com/v2/my/info', {
headers: {
'Authorization': 'Bearer ' + accessToken
}
}, function(e, r, b) {
if (e) return cb(e);
if (r.statusCode !== 200)
return cb(new Error('StatusCode: ' + r.statusCode));
var profile = JSON.parse(b);
cb(null, {
user_id: profile.UserId,
family_name: profile.name_details.LastName,
given_name: profile.name_details.FirstName,
email: profile.Email
});
});
}
-
I tried the test connection but it says:
{
“error”: “access_denied”,
“error_description”: “invalid redirect url”
} -
I also followed the procedure to add the callback URL on the classlink developer’s page, along with the callback url from the dashboard. The Authorization URI send me to an error page provided in the screenshot below. Is Auth0.js required for this or no? I am reading the documentation about this step at the moment.
The test account we used on Classlink to test the connection is also provided in a screenshot, this is a Classlink student account example of adding a website to connect to with a profile.
Hopefully this will help find what we need to complete the connection with the auth0 plugin on our wordpress website.
If additional details are needed, I am happy to provide as needed.