Authentication in Office Add-ins when Dialog API is not supported - iframe

Can anyone help to understand how can I implement alternative of Office Dialog API
I am trying to implement web add-in support for Exchange 2013
accounts in Outlook web app(Outlook web Access).
Our add-in is working completely fine with Office 365, Outlook
Desktop and Mobile as well.
As per my research Dialog API is not supported for my requirement, So
I have to go for some classic popup mechanism.
We have Angular 6 SPA that redirects to Identity Server for
authentication.
So I am trying to implement the same for my case But after clicking on Signin, popup is opened but redirection to identity server is being blocked.
Update :
As per the documentation Dialog API is supported for Mailbox > 1.3.
But as I am using exchange 2013 accounts in Outlook web App(Outlook web Access) for that Mailbox
version is 1.1.
Ref: https://learn.microsoft.com/en-us/javascript/api/office/office.ui?view=office-js
I tried Office.context.requirements.isSetSupported("DialogApi",1.1)
to check If It is supported or not.It returned false.
Reference for code: Office.context.ui undefiend for Outlook Web App with Exchange 2013 account
So How can I eliminate or Is there any alternative of this ?

Related

open Outlook in mode new Mail in ASP.NET Core

i'm developping an ASP.NET Core project with Angular as front-End.
after a user creates an invoice, i want to open outlook in mode 'New mail' with the customer adrees mail prefilled and the invoice document attached.
there is no problem in sending the cistomer mail or creating the invoice document (PDF).
the roblem is how to open outlook in the user pc and attach the document to a mail ready to be sent.
Thanks a lot.
The best what you could do is to use the mailto protocol from your web application for opening the default mail client.
The Considerations for server-side Automation of Office article states the following:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
Besides a mailto link, your other option is creating an EML (MIME file) with the subject/body/attachment pre-populated. The desktop version of Outlook will be happy to open an EML file, and if the message includes X-Unset: 1 MIME header, the mesage will be show in the draft (unsent) mode ready to be sent.

How to create dot net core SAML application

We have an ADFS 4 server and I'm trying to create a dot net core web app in Visual Studio 2019 that uses SAML "flow" for authentication/authorization.
I remember seeing a tool/extension in an old version of Visual Studio (2015?) that allowed you to configure some details of authentication.
But in VS2019, when I select "Cloud - Single Organization" on the new app wizard, I can't tell whether it's creating WSFed, SAML or OAuth protocol app.
Is it because AzureAD defaults to SAML?
No - Azure AD defaults to OpenID Connect.
Yes - there was a tool back in the day but that was for WS-Federation (WIF).
There was a SAML implementation of WIF for a brief moment but it was withdrawn and never formed part of the tool.
Microsoft has never had an official SAML client stack.
There are a number of options here.

Adding Company Web App to Office 365

so I don't know a whole lot about Office 365 and have been learning other frameworks that do not include ASP.NET.
The company I work for is using is Office 365 and CRM. I read you can interface CRM with a web app. What I am wondering is if a company had a web application they used on their intranet, is it possible to migrate it to Office 365? Possibly as a Site? Is it possible to develop a web app that shows up under Office 365 and is therefore accessible to employees at that Office 365 account? You would need access to the MS SQL and IIS web server running, can you get that kind of access through Office 365?
The answer is yes, you can have your application hosted on Azure or anywhere with all you backend and host it as an App in o365.
What i suggest you to do, Get Office Development tools for VS 2015, just create a project from under Office/SharePoint section and select SharePoint Add-In project template and check out the created project. you will see that an asp.net web project has been created and another project as a shell for deploying this app as SP app. you do have the option to host this app anywhere :)
Check out this tutorial: https://msdn.microsoft.com/en-us/library/office/fp142379.aspx
Hope this helps.
Yes - you can build a web application and have it appear in the Office 365 app launcher. However, there are some specific architectural requirements such as integration with Azure AD and single sign-on.
Have a look at this article: https://msdn.microsoft.com/en-us/office/office365/howto/connect-your-app-to-o365-app-launcher?f=255&MSPPError=-2147217396

how to implement Converse.js An XMPP chat client for asp.net 4.0 web site

i just found one nice article about online chatting application with converse.js i read it's documentation and i like it. how ever i just have doubt it is there this chat facility can supported with asp.net 4.0 web site. Here i just want to know about in details is it supported with .net application.
here it's tells XMPP Chat server. Is there any additional cost for purchase it. After that how i setup this server for chat facility. here it's gives advice for identity i have to manually register user with it and i can use with my own web site.
Is there any one have idea how i implement this to my web site. Step By Step
Please help me..
Since you mentioned Asp.net so I am assuming you are talking about windows platform. I am using Openfire for XMPP messaging since last 5-6 years now and it is very easy to use and stable XMPP server. You can install it on your server and then configure Converse.js and XAMPP in conjunction with it to get web client chat feature. I referred this link to configure XAMPP along with Openfire: https://community.igniterealtime.org/docs/DOC-2954
Basic steps:
1. Install Openfire
2. Install XAMPP and configure as given in above link
3. Configure Converse.js in Asp.net application

Authentication using OAuth in Web API

I'm working on a project using ASP.Net MVC5 which also includes a Web API. The API will be for internal use only. I'm using the OWIN library to provider authentication.
I'm having a difficult time figuring out how to correctly implement authentication through the API. I was planning on using OAuth 2.0 but the problem with OAuth is that the user needs to login through a browser page instead of a native login screen. So I was wondering if it is possible to somehow skip the browser.
I've found this example which creates it's own OAuth Authorization Server. But it doesn't show how to make the login native.
If it's a highly trusted client, then you can use the OAuth2 resource owner password flow. You can look at the VS2013 SPA template and/or read on this post:
http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/
You could use Thinktecture.IdentityServer v2 as a light-weight security token service.
https://github.com/thinktecture/Thinktecture.IdentityServer.v2
You will need to create a WOPI host, which is basically a software solution that can take advantage of the browser-based Office(office web).
Create a custom WOPI host and configure it to use Office Web Apps Server to provide the browser-based file viewing and editing for Office files.
Nice sample on Microsoft MSDN

Resources