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


Post New Web Links

Custom Login Page , with custom membership provider for sharepoint 2010

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

Dear All,

I am new to sharepoint, i am developing a custom application on sharepoint 2010. i need to create a custom login page in sharepoint 2010 with a custom membership provider which will authenticate against a 3rd party web service. 

Can anybody guide me with the steps i need to do for this. do i need to write a custom claims provider for this or is it enough if i write a custom authentication provider and use it for my login page which we do for asp.net.

i am confused about these. 

thanks in advanace 

UB




View Complete Post


More Related Resource Links

Custom Login Page , with custom membership provider for sharepoint 2010

  

Dear All,

I am new to sharepoint, i am developing a custom application on sharepoint 2010. i need to create a custom login page in sharepoint 2010 with a custom membership provider which will authenticate against a 3rd party web service. 

Can anybody guide me with the steps i need to do for this. do i need to write a custom claims provider for this or is it enough if i write a custom authentication provider and use it for my login page which we do for asp.net.

i am confused about these. 

thanks in advanace 

UB


Sharepoint 2010 Custom Membership Provider

  

Hi,

I'm trying to create a site with fba using my own memebership and role provider.
The problem i have is when i am creating the sitecollection from the central administration, my web app has windows and fba authenticacton turned od, in the membership provider and role mananer i put my own providers. When i am creating the sitecollection for that web app in the administrator textbox is not finding the windows user... I don't understand why...
My web application authorization is windows with FBA turn on. If i turn off the fba authentication in the web app, the windows user is working as the administration....
I don't understand why is happening this..

 

UpDate: I checked the eventviewer and i have this error when i want to put the windows user:

An exception occurred in Forms Auth claim provider when calling SPClaimProvider.FillResolve(): The configuration section cannot contain a CDATA or text element. (E:\inetpub\wwwroot\wss\VirtualDirectories\48079\web.config line 457).

This line on the web.config is where i have my membership provider:

 <add name="LMSMemberShipProvider" type="Company.LMS.LiveMembershipProvider, Company.LMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=464df6932833bbb2" applicationName="/"/>

 

Th

problem using custom membership provider in sharepoint 2010, please help!

  

hi,

My company developed a custom membership provider using .net framework 4 which causes the problem. As you know, all web application in sharepoint 2010 is running on .NET framework 2, so when a web application is configured to use our .net 4 custom membership provider, .NET CLR version 2 is loaded to run the web application but our membership provider assembly binds to .NET CLR version 4. So it is not surprising to see the following exception:

Could not load file or assembly '[our membership provider assembly]' or one of its dependencies.This assembly is built by a runtime newer than the currently loaded runtime andcannot be loaded.

Logically, there are two ways to solve this problem, but neither of these ways actually works.

1. Change the application pool under which the web application runs to use .NET 4 rather .NET 2. But this causes a lot of web.config exceptions. I don't quit understand those config exceptions because in asp.net it's framework backwards compatible.

2. Redirect our membership provider assembly to be executed under .net framework 2. But this way also doesn't work because if our membership provider assembly uses some classes available only in .net framework 4, that part of code has no way to be executed.

Can you give

access denied error in custom login page using custom membership provider/ roleprovider in the FBA u

  

Hi,

I have deployed my custommebrship assembly and role provider assembly in the sts web config , central admin web config  and current web appln web config 's. i have created a  dll which has  login control and in the sign_authenticate event i am creating the securitytoken.

when i establish a session using the security token created using the iissettings object, and  while tryibng to redirect to the   home page of the/landing page of the web appln am Getting access denied error. 

signInControl_Authenticate(object sender, AuthenticateEventArgs e)

{

getSecuritytoken(formslogincontrol);

establishthesession(token);

e.Authenticated = true; //till this line  it worked success.

 base.RedirectToSuccessUrl(); //here it throws  :" Eror: access  denied "     current ly signed in user : myname sign is as   diuff. user

}

anybody knows how to overcome this , means authentication is  success, but authoriation didnt work.

 how can i get asuccessfull login to theweb appln/ siteccollection? in my role provder class i  have created my own roles

for user name: myname

role name:  Administrators, Contributor.

any help is appreciated

 

 

 

 

Passing values from web page to custom security trimmer in SharePoint 2010

  
Hi, In SharePoint 2007 we had a custom security trimmer that implemented ISecurityTrimmer interface. We also had a custom webpart used for search. Now, using HttpContext we passed values from the webpart to security trimmer with additional info needed to trim the results. It worked since trimmer was executed in the same w3wp process as webpart. Now in SharePoint 2010, the architecture for ISecurityTrimmer2 has changed, as it's executed in search process (other w3wp) - not the webpart w3wp so it has no access to the HttpContext. Question is: how to pass custom data, in form of the string, to a security trimmer when search is done from custom code in webart?

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

  
Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

membership provider with custom login form problem / question

  
Hi all, I am using the .net membership provider, and I can get past the membership.validate user ok and into my secure page.   The problem I have is that when I reach the secured page, I have a login status control which isn't changing from login to logout.   Below is my login code:If Membership.ValidateUser(txtUsername.Text, txtPassword.Text) Then Response.Redirect("/auth/Default.aspx") If chkRememberMe.Checked Then FormsAuthentication.SetAuthCookie(txtUsername.Text, True) Else FormsAuthentication.SetAuthCookie(txtUsername.Text, False) End If Else lblLoginStatus.Text = "Oops! Login not found!" End If    Thanks in advance.

How to create a custom page layout in sharepoint foundation 2010

  

Hi,

I need to create a custom page layout in sharepoint foundation 2010.

I am aware that wss 3.0 and sharepoint foundation do not have the publishing infrastructure.

I need to know if the same procedure that is used to create custom web part pages in WSS 3.0 is to be used in SharePoint foundation too or are there other ways.

I am relatively a fresher to sharepoint technology.Please help.

Thanks in advance:D.

 


Sharepoint 2010 custom .aspx page for custom functionality

  

 

 

Hello,

I want to include a custom .aspx page with code behind in sharepoint 2010. This aspx page is supposed to take data 
from custom list and generate an xml. So the output is xml. Our site is an internet facing site and it is anonymous
access. Some swf files are using this aspx page to get dynamic data from list in xml format. When flash is trying
to get xml from this page sharepoint first redirects to login page. I need help from you guys, since I am new in sharepoint I got really struck here.

Thanks in advance,
Jiju Alex.


Login controls and custom membership provider

  

I am working on implementing a custom membership provider that works against an existing schema in my database and have a few thoughts/question.


The login control will automatically call the ValidateUser method of the membership provider, so no matter how I implement the provider the only thing the login control cares about the bool value returned by this method.  What I am confused about is there could be numerous reasons why a login attempt failed; user is locked out, too many tries in a period of time, etc.  There is no way that I see to convey that to the control so it could display the proper message.  Other properties of the membership provider such as PasswordStrengthRegularExpression have absolutely no effect on the login control as well (out of the box), I would have hoped that it would automatically somehow translate into regular expression validators, but that doesn't seem to be the case.  So it seems that I need to initialize the login control properties with these settings out of the provider configuration if I want them to take on the control itself.

If the only thing that the Login control does out of the box (without manually handling events and doing the initialization as described above) is call the ValidateUser method on the membership provider, I see no way to convey back to the Login control why the validation

steps for creating a custom master page in SharePoint 2010

  

Hi

Can any one please help me out to prepare a custom master page in SharePoint 2010 designer and deploy it to SharePoint site.

i have a html page , which i want to put in my custom master page.

please help

 


How to apply a custom master page to all the existing site collections, sub sites in sharepoint 2010

  

Hi,

my custom branding master page is applying to the newly created site collection or sub sites using feature stapling.

but my intension is already created site collections and sub sites, here i am not able to apply custom master page to site collections and sub sites.

pls help me. i need to complete this task today EOD.


Can i reuse MOSS custom membership provider in SPS 2010

  

I have a MOSS 2007 site which uses the fba  with ustom membership provider. and now i want to reuse that membership provider in the new SPS 2010 claims based authentication which supports FBA.

Here, my question is  can i reuse the DLL which created the custom membership provider and deploy ti in the new sps 2010 environwemt?

will that suffice? i will  deploy the dll in new sps 2010 central admin web.config and sts toen service webconfig and my custom web appln's web.config. wil  tyhat enoughto up& runnning the new web appln with FBA enabled?

i am validating the users against a web service in teh MOSS envmnt.

Can anybody help me the right appraoch with links/resources.

 

 

 

 


PrasadWT PrasadWT

How to deploy custom membership provider dll in STS web config in SPS 2010

  

i am having a custom membership provider dll which i want to deploy in the STS webconfig file in sps 2010. i donno how to deploy it. since sts webconfig doesnt have any <system.web>, <sharepoint> entries and where shoudl i add these? will that suffice to deploy my custom membership provioder assembly? also  i am NOT  using any oob membershi p providers. am using a CUSTOM PROVIDER.  can anyone help by what are the steps and where & wher to add those entries.  below one isused for  aspnetsqlmembership provider.                       

can i use the same pattern with changes in the name of the assembly withmy  custom provider will work for me/

<system.web>
  <membership>   <providers> <memberships>  </membership> ....

any sample code with the sts web.config format /src code will be helpful

 thanks

 


how to create custom login page in SPS 2010

  

hI,

i  want to create a cutom login page in SPS 2010. when i created a classlibrray and mycustomloin.aspx page , which derives from

IdentityModelSignInPageBase instead of layoutspage class. i  have deployed teh dll in GAC and refereered in the aspx page

<%

 

@ Page

Custom Role Provider Issue In Sharepoint 2010

  

Hi,

I have? migrated my existing wsp solution that contains working custom FBA membership and role providers to Sharepoint 2010. As stated in several migration or custom membership provider articles that I fround in Net for Sharepoint 2010, I followed the steps below:

  • Created my FBA login page under _layouts, I inherited it from FormsSignInPage.
  • Set authentication of the web application to Claims
  • Enabled forms based authentication for the application and set my custom provider names.
  • Added provider names to not only my application's web.config but also to central application web.config and securitytoken web service's web.config (which is located in [14 hive]\WebServices\Securitytoken).

The current issue I am having is as follows:

  • When user types in username and password and presses the login button in the FBA login page, yellow "screen of death" :) is displayed indicating: "The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentati

How to deploy custom membership provider dll in STS web config in SPS 2010

  

i am having a custom membership provider dll which i want to deploy in the STS webconfig file in sps 2010. i donno how to deploy it. since sts webconfig doesnt have any <system.web>, <sharepoint> entries and where shoudl i add these? will that suffice to deploy my custom membership provioder assembly? also  i am NOT  using any oob membershi p providers. am using a CUSTOM PROVIDER.  can anyone help by what are the steps and where & wher to add those entries.  below one isused for  aspnetsqlmembership provider.                       

can i use the same pattern with changes in the name of the assembly withmy  custom provider will work for me/

<system.web>
  <membership>   <providers> <memberships>  </membership> ....

any sample code with the sts web.config format /src code will be helpful

 thanks

 


Categories: 
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