SPAuthN 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package SPAuthN --version 1.0.5                
NuGet\Install-Package SPAuthN -Version 1.0.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SPAuthN" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SPAuthN --version 1.0.5                
#r "nuget: SPAuthN, 1.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SPAuthN as a Cake Addin
#addin nuget:?package=SPAuthN&version=1.0.5

// Install SPAuthN as a Cake Tool
#tool nuget:?package=SPAuthN&version=1.0.5                

SPAuthN - SharePoint .Net auth via Node.js

NuGet version Downloads Gitter chat


The wrapper for node-sp-auth and node-sp-auth-config for usage in .Net assemblies.

Allows authenticating in SharePoint in whatever you need scenarios and provides a wizard-like approach for building and managing connection config files.


Hey! Attention, please! On the first place, it is a crazy experiment which solves one of our very specific tasks for a frontier technology stack with SharePoint/Node.js/.Net where we need running the same exactly auth mechanisms which we use in Node.js but in .Net applications. We know exactly what we're doing and why. Please use the lib only in the case when native .Net credentials strategies do not suite your app.

For whom is this library?

For folks who used to create applications for SharePoint with authentication level powered by node-sp-auth-config and node-sp-auth-config and who desire reuse authentication settings parameters and formats in .Net application.

For geeks from geeks passionated with funky technology experiments on their way doing awesome stuff.

For the cases when one tool should rule *all possible authentication strategies in SharePoint.

And definitely not for the situations when these work for you:

  • context.Credentials = new SharePointOnlineCredentials("username", "securepass");
  • context.Credentials = new NetworkCredential("username", "password", "domain");
  • Any other native authentication routes.

Supported SharePoint versions

  • SharePoint Online
  • SharePoint 2016
  • SharePoint 2013

Authentication strategies

  • SharePoint Online:
    • Addin only permissions
    • SAML based with user credentials
    • ADFS user credentials
  • SharePoint 2013, 2016:
    • Addin only permissions
    • User credentials through the http NTLM handshake
    • ADFS user credentials
    • Form-based authentication (FBA)
    • Forefront TMG authentication

How to install

Install-Package SPAuthN

How to use

Options options = SPAuth.GetAuth();

That's it! Really!

Now options.headers object contains Cookie or Authorization which can be injected to web requests. This is a low level, session timeouts should be controlled manually.

See more on GitHub

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SPAuthN:

Package Downloads
SPExec

SharePoint Executor The library for command line usage of SharePoint applications for deploy/retract/execute custom solutions based on CSOM (or SPMeta2 CSOM) console applications The solution that helps to execute custom code for SharePoint 2013/2016/Online based on console application (command line arguments) on different stages like deploy, retract or execute The main idea of the solution is to help to execute custom code in SharePoint in different situations and solutions and to standardize for similar solutions --- The project and details on github - https://github.com/sergeisnitko/SPExec

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.1 777 2/13/2020
2.2.0 578 2/13/2020
2.1.3 669 7/19/2019
2.1.2 594 6/15/2019
2.1.1 677 6/13/2019
2.1.0 2,442 4/3/2019
2.0.4 938 8/17/2018
2.0.3 2,882 3/27/2018
2.0.2 974 3/27/2018
2.0.1 1,023 2/23/2018
2.0.0 4,171 12/9/2017
1.1.4 1,306 12/5/2017
1.1.3 920 12/5/2017
1.1.2 1,473 12/1/2017
1.1.1 1,007 12/1/2017
1.1.0 1,288 11/30/2017
1.0.7 1,096 11/29/2017
1.0.6 1,662 11/28/2017
1.0.5 1,016 11/1/2017
1.0.4 1,007 10/30/2017
1.0.3 971 10/30/2017
1.0.2 1,006 10/30/2017
1.0.1 1,119 10/29/2017
1.0.0 1,298 10/28/2017

headers optimization