I have three pages named LOGIN,HOME,DETAILS.
suppose that, we can access home, Details pages if we are authorized only.
To provide authorization we are using a login page.
Now, I want to provide authorization using [Authorize]
filter defined in Filter.config file.
then Authorization is applied to all pages(login also). Hence we cannot access login page also.
To allow login page access initially, we have to provide [AllowAnonymous]
to login page.
Now, login page will open initially, after authorization, we can access remaining two pagesPlease mark as answer
, if you satisified.mohammedr88-18313, if this helps please login to Mark As Answer. | Alert Moderator