Questions tagged [identity]
An inherent property of an entity that distinguishes that entity from all others. Frequently used to refer to user identity and authentication.
2,972
questions
0
votes
0
answers
11
views
ASP.NET Core 7 MVC : custom SignInmanager IsSignedIn is always false
I am developing an ASP.NET Core 7 MVC web application. I am using Entity Framework code-first. All my code seems to work. I can add migrations, update database and run my web application.
Upon login, ...
0
votes
2
answers
46
views
Wildcards support for AllowedCorsOrigins in IdentityServer4
I use IdentityServer4 to login to my app using authorization_code flow.
I need to add support of wildcards for AllowedCorsOrigins in IdentityServer4 client configuration. I created my implementation ...
0
votes
0
answers
31
views
IdP-initiated SSO into Azure B2C - not officially supported, but are there any workarounds?
Our service is a gateway/portal app of a sort, currently sitting on top of Salesforce as IdP, but we are migrating from Salesforce to Azure B2C. We have already implemented the core flow with custom ...
0
votes
1
answer
37
views
How do i configure Google Identity Platform properly?
We want to let users login with Google in our web app.
On our intranet we want to an OpenID provider to let users in into 3rd party apps, so they are automatically logged in. (SSO)
3rd party apps (...
0
votes
0
answers
25
views
I need to log out of .NET Core app without requiring a button-click
I have a .NET Core app using Identity and under certain conditions, I need to be able to programmatically log a user out. That user may have multiple active sessions and I only want to log them out of ...
0
votes
2
answers
86
views
ASP.NET Core 8 Web API endpoint does not contain my custom fields
I created an entity ApplicationUser and successfully extended it to IdentityUser and migrations created it in the database.
But when I go to the register endpoint, it does not show my custom fields to ...
0
votes
0
answers
14
views
Metrics for Provisioning Transactions in IIQ
For metrics on provisioning transactions in IIQ, we are currently reading from the table to a file which is then getting ingested to an elastic search index through a filebeat agent. Is there any ...
0
votes
0
answers
43
views
401 error at calling APIs in Web App in Azure sending token, without AAD
I have an application built in .Net 6 and React (same solution), I'm using Microsoft.AspNetCore.Authentication.JwtBearer Version="6.0.16" and Microsoft.AspNetCore.Identity....
-1
votes
1
answer
29
views
As an issuer in Hyperledger Indy/Aries, do I need to create a separate DID for each user? Likewise does a user create multiple DID for each isssuers
I am going through Hyperledger Indy document here.
It is mentioned here that: A user registers for a service's website by creating and giving the service a new, never-used-before DID, and receives ...
0
votes
1
answer
55
views
ASP.NET Core App Won't redirect user to login page after failing authorization, instead returns 404
So I'm creating a small app for my work
I'm using .net 7, Asp.Net Core, Identity, and for authorization I'm using cookies
All my Login, Register and Logout pages located in Area, so the adress for ...
-1
votes
0
answers
20
views
Identity server 4 token
There are two types of tokens
1- Id token
2- access token
I know that identity server 4 implement oauth2 and oidc
I wanna know which token identity server 4 generated Id token or access token?
Oauth 2 ...
-1
votes
2
answers
48
views
Oauth2 and Open Id Connect
I have confusion about Oauth2 and Open Id Connect I know that Oauth2 for authorization and oidc for authentication but Oauth2 provide access token to access to protected resources and oidc provide ...
0
votes
0
answers
18
views
WSO2 Multi-tenant from email not working. How to configure identiy server tenant wise from mail?
we used WSO2 Identity server 5.11.x for a Saas Project and we facing issues in sending email from tenant. emails are sending from only one email which is configured in the default tenant. in our case ...
-1
votes
3
answers
98
views
Why does using User.IsInRole() always return false?
I use User.IsInRole() to check that after logging in, users with the admin role will go straight to the admin page, if they don't have the admin role, they will go to another page. However, User....
0
votes
1
answer
38
views
Api gateway with identity server 4
I create idenyity server 4 project, create api gateway and api resource
My question
Why need to handle jwt configuration in api gateway although I handled configuration jwt in api resource, I know ...
0
votes
0
answers
37
views
How to reset identity column after server restart in entity framework [duplicate]
I'm using the code first approach in entity framework to create my database and I have a table as follows:
public class Company
{
[Key]
[JsonConverter(typeof(StrToGuidConverter))]
public ...
0
votes
1
answer
57
views
Why do I get database provider error in ASP.NET Core 7?
I have an ASP.NET Core 7 MVC project. I want put my SQL Server connection string in the appsettings.json file, and then use that in my entire project and the layers.
But I get the the provider error:
...
2
votes
0
answers
31
views
ASP.NET Core web app (Model-View-Controller) - cannot get user from HttpContext [duplicate]
I've been working on rebuilding an old ASP.NET webforms app built back in 2010 from scratch. I'm using the ASP.NET Core web app (Model-View-Controller) project template (C#) with Visual Studio 2022 ...
0
votes
1
answer
50
views
when i create mvc controller with views,using entityframework i cant route to it
My control is built well, but I can't get to that path and I get this error:
An unhandled exception occurred while processing the request.
InvalidOperationException: Unable to resolve service for ...
0
votes
0
answers
28
views
Creating Access Tokens with Username for External Login Providers in Identity Server 4 and Identity.Admin.Api
I'm working on a mobile app that consumes an API, which I'll refer to as the "Main API." I'm securing the Main API using Identity Server 4. Additionally, I need authentication within the ...
0
votes
0
answers
73
views
Get-CsPhoneNumberAssignment Azure Automation Error 401 Unauthorized
Has anyone gotten the cmdlet Get-CsPhoneNumberAssignment to work in Azure Automation with a system managed identity? According to MS, almost all cmdlet are now supported for application based ...
0
votes
0
answers
15
views
Graph Endpoint to get Application identity details returned in CreatedBy property of driveItems?
I have creating document using CSOM and Powershell at SharePoint Document Lib. When I tied to get the driveItem details of the item I get a set which contains user and appliation.
Image for Reference
...
0
votes
1
answer
106
views
Open FGA Wildcard Relationship From Object to User
I am trying to define user and admin schema in OpenFga
model
schema 1.1
type user
relations
define admin: [admin#member]
type admin
relations
define member: [user]
I have added ...
0
votes
2
answers
64
views
C# Removing List Item with same value but different identity, works, but why?
I was trying to make a code that removes some list items, but then I realized, my code is not supposed to be working, but works.
I will explain the reason why I thought that my code 'should not be ...
0
votes
0
answers
14
views
identity federation : one idp with 2 service providers and to share information between this 2 service providers
Suppose one organization [OrgA] is using 2 Saas application services[OrgB and OrgC] .
OrgB and OrgC is federating identity with OrgA ,using which employees of OrgA[Azure Active Directory] can single ...
1
vote
1
answer
257
views
Use ASP.NET Core Identity with Blazor Server razor pages
I'm trying to implement authorization on my Blazor Server App and I would like to use Identity because if offers to me all the roles and other features ready to use.
I follow a tutorial like this: ...
0
votes
2
answers
45
views
.NET 6 Table 'aspnetuserroles' doesn't exist
I'm configuring a new project on .NET 6, with jwt, identity and MySQL Mariadb with Pomelo.EntityFrameworkCore.MySql 6.0.2.
The error I'm getting when I try to login is "Table 'aspnetuserroles' ...
0
votes
1
answer
38
views
Identify IdP from SAML and OIDC configurations
User has configured our app to connect to any identity provider using SAML or OpenID Connect protocol. From the configuration is there a way to identity what is the source Identity provider be it ...
0
votes
0
answers
38
views
ASP.NET Identity "new item scaffolded" not shown
I want to add identity scaffolded item to my project (Visual Studio 2022 - ASP.NET Wep Application .Net Framework).
But, I cannot add identity by using Add > New Scaffolded Item, because there is ...
0
votes
0
answers
61
views
How can I stop using App Registration secrets and use Managed Identities in Microsoft Identity platform?
We have been getting complaints from clients because we use Microsoft Identity in Azure Web Apps, and we use App Registration with secrets, but when they expire, the users are unable to log into the ...
0
votes
1
answer
58
views
Oracle 19.17 Reference a sequence as default of Primary Key column fails with ORA 02262
This command used with an existing table and sequence fails with ORA 02262 Error Occurs while type checking column default expression
MESSAGES TABLE INFO
ID NUMBER(38) Primary Key
ALTER TABLE ...
0
votes
1
answer
65
views
return_url is not working for Stripe Identity Verification when used in an iframe
I'm trying to integrate the Stripe identity verification in my app inside an iframe using the redirect method as mentioned in the docs.
But after the verification document is submitted successfully, ...
0
votes
1
answer
422
views
'Could not load type 'Microsoft.AspNetCore.Identity.UI.Services.IEmailSender' from assembly 'Microsoft.Extensions.Identity.Core, Version=8.0.0.0,
I get this error when code execution reaches the following statement in program.cs:
services.AddIdentity<AppUser, IdentityRole>(opts =>
{
opts.User.RequireUniqueEmail = true;
//opts....
0
votes
1
answer
147
views
Blazor QuickGrid SetCurrentPageIndexAsync error
I use QuickGrid for userManager.Users in initializedasync like this:
itemsQueryable = userManager.Users.AsQueryable();
pagination.TotalItemCountChanged += (sender, eventArgs) => StateHasChanged();
...
0
votes
1
answer
107
views
Facing an issue in Event grid while using authentication
I have a webapp (on Azure) which is sending messages to a eVent grid topic (on Azure same subscription) using sasKey. I have to eliminate the saskey usage and use the inbuilt roles & permissions. ...
0
votes
0
answers
77
views
.Net Core Identity. How to get instance of UserManager
I am running into the following error while trying to get an instance of UserManager:
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'Void Microsoft.AspNetCore.Identity....
0
votes
0
answers
39
views
How can I persist id_token to use during sign out?
I'm using Okta, .NET 6 and Identity Server 4 (in the middle of convincing the upper management to upgrade from 4.0 to 6.0).
I need the id_token in order to log out from Okta, however it's always null.
...
1
vote
0
answers
28
views
What is the difference between Identity object in Request/Response and Principal?
I'm using .NET 6 and Identity Server 4.
What is the difference between these three Identities (this is a class derived from OpenIdConnectEvents)?
Why are there claims in the principalIdentity but not ...
2
votes
0
answers
28
views
What should I set for OpenIdConnectOptions.SignOutScheme?
I'm using .NET 6 and Identity Server 4.
What should I set for OpenIdConnectOptions.SignOutScheme?
This is what I have in Startup.ConfigureServices():
.AddOpenIdConnect("oidc", "...
0
votes
0
answers
70
views
Dynamic identity provider in identity Server
I'm using identity server in order to have a dynamic identity provider so i add
.AddIdentityProviderStore()
this line in order to reach my goal but with this line in login page i get all the identity ...
0
votes
0
answers
40
views
Client authentication in identity server
I'm developing an authentication system in which i can create clients the client is an application with possible types (m2m native regular web app or single page application)
in the m2m application i ...
0
votes
1
answer
103
views
GAE and IAP: frontend and backend in two containers?
I understand that both FE and BE can be run in the same container, placing one process in the background. This ways CORS issues are resolved and Identity Access Proxy is only called once when the app ...
0
votes
0
answers
33
views
Keycloak social identity API
I have react app which use keycloak API for authentication and authorization.
I have social button in my react app when its clicked it should navigate to social identity pages.
I also found a solution ...
0
votes
0
answers
12
views
How to change primary key in AspNetUserRole in identity, and implement one primarykey
public class ApplicationUserRole : IdentityUserRole<string>
{
}
public class IdentityUserRole<TKey> where TKey : IEquatable<TKey>
{
public virtual TKey UserId { get; set; }
...
0
votes
2
answers
100
views
Approach for identity based query filter .NET
I am working on a .NET WebApi application built around a clean architecture design.
In the higher layer of the solution, in the WebApi project, where the controllers sit, I have a static helper class ...
1
vote
0
answers
34
views
Google Workspace 'viewer/reader' role
I am wondering if there is any pre-defined role that would grant full reader/viewer access to the Google Workspace admin portal, allowing me to check all users, security settings, etc. (Important that ...
0
votes
1
answer
92
views
Azure Function Keyvault Reference -> User Assigned Identity instead of System Assigned managed Identity
I am currently trying to build an Azure infrastructure for a project using Pulumi (unfortunately I had to use the azure_native provider). The problem is that my function does not understand that it ...
0
votes
0
answers
29
views
scaffolding Login and Logout results in redirection to logout page when logging in
I created a new razor pages project with Individual Accounts.
I scaffolded Login and Logout pages.
I ran it, I registered a new user, then I logged out and again logged in.
I expected to be directed ...
1
vote
0
answers
84
views
How to remove a two-factor provider for a user in Identity Core?
I am trying to implement multiple two-factor methods with Identity core/.net7.
Calling the function UserManager.GetValidTwoFactorProvidersAsync(user) gives me a list of the methods the user enabled. ...
2
votes
0
answers
108
views
Identity in Blazor after reload page user are logout
i have the problem after reload the blazor server page the user is no longer logged in
builder.Services.AddIdentity<ApplicationUser, ApplicationRole>(options =>
{
options.Lockout....