All Questions
Tagged with authentication authorization
2,301
questions
0
votes
1
answer
10
views
Next js next auth credentials with custom user
I am building a project using the t3 stack Using app router, TRPC, prisma, and next auth.
With the initial set up and even on documentation, the user model for prisma they give is with an ID, but I ...
0
votes
1
answer
24
views
<AuthorizeView> not recognizing role claim
I have a Blazor Server app that uses Windows Auth. Based on the group memberships of the user, I am adding role claims using IClaimsTransformation. The group-to-role mapping is fetched from a DB.
This ...
-3
votes
0
answers
16
views
Autentication JWT, backend in Django Rest Framework and Frontend in Next.js [closed]
I have a backend built with Django Rest Framework, where I've implemented authentication using simpleJWT, and everything is working when I test with Postman.
My question pertains to the frontend I'm ...
0
votes
2
answers
34
views
Authorize actions in command handler
I have a problem with controllers authorization in C#. I use JWT authentication with token and role-based authorization in controllers.
Let's examine this endpoint.
[HttpDelete("{userId}/post/...
0
votes
0
answers
37
views
Handling User Registration Without Email and Multiple Authentication Methods
I'm working on a web application where users can register using different authentication methods like Google and Facebook, but some users may have registered without providing an email address. Here's ...
0
votes
0
answers
23
views
Authorization not working even after successfully logging in to ASP .NET Core MVC app
Implemented JWT authentication in my application, with this code in the Program.cs:
builder.Services.AddAuthentication(AuthConstants.AUTH_TOKEN)
.AddCookie(AuthConstants.AUTH_TOKEN, options =>
...
0
votes
1
answer
35
views
ASP.NET 8 Windows Authentication combined with custom policy authorization results in HandleRequirementAsync() being called twice for every request
I created a new "ASP.NET Core Web API" project.
In Program.cs I configured authentication and authorization as follows:
builder.Services.AddAuthentication(NegotiateDefaults....
-1
votes
1
answer
20
views
Create login app with Auth0 for multiple external apps
I am working for a company that collaborates with multiple external consulting firms. These consultants create applications using my company's information. The external applications must log in with ...
0
votes
0
answers
13
views
I have issue authorizing my jsonwebtoken how do i go about it?
Hi please i need assistance i tried sending the token i generated using postman it failed and on my terminal is showed jsonwebtoken malformed im lost i need a hand thanks youenter image description ...
1
vote
2
answers
22
views
nginx.conf best way to handle multiple if conditions within location?
I want to authorize the user based on his email without it getting super messy. Is there a better way to do this?
http {
map $http_user $user {
default $http_user;
}
server {
...
...
0
votes
0
answers
24
views
API authentication and authorization with auto login via embedded script
Overview
I am developing an api (a web service, REST API)
and my web service is hosted on, say web-apis.com
Assuming I have clients/customers with respective websites
customer-1 (website-1.com),
...
0
votes
1
answer
50
views
Why does ASP.NET Core Web API not recognize when a user is logged in when passing a bearer token in the request header?
I set up a basic ASP.NET Core 8 Web API controller using AspNetCore.Identity.MongoDbCore package to connect to a MongoDB collection, and added a /api/user/{username} endpoint.
Program.cs:
using ...
0
votes
0
answers
35
views
Keycloak - Cross service communication
I have a following setup: microservices that run on k8s that are a part of a single app, a gateway that all the cross service and client-service communication go through, which validates the tokens ...
0
votes
1
answer
228
views
.NET 8 Blazor Server - role authorization with Windows Authentication
I have a solution in .NET 7 that works ok, however I want to migrate to .NET 8 with new structure that MS presented and I am facing a lot of issues as authentication does not work the way I would like ...
1
vote
1
answer
87
views
Authorization policy for API key authentication without authentication scheme in ASP.NET Core 8
I want to add API key authentication to my API using an authorization policy but I get the error No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The default ...