identityserver4

RedirectToAction starts new session

≡放荡痞女 提交于 2021-02-10 07:56:21
问题 I have a controller which logins in my user. Assuming its an existing user and the password is correct i check if they have 2fa enabled. AccountControler login method public async Task<IActionResult> Login(LoginViewModel model, string returnUrl = null) { ViewData["ReturnUrl"] = returnUrl; if (ModelState.IsValid) { // This doesn't count login failures towards account lockout // To enable password failures to trigger account lockout, set lockoutOnFailure: true var result = await _signInManager

Change IdentityServer4 Entity Framework table names

痞子三分冷 提交于 2021-02-08 18:49:39
问题 I am trying to change the default table names created by the PersistedGrantDb and ConfigurationDb for IdentityServer4 and have Entity Framework generate the correct SQL. For example; instead of the using the entity IdentityServer4.EntityFramework.Entities.ApiResource using the table ApiResources , I want the data to be mapped into a table named mytesttable According to the documentation this should be as simple as adding ToTable invocations for each entity that I want to remap in the

Change IdentityServer4 Entity Framework table names

走远了吗. 提交于 2021-02-08 18:46:01
问题 I am trying to change the default table names created by the PersistedGrantDb and ConfigurationDb for IdentityServer4 and have Entity Framework generate the correct SQL. For example; instead of the using the entity IdentityServer4.EntityFramework.Entities.ApiResource using the table ApiResources , I want the data to be mapped into a table named mytesttable According to the documentation this should be as simple as adding ToTable invocations for each entity that I want to remap in the

Change IdentityServer4 Entity Framework table names

蓝咒 提交于 2021-02-08 18:40:22
问题 I am trying to change the default table names created by the PersistedGrantDb and ConfigurationDb for IdentityServer4 and have Entity Framework generate the correct SQL. For example; instead of the using the entity IdentityServer4.EntityFramework.Entities.ApiResource using the table ApiResources , I want the data to be mapped into a table named mytesttable According to the documentation this should be as simple as adding ToTable invocations for each entity that I want to remap in the

Change IdentityServer4 Entity Framework table names

∥☆過路亽.° 提交于 2021-02-08 18:37:27
问题 I am trying to change the default table names created by the PersistedGrantDb and ConfigurationDb for IdentityServer4 and have Entity Framework generate the correct SQL. For example; instead of the using the entity IdentityServer4.EntityFramework.Entities.ApiResource using the table ApiResources , I want the data to be mapped into a table named mytesttable According to the documentation this should be as simple as adding ToTable invocations for each entity that I want to remap in the

Change IdentityServer4 Entity Framework table names

孤人 提交于 2021-02-08 18:32:32
问题 I am trying to change the default table names created by the PersistedGrantDb and ConfigurationDb for IdentityServer4 and have Entity Framework generate the correct SQL. For example; instead of the using the entity IdentityServer4.EntityFramework.Entities.ApiResource using the table ApiResources , I want the data to be mapped into a table named mytesttable According to the documentation this should be as simple as adding ToTable invocations for each entity that I want to remap in the

Identity Server: Add claims to access token in hybrid flow in MVC client

早过忘川 提交于 2021-02-08 13:28:12
问题 I've read the docs and followed the examples but I am unable to get user claims into the access token. My client is not ASP.NET core, so the configuration of the MVC client is not the same as the v4 samples. Unless I have misunderstood the docs, the ApiResources are used to populate the RequestedClaimTypes in the profile service when creating the access token. The client should add the api resource to it's list of scopes to include associated userclaims. In my case they are not being

Missing “aud” claim in access token

Deadly 提交于 2021-02-08 03:01:31
问题 For unknown reason to me the "aud" claim is not present in access token (it is present in id token though). Once access token is being sent to the API i get the following error: Bearer was not authenticated. Failure message: IDX10214: Audience validation failed. Audiences: 'empty'. Did not match: validationParameters.ValidAudience: 'productconfigurationapi' or validationParameters.ValidAudiences: 'null'. I know i can turn off audience validation and everything works then but i don't get why

Missing “aud” claim in access token

↘锁芯ラ 提交于 2021-02-08 03:00:59
问题 For unknown reason to me the "aud" claim is not present in access token (it is present in id token though). Once access token is being sent to the API i get the following error: Bearer was not authenticated. Failure message: IDX10214: Audience validation failed. Audiences: 'empty'. Did not match: validationParameters.ValidAudience: 'productconfigurationapi' or validationParameters.ValidAudiences: 'null'. I know i can turn off audience validation and everything works then but i don't get why

Exchange reference token for JWT - downstream microservices authorization

好久不见. 提交于 2021-02-07 09:20:55
问题 I am currently creating a new application based on a Microservices architecture, with authentication provided by Identity Server 4. Following lots of research and also setting up proof of concepts, I have Identity Server setup to secure the API's and a native application successfully accessing these services using tokens. Initially the client was issued an access token which was used to access the API's, I have however now switched this out to use reference tokens. Now, onto the issue! The