Which database is best suited for making authenticated cross-domain JSON calls?

I have a vision to develop a userscript that can decrypt encrypted text depending on the user who created the text. To achieve this, I am looking to implement a database within the browser to store and retrieve decryption keys.

Imagine if Twitter user A wants to receive encrypted posts from Twitter user B. The userscript will prompt user A to authenticate in order to access the decryption keys stored in the database. Upon confirming that the post is from user B, the userscript will call upon the database to provide the necessary decryption keys for user B.

The ideal database should:

1. Require authentication for accessing user's keys
2. Come with a JavaScript API for easier integration
3. Be able to transmit decryption keys in JSONP format for cross-domain compatibility
4. Offer a sharing feature so that user A can share decryption keys with user B upon request

Do you know of any open-source databases that meet these criteria?

Answer №1

My current project focuses on implementing cross domain authentication within a complex system, enabling users to seamlessly maintain their login status across interconnected localized websites. As noted by Quassnoi, the challenge lies beyond database operations.

Personally, I have chosen to utilize .NET and Javascript for this task. The websites store data in XML format for localization purposes, with SQL serving as the centralized user database for universal access: storage and retrieval from any location. A quick search yields valuable resources: https://www.google.dk/search?q=asp.net+cross+domain+authentication

The versatility of .NET facilitates the creation of a customized webservice to handle encryption, decryption, and data transmission efficiently.

In terms of database options, obtaining a managed hosting account that supports MS SQL can be affordable, costing as little as $4 per month. Alternatively, opting for MySql along with a data connector can achieve similar functionality while saving on expenses.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

In right-to-left mode, two items in Owl Carousel vanish while dragging or touching

When using owl carousel 2 with the RTL option, I encountered an issue where the carousel disappears when dragging/touching the last item (5 or 6 slides to the right, it disappears). I prefer not to use the loop option to workaround this. How can I resolve ...

The usage of the "this" keyword in a function call is not

When I try to call a local function using the this pointer, I encounter an error message stating 'Uncaught TypeError: undefined is not a function'. The issue arises on line this.createtimetable(); within the loadtimetable function. The relevant ...

Perform an Ajax POST request to a PHP script

Currently, I am facing a dilemma regarding how to post data from 9 checkboxes to my php script. I came across the following code: $.ajax({ type: "POST", url: "check.php", data: data, success: success, dataType: dataType }); However, I am unsure ...

Remove the post by utilizing the $.ajax function

I am just starting out with using $.ajax and I'm not very familiar with it. I have a button that is meant to delete a user post based on the article ID provided. <button type="button" onclick="submitdata();">Delete</button> When this but ...

Connecting to a specific mui-tab with react-router-dom

How can I link to a specific tab in my material ui-based tabs setup within a React application? I want to be able to navigate directly to a particular tab when landing on the page, but I'm struggling with integrating this functionality. Is there a way ...

Issue with rendering HTML in React child component

Using React 16, I am facing an issue while trying to create a child component in my project. The inner HTML of the child component does not render, but the component tag can be viewed using the dev tools. The code for my child component is as follows: im ...

Validating in Angular cannot be accomplished

I am facing an issue with validating my input against JSON data. Every time I try to compare it with the JSON, only the else block gets executed. Can someone please help me resolve this problem? <body ng-app="fileGetting" ng-controller="loadFile"> ...

Switch Button Hyperlink in HTML/CSS

I have the following code: document.addEventListener("DOMContentLoaded", function(event) { (function() { requestAnimationFrame(function() { var banner; banner = document.querySelector('.exponea-banner3'); banner.classList ...

Encountered an uncaughtException in Node.js and mongoDB: User model cannot be overwritten once compiled

Currently, I am utilizing this import statement const User = require("./Usermodel")' However, I would like to modify it to const User = require("./UserModel") Despite my efforts to align the spelling of the import with my other i ...

Handling Removal of Selected Option in React Material-UI Autocomplete Single Selection

I am currently using material UI autocomplete to create a single-select dropdown. However, I have encountered an issue wherein the onChange event does not get triggered when I click the close button on the right side of the input. This prevents my state fr ...

Stop files from being downloaded every time the page is visited

Within my Vue.js application, there is an animation that appears on a specific page. However, each time I visit that page, the assets for the animation are re-downloaded from scratch. Although the app does get destroyed when leaving the page, using v-show ...

Create a dynamic div element using Jquery that is generated based on text input

I am attempting to dynamically insert a div based on the text within the parent container. My HTML structure is as follows: <div class="listing_detail col-md-4"><strong>Living Room:</strong> Yes</div> <div class="listing_detail ...

Troubleshooting Issue with PUT Request in React Front-End Application with Axios Implementation

Currently, I am working on a MERN exercise tracker project that I found online. The backend is functioning perfectly with all CRUD operations working smoothly. However, I have run into an issue with the React frontend when trying to edit or update data. Th ...

When a click event triggers, use the .get() method in jQuery to retrieve the content of a page and then update

I am currently facing an issue with a div class="contentBlock", which is acting as the container for updating content. <div class="contentBlock"></div> Unfortunately, the script I have written does not seem to be working properly :c $(docume ...

Why do Material UI components fail to render in jsdom while using Jest?

During my UI testing using Jest/React Testing Library, I encountered a peculiar issue. In one of my components, the return statement is structured as follows: const sidebarContentUp = ( <Drawer anchor="left" onClose={onMobileC ...

The addition of days is producing an incorrect result

When extracting the date from FullCalendar and attempting to edit it, I noticed that moment.js seems to overwrite all previously saved dates. Here is an example of what's happening: var date_start = $calendar.fullCalendar('getView').start.t ...

What is the best way to retrieve values from a JSON object without knowing the specific key?

Given the JSON object below, I am looking to extract specific values using JavaScript in my browser's dev console. However, I am not sure how to loop through an array of arrays. Can anyone provide guidance on achieving this task? var infoJSON; for(ke ...

Learn how to upload an image from Express.js to Google Cloud Storage or Firebase Storage

Currently, I am delving into the world of ExpressJS and attempting to upload an image to Firebase storage using Node. However, I encountered the error message: firebase.storage().ref() is not a function. After researching this issue, I stumbled upon this ...

Using jQuery to revert back to the original SRC after mouse is not hovering over an element

I've been working on a script to change the src attribute for an icon. The icon I'm loading is a different color and it's meant to notify the user about the link associated with it. Currently, I have the src changing to the second icon on h ...

Strategies for monitoring for state changes in Angular 4/6

I am currently working on designing a webpage for account information. This web page will have 4 pre-filled fields - given name, family name, username, and email. There will also be a common save button at the bottom of the form. Users should be able to ch ...