I have an IDP server implemented by Duende IdentityServer assume which is hosted on idp.com and there are two separate ReactJS applications hosted on app.mysite.com and profile.mysite.com and they are using JWT token for authentication and authorization process. now when I login into app.mysite.com through idp.com profile.mysite.com is un unauthenticated and needs another login. I use the same client configuration for both of these sites. I know there are some methods such as using an IFRAME inside client code to share the JWT token between these two app but I am looking for a built-in approach inside the Identity server to solve this issue?
How to Authenticate two subdomain by one login in IdentityServer?
1k Views Asked by Navid_pdp11 At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in AUTHENTICATION
- Access roles from multiple applications
- Different storyboard's entry points depending on a parameter
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- sendxmpp not authorized failure (Error AuthSend)
- Retrieve user information from Active Directory on login
- Log in through active directory
- Ember.js REST Auth Headers
- Validate Deezer access token on server
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- Laravel - session data survives log-out/log-in, even for different users
- How can I share Azure Active Directory authentication between server side and client script?
- django rest framework - token authentication logout
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- How to delete user from _User through Parse REST API
- Cannot login with new SQL User - SQL 2014
Related Questions in IDENTITYSERVER4
- Role based Authorization on WebApi Controllers in IdentityServer4?
- No storage mechanism for grants specified. Use the 'AddInMemoryStores' extension method to register a development version
- How to implement Windows Authentication with IdentityServer 4
- Identity Server Difference between IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentity
- Storage of OAuth access tokens in Javascript clients (e.g. Angular)
- Client registration and login page with Identity server 4
- Google Auth not returning a consistent ID with IdentityServer4
- IdentityServer4 RequireConsent true hangs
- Get current user name in IdentityServer4 & ASP.net Core
- Protecting .NET framework 4.x web API with Identity server 4 in
- Sharing of JWT Tokens
- Can I use IdentityServer4 spa JS UI instead of asp .net core mvc?
- Does IdentityServer4 have API to validate an access token?
- IdentityServer4 IdentityServer3.AccessTokenValidation
- How to get id_token along with access_token from identityserver4 via "password" grant_type?
Related Questions in DUENDE-IDENTITY-SERVER
- Do I need cookies
- Duende Identity Server 4 doesn't redirect back to the React client at the end of sign in workflow
- ASP.NET Core 8 and Duende Identity Server Authentication Schemes (OpenIdConnect, Cookies, JWT)
- How to login in Duende IdentityServer from Android mobile app
- Duende Identity Server v6 throwing "WindowsCryptographicException: Key does not exist"
- Duende Identity server encrypted email
- Can we use/upgrade Duende Identity server for the .NET Framework applications (4.8/4.7 or below)?
- Communication between two Docker containers failing due to SSL Certificate
- Unable to resolve service for type 'Duende.IdentityServer.Stores.IClientStore'
- Stream authorized video from azure media service with duende identity server
- How to Authenticate two subdomain by one login in IdentityServer?
- Duende.IdentityServer v6 > Custom IProfileService implementation does not read IssuedClaims from database after migrating from IdentityServer4
- Duende Identity Server- Why I get an error ArgumentNullException after accepting consents (only on deployed .Net 6)?
- Invalid redirect_uri in Duende Identity server 6
- Claims added from Profile service not included in asp.net core 6 Identity with Duende Identity Server
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 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?
First of all, if you have 2 CLIENTS, you should configure 2 separate configurations for both of them.
Afer separation of clients you should rely on cookie set on
idp.comafter first authentication. (Good to know - How to setup cookie authentication basic cookie authentication: https://learn.microsoft.com/pl-pl/aspnet/core/security/authentication/cookie?view=aspnetcore-6.0)Anyway, if you configured IdentityServer properly, it handles cookie authentication "out-of-the-box" - so probably the only thing you have to do is to Signin the user.
When the youser want to login to second application, after start of the flow (eg. code flow) and redirect to the
idp.com,idp.comknows that the user is already signed-in (cookie) and should immediately generate token and redirect back to the return url.If you need you can adjust custom behaviours using
IProfileService.