Hi,
I am checking duplicate name validation in server function, but when clicking save button fastly server process parallel requests and enters same name in database. I know that this can be avoided setting constraints in Database, but is there any solution other than this, because when we are dealing with a huge logic validation in server this will happen and validation fails.
I am updating here for maliming
you can check it in Aspnet Role creation itself
Project Type: Angular with .netcore webapi
**Steps to do **
That is okay, consider first application passes token to second application in querystring, the first problem is we can access query string in constructor of login page, before that GetAll() and GetCurrentLoginInformations function will call so only chance is to reload login page again with new cooke value in second app. The question is "Is there any way to access token query string before it reaches constructor of that particular component"
That is okay I am receving token in second app also but where to receive the token in login page or in some other service so that it canot promp user to login again
Ok, but how can I pass and receive token in two aspnetzero application?
Hi,
I have two Applications one for Login and Another for users (Angular with Web API). User logs in with Login Application, after login they are redirected to another application where they will not be authenticated again. I tried to pass Token from Application one to the second but was not successfull. Is there any other method to acheive this? first application is login.xyz.com and second one is main.xyz.com. Is there any chance for Open Authentication? or can be solved by other simple methods? Please Help
Hi @ismcagdas
Is there any other settings by which I can communicate authentication between subdomains?
@Hi @ismcagdas,
There is no login for accounts.domain.com any users with out authentication must be redirected to login.domain.com. And if authenticated user can access accounts.domain.com.
My objective is very simple user logs in from login.domain.com if authenticated he can access subdomains like accounts.domain.com and hr.domain.com etc with out asking relogin. And if user is not logged in and types accounts.domain.com he will be redirected to login.domain.com
In MVC Application we can use cookies and can set machine key in iis for this purpose. But here the problem is UI is in angular and service is Webapi for all applications.
Is there any setting want to be enabled in Angular login application or in Angular Accounts application?
Hi @ismcagdas
no error is there. Are my configurations correct? when i logged in from login.domain.com and reached accounts.domain.com it again asks authentication. Please put the configurations example for both domain and is there any settings needed in angular application for both domains?
Application 1 (webapi and angular login project) Application 2 (webapi and angular accounts project)
@ismcagdas
yes both are AspNet Zero apps