Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Provides an authenticated proxy to Office 365 + SharePoint Online or an on-prem SharePoint installation. Use as a part of development with SpFx Workbench or a custom toolchain.

License

Notifications You must be signed in to change notification settings

valorekhov/sp-workbench-api-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sp-workbench-api-proxy

Provides an authenticated proxy to Office 365 + SharePoint Online or an on-prem SharePoint installation. Use as a part of development with SpFx Workbench or a custom toolchain.

Setup

  1. Install sp-workbench-api-proxy dependency
npm i --save-dev sp-workbench-api-proxy
  1. For development as a part of SPFx Workbench:
const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
const spApiProxy = require('sp-workbench-api-proxy')

build.initialize(gulp);

gulp.task('serve2', ['serve'], function(){
    spApiProxy(require('./config/sp_deploy_settings.json'))
})
  1. Create a new file ./config/sp_deploy_settings.json (from project root)
{
  "siteUrl": "https://{tenant}.sharepoint.com/sites/{site}/",
  "projectName": "project",
  "credentials": {
    "userName": "{user}@{tenant}.onmicrosoft.com",
    "passWord": "**************"
  }
}
  1. Add the following line to .gitignore
/config/sp_deploy_settings.json
  1. Run workbench with proxy
gulp serve2

About

Provides an authenticated proxy to Office 365 + SharePoint Online or an on-prem SharePoint installation. Use as a part of development with SpFx Workbench or a custom toolchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published