Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
179 views
in Technique[技术] by (71.8m points)

authentication - Authenticate AWS Service to access data from SharepointOnline site

We are building a Lambda service running on AWS, which on a specified frequency will retrieve content from the SharePoint Online site by calling the SharePoint API (GetByTitle('')/Items).

The SharePoint online site is protected by Azure AD.

The authentication approach does not require user interaction so that it will be a service to service authentication. Hence we are choosing Client Credential Grant Flow.

The question I have is, for the Lambda service to authenticate and access content in the SharePoint online site, can it directly authenticate using Azure AD or is there any other service that needs to be setup ex: AzureAD Connect.

I am new to AWS, any help, additional information will be much appreciated.

question from:https://stackoverflow.com/questions/65880189/authenticate-aws-service-to-access-data-from-sharepointonline-site

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To use client credential grant service to service flow ,

  1. you need to register web API within your Azure AD Tenant directory.

  2. Furthermore create a client ID and client secret to be used by the AWS lambda

    For step 1) and 2) please refer this document from Microsoft.

  3. You can go for OAuth client credential flow as described in this article to make service to service calls. This is another way make service to service calls.

  4. In AWS Lambda, you can invoke receptive Microsoft Azure AD REST APIs.

Following are some useful reference about, AWS lambda integration with an external IdP. You can skip not need AWS resources/components mentioned in the following setup;

  1. Use AWS Lambda authorizers with a third-party identity provider

  2. Lambda authorizer Auth workflow


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...