identityserver4

AddInMemoryClients results in Unknown client or not enabled

我怕爱的太早我们不能终老 提交于 2020-06-16 16:57:18
问题 I'm trying to get Identity server 4 to work in an ASP Net Core 3 application with an Angular 8 SPA using "oidc-client": "1.10.1" . If I add the following to my appsettings.json "IdentityServer": { "Key": { "Type": "File", "FilePath": "acertificate.pfx", "Password": "notmyrealpassword..orisit?" }, "Clients": { "dev-client": { "Profile": "IdentityServerSPA", } } } Using this client: { authority: 'https://localhost:5001/', client_id: 'dev-client', redirect_uri: 'http://localhost:4200/auth

ASP.NET Core Web API client does not trust self-signed certificate used by the Identity Server instance

故事扮演 提交于 2020-06-12 08:50:54
问题 This is a follow up of this question. I have generated and trusted a self-signed certificate using the following script: #create a SAN cert for both host.docker.internal and localhost #$cert = New-SelfSignedCertificate -DnsName "host.docker.internal", "localhost" -CertStoreLocation "cert:\LocalMachine\Root" # does not work: New-SelfSignedCertificate : A new certificate can only be installed into MY store. $cert = New-SelfSignedCertificate -DnsName "host.docker.internal", "localhost"

Unauthorised client when requesting for token using IdentityServer4 .NET Core 3.1

﹥>﹥吖頭↗ 提交于 2020-06-01 07:39:29
问题 I'm trying to get IdentityServer4 to work but unfortunately no luck. I'll explain the issue in more detail. I'm using IdentityServer4 and also .NET core Identity. I have a .net core mvc application which has login page. You basically login with username and password. When you login I need to generate jwt token I'm doing this using the following code: [HttpGet] public async Task<IActionResult> GetClientToken(string clientId, string clientSecret, string grantType, string scope, string username,

Validate Identity Server token in NodeJS API

人走茶凉 提交于 2020-06-01 06:03:12
问题 I have a token that it has been issued by Identity Server (IDP) and then have a NodeJS application and I want to validate that token in NodeJS API? I'm trying to use jose (based on this) but I did not know how to use it. Is it possible to do it? NOTE: In my ASP NET CORE API , here that is as a client I have to only add the following command in startup class to validate my API ? services.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme)

IdentityServer4 SPA Login

随声附和 提交于 2020-06-01 04:48:26
问题 I want to create an SPA, and Login Via my custom Login Screen (Frontend is in React&Redux), but i miserably fail at it. So basically i´ll get an 404 Error returned, when using const username = 'bob' const password = 'bob' const returnUrl = 'https://localhost:5001/' fetch('https://localhost:5000/api/Authenticate/Login', { method: 'POST', headers: { 'Content-Type': 'application/json', }, credentials: 'include', body: JSON.stringify({ username, password, returnUrl, }), the response I get is

IdentityServer4 SPA Login

非 Y 不嫁゛ 提交于 2020-06-01 04:48:25
问题 I want to create an SPA, and Login Via my custom Login Screen (Frontend is in React&Redux), but i miserably fail at it. So basically i´ll get an 404 Error returned, when using const username = 'bob' const password = 'bob' const returnUrl = 'https://localhost:5001/' fetch('https://localhost:5000/api/Authenticate/Login', { method: 'POST', headers: { 'Content-Type': 'application/json', }, credentials: 'include', body: JSON.stringify({ username, password, returnUrl, }), the response I get is

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

我只是一个虾纸丫 提交于 2020-05-25 19:58:30
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

一个人想着一个人 提交于 2020-05-25 19:58:21
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

不想你离开。 提交于 2020-05-25 19:58:11
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

Why IdentityServer4 provide/send-back different cookie for each clients?

久未见 提交于 2020-05-17 06:26:10
问题 I have two mvc client application mvc_client1 and mvc_client2 . When I logged into mvc_client1 and click the menu to launch mvc_client2 automatically authenticate and open authorized page as per IdentityServer4 documentation. But, if I trigger logout from any of the client only logout the client which I requested the logout. I have already read documentation and implemented Back-Channel-Logout . Even though single sign-out not working as documented. I noticed something that, Identity server