Skip to main content

Questions tagged [authorization]

Authorization is the module of an application that is responsible to manage user access to the application resources.

3 votes
1 answer
130 views

I am trying to implement Oauth in my .net API with EntityFramework. I already completed the custom local authentication with JWT tokens and refresh tokens. I got a little bit confused as to how I ...
Lemon juice's user avatar
2 votes
2 answers
276 views

I am working on a MERN stack app that is a CRM with a couple of modules. Now when the user sends x request to the server to do a supposed action (such as delete something), the server first checks if ...
Syed M. Sannan's user avatar
2 votes
1 answer
185 views

There is a need to authorize the Users based on their Roles, particularly a set of roles that should allow all GET operations and a second set that should allow all POST operations. Eg: All Get ...
One Developer's user avatar
1 vote
1 answer
996 views

In a docker compose solution, there are multiple ASP.NET Core projects. Each of them provide a service. Some of them can be accessed from internet (with REST APIs), some of them are for local docker ...
Parsa99's user avatar
  • 267
0 votes
1 answer
378 views

I have this code that controls the user permissions provided to a user. In my case, I constructed a simple example of CRUD. When the admin checks the boxes, it will grant the user access to perform ...
Mohammad Khan's user avatar
1 vote
1 answer
1k views

I want some opinions about my code that implements store and update for a Laravel 8 form request. The make function is for storing the data and the ...
Zikri Munandar's user avatar
4 votes
0 answers
159 views

I still write login system in Go(Golang) using cookies.But my system is still not secure enough.Can you review my code and provide some suggestions on how to improve the security?Previous question. ...
Honor 373's user avatar
2 votes
1 answer
116 views

This is something I've done a few times, but I've found it to feel a bit error-prone with so many conditions, and am wondering if anyone can point me in the direction of a cleaner way. This is a PATCH ...
Aurast's user avatar
  • 131
2 votes
1 answer
509 views

I'm writing login system in Go(Golang) using cookies.I think it's isn't safe enough. Can you provide some suggestions on how to improve the security. Main file: ...
Honor 373's user avatar
4 votes
1 answer
117 views

I have an endpoint to retrieve the user's authorization based on Joseph Silber's Bouncer. I have a global can() function. It creates a unique key based on the ...
Grant's user avatar
  • 149
2 votes
0 answers
207 views

I have a controller that returns data about users. I want to set the authorization such that an admin can access this controller and retrieve data for any user, and a non-admin user can access the ...
Matt G's user avatar
  • 129
8 votes
1 answer
855 views

I am currently developing a Django Rest Framework API with TDD. I have 15 tests and counting for two views, which doesn't seem right to me. It takes me a lot of time to write the tests and a lot of ...
 DJN's user avatar
  • 81
0 votes
2 answers
824 views

My concern with this code is that I am forcing execution repeatedly through the same pathway for the sake of a readability that I'm not convinced by. It's a servlet filter which detects if the ...
Adam's user avatar
  • 139
0 votes
2 answers
126 views

I just wrote this, but I am not realy happy with that. I think there is an easier way to do this. First I am checking if a user has an ID (from a portal we are using, it is in the header). After that ...
Spedo De La Rossa's user avatar
2 votes
0 answers
498 views

I have been working on my script which allows people to sign-up and login to my website. I was wondering if someone could review the code. It works but I can't help but feel it could be optimized. ...
Casper's user avatar
  • 131

15 30 50 per page
1
2 3 4 5