Skip to main content

All Questions

0 votes
0 answers
32 views

Not able to parse JavaScript in Identity Server 4 .Net CORE 3.1 MVC - Uncaught SyntaxError: Invalid or unexpected token

I have a .Net Core MVC Application for Identity Server 4. Inside of the Login.cshtml file I have a script tag surrounding 37k lines of a compiled function from a React application. I am trying to ...
userlkjsflkdsvm's user avatar
0 votes
2 answers
66 views

IS4 MVC with multiple APIs communication problem

I'm refactoring a monolithic ASP.NET Core MVC application. What I have so far is I added IS4 and extracted part of logic from MVC to new API. This is how I set up IS4: public static IEnumerable<...
Arthur's user avatar
  • 181
2 votes
0 answers
737 views

Skoruba IdentityServer4 admin Simple Project

I want to add an MVC project to the Skoruba template as a new client. In the Sturtup settings of the Mvc project, I did the following: sdfsdfpublic void ConfigureServices(IServiceCollection services) ...
Akbar Parhizkari's user avatar
1 vote
0 answers
648 views

Asp.net core identity custom token provider TokenLifeSpan does not work when hosted in IIS

I have an asp.net core 3.1 MVC project with IdentityServer4.AspNetIdentity 3.1.2. When a user has created, an email with a link including confirming email token is sent using worker service to the ...
Miluka De Silva's user avatar
0 votes
1 answer
481 views

How to redirect already authorized user back to the Previous page in identity server 4 .NET CORE?

Below is the code added in Auth Server and Client machine If any more info needed on this please comment. StartUp.cs -- Auth Server public void ConfigureServices(IServiceCollection services) { ...
Amit Kushwaha's user avatar
0 votes
2 answers
2k views

Error redirect when authen with IdentityServer4

After authentication in the client i get the error: Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler Message contains error: '', error_description: 'error_description is null', ...
hiimdat95's user avatar
  • 125
0 votes
1 answer
159 views

I authenticated a user from IdS4, how do I use this info in my MVC client?

I've got a user authenticated via IdS4, along with a few claims and a role, now I'm lost about what to with it. The general flow for the user is: Go to my site, log in redirects to IdS4 server. They ...
spuppett's user avatar
  • 557
2 votes
1 answer
2k views

IdentityServer4 with ASP.Net Core App : Performance issue - too slow

I have an ASP.Net Core WebApp and a separate IdentityServer4 STS app with UI running on IIS. IS4 uses PostgreSQL. User clicks login App tries to load the default page (Loading.cshtml), IS4 checks ...
Ganu's user avatar
  • 422
2 votes
1 answer
531 views

aspnet.core Seeding data using UserManager<IdentityUser>

I am trying to spin up an Identity Server instance, based on http://docs.identityserver.io/en/latest/quickstarts/8_aspnet_identity.html and using the code from https://github.com/IdentityServer/...
SamV's user avatar
  • 195
12 votes
3 answers
16k views

How do I add a custom claim to authentication cookie generated by OpenIdConnect middleware in ASP.Net Core after authentication?

I have an ASP.Net Core application project which uses IdentityServer4 Hybrid Auth Flow. It is setup as follows, public void ConfigureServices(IServiceCollection services) { services.Configure<...
Harindaka's user avatar
  • 4,838
9 votes
1 answer
4k views

IdentityServer on Azure

I'm trying to make an ASP.NET Core Web application to host IdentityServer and use it as my main authorization service, shared across many other apps. I followed the quick start tutorial that consists ...
mororo's user avatar
  • 1,104
2 votes
0 answers
1k views

How to handle third party application logout

I have an Identity server running Identity server 4. The logout code is similar to what they recommend in their sample project. [HttpPost] [ValidateAntiForgeryToken] public async Task<...
Linda Lawton - DaImTo's user avatar
2 votes
4 answers
4k views

Self hosted ASp.net core 2.2 app, The view 'Index' was not found. The following locations were searched

I am creating ASP.NET Core web application and hosting it via console. I am using IdentitySvr4 Quick Start UI and getting all the files to my project. Now when I start the server by running console ...
Simsons's user avatar
  • 12.6k
3 votes
1 answer
682 views

KeyNotFoundException: The given key 'OpenIdConnect.Code.RedirectUri' was not present in the dictionary

I am using vue cli middleware with identityserver with Hybrid Flow. On Ajax call I have redirected manually to identityprovider as below. options.Events.OnRedirectToIdentityProvider = context => ...
Anonymous Creator's user avatar
8 votes
5 answers
23k views

Exception: Correlation failed. Unknown location

After identityserver authentication when it redirects to my application, it gives Exception: Correlation failed. Unknown location Now because I am using SPA. This route is definitely not there. But ...
Anonymous Creator's user avatar

15 30 50 per page