OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
690 stars 95 forks source link

Office.context.auth undefined #1834

Closed puentesdiaz closed 2 years ago

puentesdiaz commented 3 years ago

We are develop a Project Addin with React Node (yeomen) on Windows 10 with Microsoft Project Professional 2019 (Version 2103 )( Build 13091.20462)

We can use some object and functions like: Office.context.requirements Office.context.document.getTaskFieldAsync

But . Office.context.auth is undefined

In our taskpane.html we use :

`

` When a client open his MsProject, need chosee a Profile to login with a credentials oof Active Directory ... No problem there... So, when open a file a load our addin , web need get this domain/user (from Credentials of Active Directory How do you recommends solve this challenge? is Office.context.auth our simplest path or you have some another ideas? #office-addin
mscharlock commented 3 years ago

Hi @BeReasonable - do you mind having a look at this issue? Thank you!

ElizabethSamuel-MSFT commented 2 years ago

@puentesdiaz Are you still able to repro this?

Thanks.

ghost commented 2 years ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

ghost commented 2 years ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.