diff options
-rw-r--r-- | projecttemplates/MvcRelyingParty/Web.config | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/projecttemplates/MvcRelyingParty/Web.config b/projecttemplates/MvcRelyingParty/Web.config index da17c5a..0298af0 100644 --- a/projecttemplates/MvcRelyingParty/Web.config +++ b/projecttemplates/MvcRelyingParty/Web.config @@ -296,4 +296,13 @@ </service>--> </services> </system.serviceModel> -</configuration>
\ No newline at end of file + + <!-- Protect certain user pages from delegated (OAuth) clients. --> + <location path="Account"> + <system.web> + <authorization> + <deny roles="delegated"/> + </authorization> + </system.web> + </location> +</configuration> |