Answered by:
TFS Form Authentication

Question
-
we are trying to implement Form authentication in TFS server.
we tried below code but no luck
<!-- For Integrated Windows Authentication, set Authentication Mode to "Windows"
For Forms authentication, set it to None -->
<authentication mode="None"/>
This is incorrect. Change it and add the following instead :
<authentication mode="Forms">
<forms loginUrl="UI/Pages/Login.aspx"
protection="All"
timeout="30"
name=".ASPXAUTH"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false" />
</authentication>
Also note that the setting at the top of the file:
<webAccessSettings>
<!-- Specifies whether the login form is enabled. If disabled, only
Integrated Windows Authentication is allowed. -->
<formsAuthentication enabled="true" />
Please help on this
Thanks
Selva
Tuesday, January 11, 2011 9:38 PM
Answers
-
Hello Selva,
Thanks for your post.
As far as I know, you can only use Windows Integrated Authentication in TFS. Please see the following thread which describes the similar issue as yours:
And when Team System is installed on a remote server it is not possible to use Integrated Windows authentication. Instead, you will need to use Forms-based authentication. Please see the Installing on a Remote Server part of the following link:
http://msdn.microsoft.com/en-us/vstudio/bb980951.aspx
Thanks,
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Vicky SongMicrosoft employee, Moderator Monday, January 17, 2011 11:11 AM
- Marked as answer by Vicky SongMicrosoft employee, Moderator Monday, January 24, 2011 6:55 AM
Wednesday, January 12, 2011 10:06 AMModerator
All replies
-
Hello Selva,
Thanks for your post.
As far as I know, you can only use Windows Integrated Authentication in TFS. Please see the following thread which describes the similar issue as yours:
And when Team System is installed on a remote server it is not possible to use Integrated Windows authentication. Instead, you will need to use Forms-based authentication. Please see the Installing on a Remote Server part of the following link:
http://msdn.microsoft.com/en-us/vstudio/bb980951.aspx
Thanks,
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Vicky SongMicrosoft employee, Moderator Monday, January 17, 2011 11:11 AM
- Marked as answer by Vicky SongMicrosoft employee, Moderator Monday, January 24, 2011 6:55 AM
Wednesday, January 12, 2011 10:06 AMModerator -
Hello Selva,
I have marked reply as answer. If you found it no help, please unmark it and let me know.
Thanks,
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Monday, January 24, 2011 6:54 AMModerator