Jump to content

NevC

Clients
  • Posts

    13
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by NevC

  1. @Stuart Silvester kindly note that this issue is high priority for since a number of users cannot log into forum because of this. Any updates please?
  2. @Stuart Silvester Kindly let us know when you have updates regarding the above please. Thanks.
  3. Thanks for your reply Stuart. Yes we are sending 'User-Agent': 'auth0-action-populate-forum-user-data'
  4. Hi Developer Team, On our production forum user login, we have an Auth0 post login flow to get user details from Forum through the GET core/members. This is the code for the Populate forum user data on login: * Handler that will be called during the execution of a PostLogin flow. * * @param {Event} event - Details about the user and the context in which they are logging in. * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. */ const axios = require("axios"); exports.onExecutePostLogin = async (event, api) => { const namespace = '<CG API URL>'; const forumURL = 'https://forum.casinogrounds.com'; api.accessToken.setCustomClaim(`${namespace}/avatar`, event.user.picture); api.accessToken.setCustomClaim(`${namespace}/email`, event.user.email); api.accessToken.setCustomClaim(`${namespace}/username`, event.user.username); const url = `${forumURL}/api/core/members?key=${event.secrets.forumApiKey}&email=${encodeURIComponent(event.user.email)}`; // console.log('url: ', url); const forumUserData = await axios.get(url, { headers: { 'User-Agent': 'auth0-action-populate-forum-user-data', } }); if (forumUserData.status === 200 && forumUserData.data.results && forumUserData.data.results.length > 0 && forumUserData.data.results[0].email === event.user.email) { api.accessToken.setCustomClaim(`${namespace}/forum_user_profile_url`, forumUserData.data.results[0].profileUrl); api.accessToken.setCustomClaim(`${namespace}/forum_user_photo_url`, forumUserData.data.results[0].photoUrl); api.accessToken.setCustomClaim(`${namespace}/forum_user_name`, forumUserData.data.results[0].name); } }; From Auth0, we are receiving a 403 status error from Forum but on the REST API logs I am only seeing 200, 201 and 404 errors. The error from Auth0 is the following: { "action_name":"Populate forum user data on login", "response":{ "error":{ "code":"ERR_BAD_REQUEST", "message":"Request failed with status code 403", "name":"AxiosError", "stack":"AxiosError: Request failed with status code 403\n at settle (/data/layers/layers-zfDn/zfDngH1yU51TNG8pkEdFfEpUsA11xFgdd1aUUCXYbl8/node_modules/axios/dist/node/axios.cjs:1900:12)\n at IncomingMessage.handleStreamEnd (/data/layers/layers-zfDn/zfDngH1yU51TNG8pkEdFfEpUsA11xFgdd1aUUCXYbl8/node_modules/axios/dist/node/axios.cjs:2952:11)\n at IncomingMessage.emit (node:events:539:35)\n at IncomingMessage.emit (node:domain:537:15)\n at endReadableNT (node:internal/streams/readable:1345:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)" }, "stats":{ "total_request_duration_ms":102, "total_runtime_execution_duration_ms":99, "runtime_processing_duration_ms":5, "action_duration_ms":94, "boot_duration_ms":5, "network_duration_ms":3 } }, "error":{ "id":"invalid_argument", "msg":"Invalid Argument" }, "started_at":"2023-03-19T14:39:38.639568081Z", "ended_at":"2023-03-19T14:39:38.742165298Z" } In the above the key is the following "error":{ "id":"invalid_argument", "msg":"Invalid Argument" }, But since the status is 403 not 400, kindly could you please let us know what is missing or not done correctly please? Thanks and regards, Neville Camilleri Casinogrounds
  5. Dear Invision Community Support team, Kindly could you please let me know from where the logo url can be changed from the forum's main url please? Also another note, kindly could you please enable the REST API keys (As per attached image) on our forum-valletta and forum environments please? Thanks and regards, Neville Camilleri
  6. Hi Marc, Thanks for your help. I have checked and there does not seem to be any custom development related to this. I have enabled the standard method for login/registration from admin CP. The issue we are having is that if the user registers without an email on a third party platform before he was asked for an email whereas with the cloud hosted solution we get error 500 'An error has occurred'. The functionality we require is that when the unique id is missing, Forum specifically asks the user to be registered for the unique id, which in our case is the email. Thanks again. Neville
  7. Hi Marc, I am referring to when the user comes as a registered user from a 3rd party social platform and going to be registered on the hosted forum. The use-case I am referring to is when a user does not have an email address in the registration info that is passed from the social platform to forum. It is an empty string. On the self-hosted forum if a user is registered without an email, forum would ask the user to enter an email to be registered as a new user on Forum. If the user cancels without entering an email, registration on forum does not happen. On the Invision hosted Forum, there is an HTTP error 500 saying 'An error has occurred.' and user registration does not happen. We would like to have the self-hosted forum functionality on the Invision hosted forum please. Thanks, Neville
  8. Hi, As you know we are in the process of moving to the hosted forum from our self-hosted forum. On the latter we have a functionality that when the registered user is registered on a third party social platform without an email, the forum asks for it to continue with the Forum registration process: If this step is cancelled, the forum registration is cancelled. On the hosted forum registration from. a third party social platform without an email address is giving the following screen on the forum with an HTTP error 500: We are currently using Auth0 as our authentication provider and this a typical raw JSON that would be supplied to Forum upon user registration when an email is not present: How could we have the previous forum functionality (asking the user for an email address if not present) to be enabled on the hosted forum please? Thanks and regards, Neville Camilleri Casinogrounds
  9. The issue was with our theme, we put the standard theme and the issue resolved.
  10. I see that our plugins are currently disabled. Still there is the error though.
  11. I am getting "The CSRF protection key did not match. This may indicate a plugin or theme is out of date. Please contact technical support for more information." when I try to logout. I end up still logged in. Any ideas please? Thanks, Neville
×
×
  • Create New...