I have setup ADFS to return the following claim: UseragreementAccepted: true/false
When I reach my MVC-application I want to inspect this claim, and if value==false I want to redirect the user to a completely different web-application where the user can read and accept the useragreement.
Where should I put this redirection-code in my MVC-application? Should I write a custom HttpHandler/Module, AuthenticationManager, AuthorizationManager, or something else..?
Application-flow:
https://mvcapp/
-> https://adfs/
-> https://mvcapp/ -> inspect claims ->
-> if UseragreementAccepted==false, then redirect to https://accessapp/
-> user can read useragreement and accept it