Uses a
server relative site URL
instead of asite id
Uses a
list title
instead of alist id
Expands the
fields
attribute and restricts the expanded fields to
- id
- Title
- Author (Created by)
- Editor (Modified by)
a=[ | |
{ sortIdx: 5, value: "E"}, | |
{ sortIdx: 6, value: "F"}, | |
{ sortIdx: 1, value: "A"}, | |
{ sortIdx: 4, value: "D"}, | |
{ sortIdx: 3, value: "C"}, | |
{ sortIdx: 2, value: "B"}, | |
]; | |
function move(elToMove, targetSortIdx) { |
References.
- Migrate apps from Azure Functions version 3.x to version 4.x
- Azure Functions runtime versions overview
- Work with Azure Functions Core Tools
- Durable Functions versions overview
- Extension bundles
- [Fix output data serialization format in Node.js functions #2007](https:
/** References: | |
* https://www.npmjs.com/package/azure-ad-verify-token | |
* https://github.com/justinlettau/azure-ad-verify-token | |
* https://liangjunjiang.medium.com/verify-and-decode-azure-activity-directory-token-bc72cf7010bc | |
* https://liangjunjiang.medium.com/azure-active-directory-api-v1-0-vs-v2-0-5c75fb2b1154 | |
* https://www.npmjs.com/package/jwks-rsa | |
* https://www.npmjs.com/package/jsonwebtoken | |
* https://www.voitanos.io/blog/validating-azure-ad-generated-oauth-tokens | |
* | |
* NOTE: |
console.clear(); | |
const isEmptyString = (s) => { return (typeof s === "undefined") || (s === null) || (s.length < 1); }; | |
camlCompareOp = "Or"; | |
camlPredicate = "Contains"; | |
options = {}; | |
options.queryByUniqueIdentifier = "90911"; | |
//options.queryByPayrollNumber = "90919"; | |
//options.queryByLocation = "01-001"; |
Using this technique you can acquire a delegated access token for a resource, SharePoint or the Graph API, and pass that token onto a HTTP triggered Azure Functions endpoint for it to use to call the appropriate API.
This is a simple re-imagination of the on-behalf-of flow involving a secured Azure Functions endpoint then executing an OAuth on-behalf-of flow to exchange the received access token for one which can be used to call an API on behalf of the calling user.
Documented originally by Paolo Pialorsi and Joel Rodrigues
Microsoft identity platform and the OAuth 2.0 client credentials flow
Details about the client credentials
flow
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
Microsoft identity platform application authentication certificate credentials
Details about the certificate assertion
value for the client credentials
flow