I have a site that's has got 2 open source programs installed. Elgg and Osclass. Both are great, but the problem is they each have their own database and therefore users must register a seperate account on each site. Is their any way to link the two databases (on cpanel) so that an account created on one will automatically be created on the other as well.
How to connect two databases?
242 Views Asked by Pete B At
2
There are 2 best solutions below
2
Nacho Pavon
On
You can use SAML (simplesamlphp) to get a Single Sign On service to start a session on both platforms with the same users. There are plugins for elgg to do this (https://elgg.org/plugins/1939508) and it shouldn be difficult to get it to work in osClass.
Related Questions in DATABASE
- How to add the dynamic new rows from my registration form in my database?
- How to store a date/time in sqlite (or something similar to a date)
- Problem with add new attribute in table with BOTO3 on python
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- SQLAlchemy: efficient relationship loading in 3-way many-to-many relationship
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Local or remote database with react-native?
- I want to edit a specific row in database
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- Open Web Library
- database login.py and register.py error showing 404 file not found and doesn't work
- SQL71561: SqlComputedColumn: When column selected
- Liquibase as SaaS To Configure Multiple Database as Dynamic
- Updated max input vars but table still shows error
- Spring does not map set of roles
Related Questions in CPANEL
- Cpanel filter encoding utf-8?
- How to setup SES SMTP in WHM cPanel shared hosting
- Nextjs App works with Host File IP, return 400 Bad Request with Domain
- i have my cpanel login of my website. how can i change hosting through cpanel?
- NodeJS running on cpanel
- How to kill number of processes in cpanel
- Publishing an SSR app w/ Angular 17 on a cPanel is possible, right?
- After pointing Cpanel domain to Shopify, I am not able to either Receive or Send Emails
- NodeJS server and client on Cpanel Not Working
- Image is not displayed/loaded in my django website which i deployed on Cpanel
- Cpanel Deployment getting Cannot GET / error React Next js
- React/nodejs Cpanel project - frontend won't connect to backend
- Move BitBucket repository to cPanel
- Is it possible to reject non secured (non ssl / wss) websockets with socket.io?
- External Email html blocked in script php if HTML
Related Questions in ELGG
- elgg installation with xampp
- How to override Elgg's user icon upload action
- How to upload an image in Elgg
- Class Google_client not found on the server, but on localhost it's ok
- How to create automated blog post on elgg
- Change friendly time format in Elgg
- Elgg: Is it possible to Order an array by a separate variables order_by
- Elgg and the utilization of Relationship_created_time_lower
- How do I use function elgg_view_input()?
- What is wrong with my 'Save File' php code?
- PHP foreach not saving all data from JSON
- Elgg install error: Your server does not support automatic testing of the rewrite rules and your browser does not support checking via JavaScript
- How to connect two databases?
- Getting exception in browser with elgg on Ubuntu 16.04
- Migrating from Elgg to custom developed application
Related Questions in OSCLASS
- More Than One H1 Tag Error on Osclass Website
- What can i do to fix Undefined array key 0 without adding @ to suppres the error
- changing url in osclass
- Make deactivated listings visible in Osclass
- htaccess replace a character with another character
- osclass showing category instead of item title
- Display specific ads on first page Osclass
- Submit a Form to Custom Route in osclass
- How to change user fields programmatically in Osclass?
- How come my twig code does not render the template in my views file?
- Console error in google "Uncaught TypeError: Cannot read property 'style' of null"
- hide index.php from ajax load search in osclass
- How to change search limit of three characters in osclass
- Getting Error-500 Error-524 -after loging to Osclass oc-admin panel
- Slow OSClass based website issue since osclass.org is down?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since they are open source, you can modify their source-code. So you will need to do the following things:
Write your own function which takes an Elgg user as an argument and creates an OsClass user for it. func1
Write your own function which takes an OsClass user and creates an Elgg user for it. func2
Write your own function which takes an existing Elgg user and finds the corresponding OsClass user. func3
Write your own function which takes and existing OsClass user and finds the corresponding Elgg user for it. func4
Modify Elgg to make sure that func1 is called just after an Elgg user was successfully created.
Modify OsClass to make sure that func2 is called just after an OsClass user was successfully created.
Make sure that whenever a user is removed, you call either func3 or func4, to get the corresponding user from the other database and remove that user.