문제

I have an MVC web app which uses an authentication module that was developed in house by the organisation I work for.

A requirement that I am working on at the moment requires a certain user type to access a particular URL without an account, therefore I need to circumvent the authentication on that route only.

Is it possible to conditionally detach an HTTP module based on route?

도움이 되었습니까?

해결책

you can use attribute [AllowAnonymous] above the action to be called.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top