.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Question on Claims in SharePoint 2010

Posted By:      Posted Date: October 17, 2010    Points: 0   Category :SharePoint

Hi All,


I have a claim based Application with SQL Server as Provider. I have created a web part and deployed on Claim based web application and now I am able to retrieve the Claim sets with below code


            IClaimsPrincipal claimsPrincipal =Page.user  as IClaimsPrincipal;


            IClaimsIdentity claimsIdentity = (IClaimsIdentity)claimsPrincipal.Identity;





This is good, now I have a Custom WCF Service Hosted in _Vti_bin and Avaiable to Claim Based Application as Virtual Directory.




So My question is : Can I Access claims same way as I am doing in Web Part as this WCF service is running under same context?


Am I missing something or this approach is possible?


Thanks in Advance!!


View Complete Post

More Related Resource Links

Walkthrough: Writing a Claims Provider in SharePoint 2010

By using claims authentication, you can assign rights based on claims without knowing who a user is, or how they are authenticated. You have to know only the attributes of the user.

Sample: SharePoint 2010 Claims Provider

Download a code sample that shows how to write a claims provider in SharePoint 2010 to augment claims and provide name resolution.

Video: Introduction to Claims-based Security in SharePoint 2010

Learn how claims-based identity provides a common way for applications to acquire identity information from users inside their organization, in other organizations, and on the Internet. (Length: 23:46)

Claims Tips: Learning About Claims-Based Authentication in SharePoint 2010

Use these five tips for guidance in solving problems related to using and configuring claims.

Claims Walkthrough: Creating Trusted Login Providers (SAML Sign-in) for SharePoint 2010

Learn how to create a custom security token service (STS) and set up a trust relationship between a SharePoint 2010 farm and the custom STS

General question steps to configure mysites in SharePoint 2010

I am trying to configure the mysite web application, so I have created a DNS record "mysite" and created a web application for the mysite and created a mysite host site collection on it. Now I have read somewhere that u have to create managed paths for the profile and the mysite, which actually corresponds with the name of the DNS record/mysite webapp. For some reason when i am opening the mysite, i get a url something like http://my/my. What am i doing wrong? Can somebody just give me a step by step approach on how to configure Mysites in MOSS 2010?I am a SharePoint Infrastructure Engineer, focussed on Administration and Installation of SharePoint Server environments.

AutoLogin for authenticated user via LiveID in Sharepoint 2010 (Claims Based Authentication)

Hi,     Im working in integrating LiveID authentication in my Sharepoint site. Live id gives back a token of the user with which i created a dummy profile using MembershipProvider.CreateUser. Now i have to auto login the user with the profile i created, i mean i have to force login to my sharepoint site using the created dummy user details without asking the user to give username n password.Any suggestion will be a great help for me to proceed.   Thanks Saravanan Michael

SA Question about SharePoint 2010

Hi,   This is a fairly basic question but I wasn't able to find a specific answer. I would like to know the cost of Software Assurance for SharePoint 2010 - is it a % of the license cost? What Percentage please? OR Is it a fixed $ cost? Thanks, ~Trevor

SharePoint 2010 Claims Based Authentication - anonymous site is prompting for CBA auth when opening

Hi, I have CBA setup successfully on my sites.  One site is setup for anonymous access and I have disabled "client integration" on that web application. I have a list of MS Office documents on a wiki.  When I click on one I am asked to either save or open or cancel.  Saving works fine but when I choose open, it launches the associated MS Office app.  I am then prompted for a login from CBA.  I can click cancel and the logon screen appears again.  After clicking cancel the 2nd time the document appears in the MS Office app, Word in this case. My question is how do I prevent my users from being prompted for a CBA login when clicking on these files and opening them in the native app on their machine?      --TR

SharePoint 2010 Claims Based Authenticaton site working but search is broken

Hi, I have SP 2010 sucessfully installed on a Windows 2008 R2 server with SQL Server 2008 R2.  I created local machine accounts for the following: MACHINE\mssqlservice MACHINE\sp_admin MACHINE\sp_search MACHINE\sp_farms I have setup 2 sites with public facing internet access as well as local sites. I have CBA working properly on both sites from both public and private access. My problem is that when I go to search, I am constantly redirected to an error page. I have checked all SP services on the server and they are all running as MACHINE\mssqlservice That account has proper access to all sites as well as all DB's. My search is crawling and I get one error from a long named PDF file in my site, which is OK.   My questions is if my CBA is working fine and my search is crawling, why I am not getting a results page when I search from the sites:   Here is the error I get:   Error Internal server error exception:   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 5a03b730-42c2-48c9-a220-3b9d052481de Date and Time: 9/9/2010 4:45:07 PM   I am kind of stuck at this point and am not sure how to proceed.  Any help would be appreciated.        --TR

Downgrading from Sharepoint 2010 Internet Enterprise to Standard (Purely a licensing rights question

My company already owns a license for Sharepoint 2010 Internet Enterprise.  We are planning a two server Internet farm.  We need to buy one more license and we only need the standard version which is significantly cheaper.  Is it allowed to use Standard when we own a license for Enterprise?

RBS on SharePoint 2010 Question

Hopefully an easy question for you all.  In the technet documentation on setting up RBS for SharePoint 2010, I noticed it states that you can provision a BLOB store only one time.  Does that mean you can only use the RBS that you setup (eg, C:\Blobstore1) for the one Content database/web application associated with it and for each other web application I bring up, I need another blobstore?  Thanks in advance.

Error configuring Claims configuration SharePoint 2010


Hi All,


I am facing a problem configuring Claims Based authentication for a SharePoint application. The users access the application from a domain other that where the SharePoint is installed. The SharePoint server is in Domain A and the users are from Domain B. I am using ADFS 2.0 for user authentication. The claim rules i have configured in ADFS2.0 are as below


1.       Domain A


Problem with Sharepoint 2010 - Claims Auth - Windows Auth and FBA. consistent redirects back to "cho


We have sharepoint 2010 foundation site that we can successfully login with via IE, Firefox, Chrome both on the domain and externally with Claims Authentication with only Windows Auth type selected (NTLM).

Once we add FBA and use the default signin page, we can still login (we select Windows Auth from the dropdown) BUT it only works on the domain. When we try to access externally, the only browser that works is FireFox. Both Chrome and IE just constantly redirect back to the Choose Authentication dropdown screen.

We have tried for the last 2 days to sort this out. Has anyone else experience this? It looks like the default sign in page somehow doesn't set the cookie for IE and Chrome and just bounces us back to the sign in page...

Thanks for any info...

To clarify, we are not even using the FBA yet. We are trying to login only with the windows auth and domain accounts...

Sharepoint 2010 core.js question


I was reading articles (mainly targeting SP 2007) that talked about changing the master page so that core.js is only loaded on demand for sake of performance. And for external facing sites with Anonymous users, delayed/asynchronous loading was recommended.

So I decided to take this to heart and began creating a secondary master page for my SP 2010 site. However, when I looked at the code, the both the existing v4.master and dayandnight.master were already set to use RegisterSod for all the js files. So have things changed with SP 2010 where this optimization is no longer necessary? Please advise.

Thanks in advance,

not able to login to Claims based auth. sweb apps in sharepoint 2010


Hi till yesterday I was able to login to claim based web apps in my sharepoint 2010 server. but today they are giving below mentioned error! even though classic mode auth web apps are running fine.

Nor it allow to activate /deactivate any fature to a site collection under claims based web app with same error in event log:

Please help.

error message in event viewer:


Log Name:      Application
Source:        Microsoft-SharePoint Products-SharePoint Foundation
Date:          10/8/2010 1:30:59 PM
Event ID:      8311
Task Category: Topology
Level:         Error
User:          SHAREPOINT2010\administrator
Computer:      sharepoint2k8.sharepoint2010.com
An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US\nIssuer Name: CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: 85F230FF68A8107A14667844D6741A6C2199C60E\n\nErrors:\n\n UntrustedRoot: A certificate chain processed

SharePoint 2010 Backup Question


Hi Guys,

I have just configured my SP2010 backup and I want to make sure that I am not missing anything.  I was hoping I could list off steps and precautions I have taken and that you could lend me some of your expertise.

  • I have a MOSS server and a SQL2008 server.
  • Symantec Backup Exec backs up the content database every night.
  • I have created a script to backup the SharePoint config every night.  Saves it on my moss server in a backup directory.  (gets cleaned out every 7 days)
  • I have created a script to backup the //MOSS site every night into the same backup directory. (over writes itself every night)
  • This backup folder, is backed up nightly using Symantec Backup Exec as well.
  • I am also backing up the logs folder in the 14 hive (using Symantec)

Is there anything else I should be backing up???  Am I missing anything?

Thank you




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend