Hot answers tagged anonymous-authentication
12
If you want to do it at page level, you can assign a different master page on "OnPreInit" event. Below is the example to do it on layout page if you have publishing site :
public class MyPublishingLayoutPage:PublishingLayoutPage
{
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
if ...
7
unfortunately, afaik (& tested) the REST services are only working for authenticated users. You'll need to create a bridge service calling with credentials the native ones if you want to provide that functionality but since you're authenticating your request, are you sure it's not an authentication issue ? Does the target username / password combination ...
6
If your goal is to have a different look and feel for different users, you can use a single Master Page, and include steps that only target specific profiles (anonymous users in your case).
Search the internet for the following terms: SPSecurityTrimmedControl and AnonymousTemplate.
It is what I use on this draft page:
http://usermanagedsolutions.com
For ...
5
Why are you deploying your Custom Web Service to the layouts folder at first place?
You need to copy the Web service files to the _vti_bin virtual directory
Copy the Service1wsdl.aspx file, the Service1disco.aspx file, and the Service1.asmx file to the _vti_bin virtual directory. This is the directory where all default Web services are stored.
Copy the ...
5
You can enable Anonymous Access by going to Application Management in Central Administration, Highlight the WebApp where you want to enable Anonymous Authentication, Click on Authentication Providers, Click on the Zone where you want to enable Anonymous Access, then Check Enable Anonymous Access, Save.
Go to your Web Application and the top level of the ...
4
Do you have multiple zones on your web application? If so, try calling the web service on a zone that does not have Anonymous access enabled. I came across this post a while back that shed some light onto it.
http://chrisdomino.com/Blog/Post/401-Reasons-Why-SharePoint-Web-Services-Don-t-Work-Anonymously?Length=4
4
You could a a location tag to the web.config, restricting access to logged in (admin) users only.
<location path="PATHTOUSERINFOLIST">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="?"/>
</authorization>
</system.web>
</location>
4
Internet Options -> Security Tab -> Local Intranet -> Custom Level -> Scroll to the bottom.
User Authentication section set Logon option to Anonymous
Also with the Intranet section highlighted, you can deselect Automatically detect intranet network and remove any instances of your Sharepoint URL from the Advanced menu in the Sites area. This might not be ...
4
You can use two options only for targeting content to users (not change of master page):
Audience for Server version - http://www.codeguru.com/csharp/.net/net_data/sortinganditerating/article.php/c13255__2/ and for 2010 but the concept seems to be the same in 2010 - http://blog.mastykarz.nl/content-targeting-anonymous-users-sharepoint-server-2010-part2-2/
...
4
I assume that by saying
pages what we created using Visual Studio
you mean application pages created in Visual Studio and deployed to _layouts directory. If you want to make such page anonymous, you have to change base class in your code behind. By default, application pages inherit from LayoutsPageBase class, and you have to change it to ...
3
You can enable lockdown mode to prevent unauthenticated users from accessing list and library pages.
Or, if it is indeed only one page that you want to allow, then you can add the following to your web.config:
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
...
3
This is typical when the site collection is a publishing site.
Check out http://blogs.msdn.com/b/russmax/archive/2010/01/22/lockdown-mode-in-sharepoint-2010.aspx
To determine if a site has ViewFormPagesLockdown enabled run the following:
get-spfeature -site http://sitecollectionURL
If ViewFormPagesLockDown is listed, it's enabled.
To toggle lockdown ...
3
I'm not that familiar with the Chart web part but from checking it out my guess is that it have the same issues with anonymous user as client object model based web parts (like Silverlight based web parts) have.
The problem is that by default SharePoint restrict the GetItems method of SPLIst for anonymous users.
You should check out Waldek Mastykarz's post ...
3
I haven't worked in a lot of anon environments, and it was always my belief that themes were only available once authenticated. If you needed to style something to anon users, you'd need to use a custom master page and/or a custom CSS sheet.
When I started to brand http://pirateeric.sharepointspace.com, themes didn't show up when I wasn't logged in so I ...
2
Or, in Powershell:
$wa = get-spwebapplication http://{url}
$zone = [Microsoft.SharePoint.Administration.SPUrlZone]::Extranet
$i = $wa.IisSettings[$zone]
$i.AllowAnonymous = $true
$wa.Update()
$wa.ProvisionGlobally()
$w = Get-SPWeb http://{url}
$w.AnonymousState = [Microsoft.SharePoint.SPWeb+AnonymousState]::On
$w.Update()
$l = $w.Lists["Comments"]
...
2
I recognise I posted this question a while ago now, but having just seen Jim's answer it reminded me of something I'd seen a couple of months ago...
In the August Cumulative Update for SharePoint 2010 Foundation one of the areas it mentions a fix for is:
Anonymous users cannot use Language
Integrated Query (LINQ) to query data
in Microsoft ...
2
Have a look at this blog post I wrote last week and see if this helps. This doesn't permission the physical file, but you can use this technique to determine if you should show or not show content or a nav link based on the user. http://mike-greene.com/?p=309
2
Christophe,
I think I answered by email as well, but in any case, here's a brief blog post that explains how and why:
http://blog.furuknap.net/enabling-declarative-workflows-for-anonymous-users-in-sp20102007
.b
2
So just about all the answers are correct, but I thought it prudent to include one more. Sometimes when you're working on the site's style you can end up having unpublished content being referenced on the master page or other pages of the site. This unpublished content although present, generally requires administrator rights to be viewed. It seems that once ...
2
The plumbing to handle anonymous/unauthenticated users already exists within SharePoint...you don't need to re-create it by logging them in to what in affect would be another anonymous (...guest) account.
If you're going to log anonymous users in to let them access the site then just enable anonymous access and go thru and grant them access to the pages, ...
2
I imagine the reason is because SharePoint deals with authorisation, not authentication. You won't get SharePoint's access denied page as that is presented in cases where the users is authenticated but not allowed to see the requested resource (i.e. not authorised).
As for a resolution, I imagine you would need to modify the Web app web.config file. This ...
2
I know you have followed some of these steps but have you seen this post. http://claytoncobb.wordpress.com/2011/06/03/infopath-allowing-anonymous-users-to-submit-forms-in-sharepoint-2010/ I think the key here may be allowing anonymous access on the site and not just the libraries/lists, maybe you have already done this.
2
As a rule of thumb you can say that every URL that ends up in the browser address bar anywhere should be a public URL, therefore a separate zone has to be created. As a good practice, each zone should have its own separate IIS website so you can configure different IIS-related settings like host headers, SSL certificates etc. The public URL is what's being ...
1
You can include within the Master Page steps that only target specific profiles (anonymous users in your case).
Search the internet for the following terms: SPSecurityTrimmedControl and AnonymousTemplate.
It is what I use on this draft page:
http://usermanagedsolutions.com
For authenticated users, the site is just an out of the box SharePoint 2010 page. ...
1
While you don't have access to run commands on the server, the hosting company does and should support this.
stsadm -o activatefeature -url -filename ViewFormPagesLockDown\feature.xml
http://technet.microsoft.com/en-us/library/cc263468(office.12).aspx#section6
http://sharepointsharpener.wordpress.com/2008/08/28/viewformpageslockdown-does-not-kick-in/
1
The login issue you are facing might be due to either the master page, page layout, or any content that is not checked in and published. Publish it and verify again.
There are also licensing issues which you would like to check before implementing SharePoint Foundation for public facing sites. Its not the same way as it goes for MOSS or WSS. Please check ...
1
Usually, when I hear "problems, errors and no pattern", the first things I check is the blob-cache and output cache.
my actions would be:
Turn of blob-cache, just to find out if the problem still occurs. It might happen that when you visit the site with a authenticated user, your image will be cached on one of your front-ends. Then an anonymous user will ...
1
On your Internal server, you should see some error messages in the Crawl log for that content source. You may want to setup a separate content source for the External server on the Internal Search Administration site. Then you can fire off Full Crawls and review the Crawl logs quickly.
You will need to grant Read access on the External site ...
1
Do the content sources in your search service match the URL in your alternate access mappings? If not, set up a content source that matches the alternate access mapping and do a full crawl. While you're in the search service, you may want to check to see if it is reporting any errors.
Also check the event viewer on the server and the ULS logs (in the "14 ...
1
This is a bug and it's solved in SP2010 SP1 (didn't test it though).
Here is the link to the kb article which describes all the changes in the xslx file: http://support.microsoft.com/kb/2460045
Row 234 describes the issue you're referring to.
Only top voted, non community-wiki answers of a minimum length are eligible

