I have a web SPA that currently connects to a Rails backend, authentication handled via auth0. We have a new server that has some endpoints that the SPA needs to connect to. What is an elegant way of authenticating against both servers considering I have auth0 implemented in the SPA and the legacy server already? Is there some way to pass the authenticated token back to the new server from the legacy server? Or do I just authenticate against both servers when logging in as a user on the SPA? The user db sits in a separate db, shared by both servers.
Using auth0 to simultaneously connect to a legacy server and a new server
49 views Asked by user3379893 At
1
There are 1 answers
Related Questions in SINGLE-PAGE-APPLICATION
- How can I using useCookie in Nuxt 3 - Laravel API directory?
- Problem loading all of the resources for a single page application from REST API using Node.js and Express.js
- Angular Reusable Component with same selector
- Lost instance of my grpc in blazor webassembly when reload page
- Dynamically add pages in AEM Remote Spa
- Back Button in Onsen UI Navigator Triggering Validation Checks
- CSRF token from the 'X-Csrftoken' HTTP header incorrect
- Issue with Uploading File to Amazon S3 Bucket: File Saved as Blank
- Ensure USER is set to a value between 10000 and 20000
- ActionController::RoutingError (No route matches [GET] "/api/v1/contacts"): Rails + React
- Possible Bootstrap 5 bug when using data-bs-toggle="collapse" and offcanvas component. Fix?
- How to setup and configure service workers for a single page application to show an offline page
- Trying to make a single page application using window.onpopstate
- How do i securly save content in an vue SPA app
- Using both SPA and Blade view pages during authentication
Related Questions in AUTH0
- Auth0 return status code 400 after on subsequent polls for request token
- Universal login page appearence changed after I integrated server part
- Using Auth0 and Prisma to capture user information
- User authentication + dynamic routing problems (Auth0 & next.js App Router)
- returning different flutter widget depending on whether user is logged in or not
- How to store secrets in a CLI application in Go?
- Auth0 Logout stopped working after angular update
- Playwright codegen: Getting site can't be reached when logging in to site using Auth0
- Auth0 Errors When Trying to Use it In Conjunction with Github Pages
- How do I deploy my app which uses auth0 with next js? It asks me to use generateStaticParams
- How to refactor common react code for a sign in redirect?
- Error 401 on Angular-NestJs page when refreshing token with Auth0
- auth0 by okta problem login in my db with laravel breeze error Invalid state
- How to do local front-end SPA development against an OIDC endpoint without localhost as a callback URL?
- Auth0 is causing my expo managed workflow EAS build to fail and I'm not sure why
Related Questions in MULTISERVER
- How to create replica set in mongoDb new version above 6.0 in windows
- How to handle Spring Websockets (stomp) with balanced multi-sever
- How to have two TCP servers in one python code
- Will res.locals work when using clusters?
- Can Spring Integration be used in Mutli Server Environment
- How to setup dynos and procfile for multi-web servers with springboot-gradle
- SQL query to multiple servers fails
- how to ensure that an email is read only once by one of the server in multiserver environment while using JavaMail API
- Two memcache server on local machine
- SQL exception which only occurs on one of the three servers
- Using auth0 to simultaneously connect to a legacy server and a new server
- Using Async and await to update Database after sending response to Client
- Apache clone domain / server
- use socketio and redis on multiple servers
- ZooKeeper Multi-Server Setup by Example
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?
Popular Tags
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)
If the credentials are stored in your database, then use an Auth0 Custom DB Connection to authenticate against Auth0 from your SPA. Auth0 has quickstart samples for all the popular SPA frameworks / libraries (angular 1.x, 2+, React.js etc). You authenticate against Auth0 (not the legacy or new server). As a result, you receive a (JWT) ID Token and a (JWT) Access Token. It is the Access Token you send from your SPA to each of of your Servers for the purpose of making Authorized requests. Your Server (legacy and new) should be secured to verify the JWT Access Token as valid and optionally check the
scopeattributes match the request endpoint. That's all that is required. The Auth0 documentation covers all this, and there are samples too that demonstrate how to set this up.