Contents
Save the page and test it in your browser by manually entering the new custom URL and page name. Confirm it looks ok and that both logins work. Update the default login page for your authentication provider, pointing it to the new custom page URL you just tested in your browser.
How to authenticate in Office 365 with CSOM?
All you have to do is pass an instance of the SharePointOnlineCredentials class to the ClientContext.Credentials property. The SharePointOnlineCredentials takes in two parameters which are your Login Email for your Office 365 SharePoint site and your password in the SecureString format.
Where can I find the authenticating.net CSOM class?
This class is part of the Microsoft.SharePoint.Client.dllitself so you don’t have to include an extra assembly in your application. All you have to do is pass an instance of the SharePointOnlineCredentialsclass to the ClientContext.Credentialsproperty.
What are the parameters of SharePoint onlinecredentials?
The SharePointOnlineCredentialstakes in two parameters which are your Login Email for your Office 365 SharePoint site and your password in the SecureStringformat. You can grab all the required SharePoint 2013 client assemblies from here: http://www.microsoft.com/en-us/download/details.aspx?id=35585
How to update default login page for AUTH provider?
Update the default login page for your authentication provider, pointing it to the new custom page URL you just tested in your browser. If needed, copy the new custom folder to the LAYOUTS location on each server in the farm and/or serving content for the site.
Simply call that function when clicking the button, and voila! With SharePoint 2013 the same code will work with bit modification. As SP2013 supports code written in SP2010 as well, and it has both 14 hive and 15 hive, you need show in your code which mapped folders to look for.
Where is the employee login button in SharePoint?
The login button is a standard ASP-style button following the password. In this example, we’re adding an “Employee Login” link right under that for our internal users. Beneath the existing login button, add a new row containing a link like so. Alternatively, you can add a button that changes the HREF location when clicked.