Jump to content

Carl Zeiss GOM Metrology

Clients
  • Joined

  • Last visited

  1.    GTAPoliceMods reacted to a post in a topic: Create federated user with REST API
  2. Okay, I found a way. I created two sql dumps before and after the "confirm your password" stuff and created a diff. I saw some entry added to 'core_login_links'. So I tried adding the entry by my own. After I create the user with a password with HTTP POST, I get the member_id back and write following directly to database: INSERT INTO `core_login_links` VALUES (<myLoginMethodId>,<member_id>,'<myExternalIDPuserid>',1,'',0,NULL,NULL,'[\"<myIDPaudience>\",\"openid\"]',NULL); This prepares the user, so he can join with my created user account, without any efforts. Maybe it is also possible to do that with REST API, but currently it is working for me.
  3. Hey, I should migrate users and posts from one forum to invision community. Therefore I prepare the topic / post migration with migrating all users before. I use REST API with HTTP POST to /core/members for that. But we do not have local users (and the new users should also not be local) but we have an oAuth integration. If I create the user without a password, the user will be mapped correctly on his first sign in to the correct user account, but is forwarded to https://my.url/settings/password/?ref=aHR0cHM6Ly90ZXN0LXF1YWxpdHlmb3J1bS56ZWlzcy5vcmcvdGCCCCCCCCCCCCXNzLW1ldHJvbG9neXXXXXX9taW5nLXNvb24v which will lead to an error message: "The page you are trying to access is not available for your account!" - I think because user is linked to oAuth and password is disabled? The user cannot move to any other site and will be always forwarded to the /settings/password/ page with the error message. If I create the user with a default password, the user will also be mapped correctly on first sign in but the user has to insert the default password to confirm the linkage. In my migration scenario: I do not want the user to get a password nor to force the user to confirm a password there. My wish is: I want to create the user accounts as finished as I can with REST, so I can migrate all posts and topics (and maybe user settings) and the user is ready to start usage of invision community without having efforts on linking or something like that. Is there a way to do so? My POST is currently like: https://my.url/api/core/members?key=<myKey>&name=<username>&email=<user_mail>&group=3&validated=1&rawProperties[joined]=<unix_timestamp_from_other_forum> Am I missing some property?
  4. Hi, I try to POST a post to invision community with an attachment with REST API. So storing the post itself with content is no problem, but how to add the attachment? I had a look for an existing post with attachment and GET it via REST and the attachment looks like: <a href="https://my.url/uploads/monthly_2024_09/myfilename.jpg" class="ipsAttachLink ipsAttachLink_image" data-fileid="35" data-fullurl="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-ipslightbox="" data-ipslightbox-group="g30231"><img data-fileid="35" src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-ratio="112.36" width="534" class="ipsImage ipsImage_thumbnailed" alt="myfilename.jpg" style="height: auto;" data-loaded="true"></a> I found a /api/downloads/files documentation and all search results here in forum also guides to this path, but I do not have the "downloads"-component and I just get: "errorMessage": "INVALID_APP" when I try to access HTTP GET https://my.url/api/downloads/files Is there anything I miss?
  5. Thank you. if(str_contains($_SERVER['REQUEST_URI'],'/api/')) { } This works nice for me.
  6. Hi folks, I am currently preparing a migration to invision community. I want to use the REST API and tried to HTTP POST few accounts. This is working fine, but the users will get an email: "An administrator has created a new account for you at <your instance>.". How can I disable this? I do not want this message while migration, especially not while API interactions. Is there a flag to disable notifications on REST actions? Or is there a way to disable specific notifications like this user creation notification in general? I saw that I can disable SMTP with \define( 'EMAIL_DEBUG_PATH', '/dev/null' ); but that's maybe a too general restriction. Best, Robin
  7. The Plugin seems to be not compatible with Invision Community v4.7.9 It would be great if you may update it. We love to use this plugin.
  8. @Nathan Explosion, thank you for the plugin - it is great!
  9. Every user who registers for our Invision instance receives a "Your registration is complete" email. We would like to disable the mail, as we have an external user management that already sends a welcome mail. The user will now receive two mails. I could not find an option in the IPS Notifications Settings. Does anyone from the community know a way to deactivate the mail for all new registrations?
  10. Since we have updated our Invision Community to 4.6.3 there is a new there is new Link in the author field to all comments of an existing user. When we hover over this we could see the profile name. Would it be possible to hide this link in the next version of this plugin? That would be great!
  11. Hello, we have an Invision Community Installation with two Front-End-Templates. Normally our default template is shown. We would like to know if it's possible to show the other template based on URL parameter? Thank you!
  12. Thank you! The way you describe works partially. The login method can be reactivated via the changed database entry, but the GUI customizations are not changed. The login mask for local users is not automatically shown again. This happens only after the method has been deactivated and reactivated via the GUI. Do further changes have to be made in the database for this?
  13. We run a self-hosted Invision community. This community is connected via an OAuth identity provider. Now we want to disable the default login method. Is there a way to turn it back on without accessing the AdminCP (e.g. in case the Identity Provider does not work anymore)? Thank you!
  14. Thank you @bfarber Do you know a (ready to use) plugin we could use here?
  15. Dear Invision Community, Due to our external identity management, we are using an "Other OAuth 2.0" Method as an identity provider. So far everything is fine. Now we would like to map custom parameters from our identity management to custom fields in Invision Community. For example: Name of field: "Country" Input: "Germany" or "United Kingdom" This filed should be updated every time a user sign in. Is it possible to get this implement? Is there a documented way or is it a customization? Thank you!