Last post Jan 21, 2015 11:38 AM by Denfer06
Jan 21, 2015 11:26 AM|Denfer06|LINK
I have in the same VS project a UI and a web service (I know it's bad)
I have updated the project to authenticate user that use the UI using ADFS but now my .asmx service also require to be authenticated and also require https.
Do you think that It's possible to update the web config to exclude the web service from the ADFS authentication ?
And how I can do that ?
Jan 21, 2015 11:36 AM|BrockAllen|LINK
Yes it's possible. For the HTTP calls where anonymous is allowed, don't reject the call with a 401. In other words, your authorization code is what needs to change.
Jan 21, 2015 11:38 AM|Denfer06|LINK
do you have a sample code ?
is it something like that:
this solution works