0

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.