java Authenticate an EWS application by using OAuth - exchangewebservices

I have an java app which supports Basic Authentication,Microsoft is disabling the Basic Authentication option across all Office 365 Tenants on October 1.
In this case, how do I achieve Authenticate an EWS application by using OAuth using java? Is there a proper documentation with Java code available?Thanks a lots.

It depends what libraries your using in Java but regardless of the language your using the first thing you will need is an application registration and you need to decide on the type of oAuth authentication flow you are going to use which depends on the type of application you have see https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth as a starter

Related

How to be FIDO Compliant with existing registration / login functionality

I have existing website with Registration & Login functionality. I want to make this process FIDO Compliant with implementation of UAF / U2F and later FIDO2. Unfortunately couldn't find step by step series of tutorials.I want to implement this using PHP.
Good starting point for WebAuthn is mdn, you get the basic idea of how it works
https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API
and then you can just follow webAuthn specification to implement relying party operations (7) on a server.
https://www.w3.org/TR/webauthn/
and use the APIs on a client described in 5.1.3 registration and 5.1.4 authentication
and also there is an example RP implementation provided by google, thought its in java
https://github.com/google/webauthndemo
other great source of information for FIDO protocols generally is the yubico website, they even have a php library which might simplify things for you
https://developers.yubico.com/U2F/Libraries/List_of_libraries.html

Can we use Openstack Identity API for creating Single sign on for web application

Can we use Openstack Identity API to Create Single Sign on for web Application. If it is possible can somebody give an idea where to start. Like how to get started with Identity API.
You can, but why bother? There are so many other standards and libraries that would do a better job.

Liferay REST web service API

I'm trying to implement REST service in a liferay portlet. Found no way other than using JSON web services in liferay. I don't need to implement web services to interact with the database directly, meaning I dont want to build services to use Json web service. Is there anyway to implement REST web services in a liferay portlet without involving service building, more like a custom web service? Also provide any examples available if possible. Thanks in advance.
For Spring based portlets, there's an excellent and still valid blog Using RESTFul services with Liferay that describes implementing REST services with Spring MVC controllers and Liferay PortalDelegateServlet.
Another option might be to handle the REST calls as resource requests (it. to implement a controller with resource mappings - #ResourceMapping).
Since Liferay version 7.0 there is support in Liferay for deploying JAX-RS endpoints as OSGi services.
In Liferay 7.0 you need to use what is called RestExtender (https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/jax-ws-and-jax-rs)
From Liferay 7.1 version there is also support for JAX-RS OSGi Whiteboard, which also allows to deploy JAX-RS applications as services and adds a lot more flexibility (https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html) (https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-1/jax-rs)

Web service API for DRMAA on SGE

Does anyone know of any project to expose the DRMAA API (job scheduling and maintenance API) from SGE (Sun Grid Engine) as a web service API? A RESTful API would be best.
I do not think there are any web service API for SGE. I found drmaa-python pretty easy implementing in python script that can be called from server side scripts like PHP.
There is nothing like this available at the moment, but:
The Open Grid Forum started a new standardization activity to define how DRMAAv2 can be exposed as RESTful API. The specification draft is publicly available.
Since more and more people ask for such a remote interface, implementations might be available pretty soon. They are most likely to be announced by the OGF OCCI working group, so follow them if you are still interested.
Mapping such an implementation to the DRMAAv1 library in GridEngine should be relatively straightforward.

Blackberry web services

I am looking to expose an existing app as web service for use on the Blackberry. So I have some questions around the blackbery and its use of web services.
I am wonderings is it possible to use Restful web services (using JSON as the payload) on the blackbery or is SOAP the only web services the balckbery can do?
In recent times I have used the Jersey framework for web services in normal web apps and I think this would suit my current requirements,just need to know if this is possible on the blackberry. Effectively the blackbery would only need to send/recive/procees HTTP calls and JSON so I would imagine this would be possible?
Also I may have to use the enterprise blackberry server, how do I route requests to/from the app (and the enterprise server) to the back end existing app. Is this all seamless with some config settings on the enterprise server or does the the blackberry application need to handle this in a certain way?
You can definitely use a RESTful service and JSON on the BlackBerry. Depending on the version you are targeting you may have to download a JSON library. There is also a good reference guide at http://java.sun.com/developer/technicalArticles/javame/json-me/ you can look through.
The Enterprise server shouldn't affect your ability to use this, as you're essentially making the same calls a browser would, and it will know how to route that traffic.