-
Notifications
You must be signed in to change notification settings - Fork 57
SharePoint on premise FBA authentication
Sergei Sergeev edited this page Aug 8, 2017
·
3 revisions
Form-based authentication for SharePoint on-premises.
-
username
- required string, fba username -
password
- required string, fba user password -
fba
- should be always equals totrue
for FBA authentication. Explicit indication, that FBA flow should be used
{
username: 'fba_user',
password: 'P@ssword',
fba: true
}
{
headers: {
'Cookie': 'FedAuth=77u/PD94bWwgdm....'
}
}
Configured FBA web application.
import * as spauth from 'node-sp-auth';
import * as request from 'request-promise';
spauth
.getAuth('https://sp2013dev/sites/dev/', {
username: 'fba_user',
password: 'P@ssword',
fba: true
})
.then(data => {
let headers = data.headers;
headers['Accept'] = 'application/json;odata=verbose';
request.get({
url: 'https://sp2013dev/sites/dev/_api/web',
headers: headers,
json: true,
rejectUnauthorized: false
}).then(response => {
console.log(response.d.Title);
});
});
- SharePoint Online
- SharePoint on-premise (2013, 2016, 2019)
- ADFS user credentials
- On demand authentication