Outlook Add-In cookies on closing taskpane - outlook

I have created an outlook add-in which has a login page and a protected page.
When the user launches the add-in, the protected page is attempted to be loaded, if the user session is not valid the user gets redirected to login page. Once logged in, until the cookie expiration, the user never needs to login again even if the task pane is closed.
This is working as expected in Outlook 15.4. But in Outlook v16.9, the behavior seems having changed.
It looks like when the task pane is closed, the cookies are being cleared out and every time the user tries to open the task pane, the login page is shown. The cookies are http-only set by the server on login.
Is there a workaround to retain the cookies on closing the add-in task pane?

Related

How to keep account active in WIX despite closing tab

I currently created a website in WIX platform and it contains a login and registration web pages, but my main problem is once I logged in and closed the tab, it tells me to login again, my question is there a way to keep the login account active even when I close the tab?

Session cookie across task pane and dialog

This page describes the authentication process for an Office add-in. It states that, for the dialog:
It does not share the same session storage as the task pane
This does not seem to match my experience. This is what I'm doing:
Task pane opens dialog with displayDialogAsync
User logs in with the dialog and a session cookie is set in the dialog.
Without passing any info to the parent (messageParent is not used), the task pane then has the session cookie set.
Is the documentation here have a mistake? Or is the session shared on some platforms but not on other platforms? I'm on Mac with Office 365.
That line in the documentation refers to the Window.sessionStorage property. Cookies and server-side storage can be shared between the dialog and the host page. I'll get the documentation clarified.

Can outlook web add-in entry page(taskpaneurl) know which task pane button triggers the visit?

My add-in has multiple drop down items when you click the add-in button.
All of them will navigate you to the same log-in page.
But after log in, the app needs to know to which subsequent page the user need to be redirected to.
For example, when I click the "play" button in the drop down, after log in I will be redirected to the play.html. And "study" will be to the study.html.
If the log in page(taskpaneurl) has no such knowledge, I need to have multiple log in page tided to different subsequent pages.
The add-in platform doesn't provide an API for this, but you can do this by providing a query string in your url.

Outlook Web-AddIn Authorization, Security Warning

When I go to Authorize?Login, A user in the desktop outlook Web-Add-In I get this image above. This is happening in my desktop app not in the web version. It is asking me to do I want do this.
I think this is happening becuase I have a javascript timer set in the background to check to see a authenticated cookie is present before asking the user to login again.
I tried using Office Authorization dialog boxes but they are not working correctly.
Outlook 2016, Exchange 2016
ALso 1 more question in the outlook desk top is there a way to see a console so I can see some of my logging I have created?
So the what I am working on is the ability for a user to login into our system, store a valid token, and the user can then record email messages into our system to track communications between them and the person doing the email.
So I ask them to log into our OAuth server, Outlook would store that token, and every time the user wanted to recorded a message they would simple press a button.

Firefox keeps asking for NT login after location.reload

I have a web application using MVC-3 that uses a user's NT login to authenticate the users of the app. For users of IE, the NT login is automatically detected and I don't have to do anything. If I use Firefox, when I first go to the URL of the app, it asks for my login credentials. And whenever I click on a button on a page (that forces the page to reload via Javascript's location.reload(true) function), it forces me to login again as well. Why is it doing this and how can I stop it?

Resources