Posts by Fábio Lima • 81 points
8 posts
-
0
votes0
answers69
viewsQ: Asp.Net Core making unexpected logout
I’m learning to work with Asp.Net Core, using version 2.1. After logging in, the system unexpectedly logs out, I could not find the reason, if it was error, wrong configuration... I’ve looked in…
-
0
votes1
answer175
viewsQ: How to configure user downtime in Asp.Net Core?
I started studying Asp.Net Core these days, I’m working with version 2.1. I can already log in and log out of the user, only I don’t know how to set his downtime. I put this code, but after a few…
-
0
votes2
answers143
viewsA: How to disable Forms Authenitcation for the Web API?
[RESOLUTION] To do what I was aiming for, I found an implementation where an implementation of an interface IHttpModule. public class SuppressFormsAuthenticationRedirectModule : IHttpModule { public…
-
1
votes2
answers143
viewsQ: How to disable Forms Authenitcation for the Web API?
I have an Asp.Net MVC project and inside it has the Web Api, when a request sends an invalid token, Forms Authentication redirects to the login page, but I need it to only return an Http 401 error,…
-
0
votes1
answer96
viewsQ: Web api 2 within MVC project. How to prevent redirection to login page when token is not valid
I’m doing a Rest API on an MVC project. On the API controllers (ApiController) place the Dataannotation Authorize, when the token entered is invalid, it detects and tries to redirect to the login…
-
0
votes0
answers188
viewsQ: How to customize the HTTP return message/code of an expired/invalid token in Web Api 2 + Owin?
When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is it should be a 401 (Unauthorized). The problem is I don’t know how to customize it. I’m using…
-
2
votes0
answers959
viewsQ: What to do when the generated token expires?
I’m developing an API rest with the Framework Asp.Net Web Api 2, using Owin. I have an app android as the client. In this case, my system has users and passwords and authenticates normally. I want…
-
4
votes1
answer416
viewsQ: How to implement the Observer standard in practice, with database?
I’m studying some design patterns, and right now I’m learning about the pattern Observer. I’ve read books, I’ve seen some classes on Youtube, I’ve done the examples and everything. But now I would…