identityserver4

Identity Server 4 - Resource Owner Password Grant and Google Authentication

不想你离开。 提交于 2020-06-27 12:59:12
问题 I have an application that currently uses the resource owner password grant type to allow users to log in via a single page application. The identity server is hosted in the same project as the Web API currently. However, we would like to add the ability for a user to register / log in using their Google account. Currently, the user data is stored in tables and managed by ASP.NET Core Identity. Is there a way to have both the resource owner password grant type available in the application for

Why does my IdentityServer4 based server timeout in 30 minutes and only support SSO in the first 30 minutes?

旧时模样 提交于 2020-06-27 04:58:31
问题 I have an application system that developed based on IdentityServer4 and .NET Core 2.0. Just recently I noticed that log into the server will timeout in 30 minutes regardless of user activity. Client applications cannot launch other SSO enabled applications after the 30 minutes boundary. After 30 minutes, launching any new app will force user login. I looked at the cookies that might affect the SSO functionality, there are three: AspNetCore.Identity.Application, Identity.External and idsrv

Are wildcards allowed in IdentityServer Client Redirect Urls

两盒软妹~` 提交于 2020-06-25 16:58:18
问题 I'm running through cooking up my own test IdentityServer, but I'm hitting a snag. The ClientUri and RedirectUris must be specified for every browser based client. I know these can be stored in the DB, but is there any way to insert wildcards here? Each of our customers receive their own subdomain and I would like to simplify user management by allowing all browsers attempting to access any of our apps at *.ourcompany.com to be treated as the same client in the identity server. Is this

Are wildcards allowed in IdentityServer Client Redirect Urls

余生长醉 提交于 2020-06-25 16:57:23
问题 I'm running through cooking up my own test IdentityServer, but I'm hitting a snag. The ClientUri and RedirectUris must be specified for every browser based client. I know these can be stored in the DB, but is there any way to insert wildcards here? Each of our customers receive their own subdomain and I would like to simplify user management by allowing all browsers attempting to access any of our apps at *.ourcompany.com to be treated as the same client in the identity server. Is this

Identity server is keep showing “Showing login: User is not authenticated” in /connect/authorize/callback

混江龙づ霸主 提交于 2020-06-24 22:19:40
问题 Using IdentityServer4, I'm implementing Code flow authorization on an existing system which supports only ResourceOwnerPassword grant type in IdentityServer and works well. I got into a stage where the user is promoted to authenticate, then redirected to server connect/authorize/callback After that it is not authenticating and coming back to the login page. From the log, I got the following: Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeCallbackEndpoint for /connect

Identity server is keep showing “Showing login: User is not authenticated” in /connect/authorize/callback

China☆狼群 提交于 2020-06-24 22:19:25
问题 Using IdentityServer4, I'm implementing Code flow authorization on an existing system which supports only ResourceOwnerPassword grant type in IdentityServer and works well. I got into a stage where the user is promoted to authenticate, then redirected to server connect/authorize/callback After that it is not authenticating and coming back to the login page. From the log, I got the following: Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeCallbackEndpoint for /connect

.NET Core Identity vs IdentityServer4

泪湿孤枕 提交于 2020-06-24 08:04:55
问题 The question: Should I use .Net Core Identity or IdentityServer 4 with Identity I need to build app with login/register functionality and allow users to use APIs to import/export data from my software. I also want to have external logins like google, twitter, etc. And I'm not able to understand why would I need Identity Server when all things can be done using only Identity. Why would I need or want IdentityServer ? I just need to get work done right and as simple as possible. 回答1: It depends

Using Blazor components from a Shared Library in an ASP.NET Core Web Application (IdentityServer project)

陌路散爱 提交于 2020-06-17 22:54:21
问题 Recently I created a new Blazor Webassembly project including Authentication (Individual User Accounts) and ASP.NET Core hosted. This generated 3 projects for me, namely: Client (Blazor Webassembly), Server (where the authentication stuff resides in, using Identityserver - looks like a ASP.NET Core Web Application template using MVC / Razor) and a Shared project. I want all my components to be reused easily so I also created a Razor Class Library where my (Blazor) components reside in. In

AddInMemoryClients results in Unknown client or not enabled

独自空忆成欢 提交于 2020-06-16 16:59:17
问题 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

AddInMemoryClients results in Unknown client or not enabled

限于喜欢 提交于 2020-06-16 16:59:07
问题 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