0
votes

I am using Office.js, javascript and react to create excel add-ins. Wants to implement single sign-in flow using ribbon button. Once user successfully sign in then only wants to show task pane to user.

  1. Sign in button present in ribbon.

  2. I do have third party URL like below and if user authenticate successfully it redirect to given application URL. https://google.com?response_type=abc&client_Id=xyz&**redirect_uri=https://application-url-to-redirect**

  3. Above URL opens username/password window and upon providing valid details its redirect user to application URL and then task pane should open.

please help/suggest how can i implement this functionality. Please guide me. Thanks in Advance.

1

1 Answers

0
votes
  1. Configure the add-in to use a shared runtime.
  2. Use an Add-in command to configure a button.
  3. The button should call code in a function file.
  4. The function file code should use the Office dialog to authenticate to Google.
  5. When the authentication completes, the code in the dialog should send a message to the parent function file.
  6. Code in the function file should close the dialog and then show the task pane.