Hybrid authentication for on-prem exhange server - java

I have an daemon app which supports Basic Authentication using Exchange Web Services and also supports Modern Authentication for Exchange Online using Microsoft Graph APIs.
Now I have a requirement to support Hybrid Authentication in the same application.
I went through the following documentation and found that Rest API support is deprecated
https://learn.microsoft.com/en-us/graph/hybrid-rest-support
In this case, how do I achieve hybrid authentication in the same application using java? Is there a proper documentation with Java code available?

Related

Spring Boot Oauth2 and google services api

I have an web application whcih allows only google users and uses spring-boot-starter-oauth2-client to obtain authentication. I want to integrate Google API into my application, but all examples using its onw Oath2 process to authenticate user. How can I reuse existing spring boot google login for interaction with google API services?
Thanks!
You have to use the spring-boot-starter-oauth2-client dependency that allows the client registration for oauth2 providers, but before that it's necessary the client-id and client-secret provided by your oauth2 provider (such google). Here's a nice guide of how do that.

Implementing SAML into existing Java Tomcat Web App

We already have an IDP. We already have a metadata.xml.
The Application uses Netbeans, Tomcat and Apache. It is not Maven. Just Java.
We need to implement SAML SSO into this non-Maven application.
What is the most straight forward solution?
There are a number of Java libraries that allow one to integrate with a SAML IdP. Here is what comes to mind:
Spring Security SAML: https://github.com/spring-projects/spring-security-saml with a sample application demonstrating the functionality: https://github.com/UniconLabs/spring-security-saml-java-sp
Note that SS SAML uses OpenSAML v2 which has been long deprecated. There are plans to get it updated "soon", but nothing official yet.
You may also use pac4j: http://www.pac4j.org/2.2.x/docs/clients/saml.html This is a Java library based on OpenSAML v3 that provides most if not all of SS SAML functionality in its own ways.

How to deploy SDK Java with Eclipse?

I want deploy OKTA Java SDK on Eclipse.
On the client side, we are using MS Excel (VBA).
On the server side, we are serving the requests using pure Java Servlets.
Can anyone help me implement OKTA Java SDK ?
The Okta SDK is for management tasks, we are looking into tie into our authentication API. For web apps, our first choice would be to use an OIDC (or OAuth 2) library. There are a few OAuth libraries that have support for Servlets, I think Apache Oltu does.

How to use ADFS in Java based web application

I am working on one Java based web application where I need to write Java code so that this web application can talk to ADFS for authentication purpose.
How to achieve it?
For ADFS 2.0, you can use WS-Federation or SAML.
You need to implement a client-side stack that will handle all the protocol details for you.
Refer: SAML : SAML connectivity / toolkit.

SSO implementation using Shibboleth with Google App Engine java

I am developing an application on Google App Engine in java. In this application I have to implement SSO using SAML2. My google app engine application will act as service provider and identity provider will be a separate server. I have just to write the SP side of SSO. I am new to SAML and did much google on SAML and come to basic flow of user authentication in SSO. I found opensaml library that can be used to handle SAML messages between Idp and SP. I also found Shibboleth which is the implementation of opensaml library. I am very confuse on the decision of choosing opensaml or Shibboleth. can anyone suggest me on choosing opensaml or Shibboleth and if some one have found any tutorial on SP implementation of SSO in Google app engine he can also share it.
You can embed Spring SAML Extension (product built on top of OpenSAML) into your application. It will enable you to act as a SAML 2.0 Service Provider.
You can see a working demo of such approach at http://saml-federation.appspot.com/ which shows a Spring SAML sample application connected to SSO Circle IDP.
Shibboleth doesn't provide a SAML SP component which can be embedded into applications. The Shibboleth SPs act as plugins to Apache or IIS web servers and cannot be used with Google App Engine.
You can also see the Spring SAML as an example of SAML 2.0 WebSSO implementation to follow in case you'd like to write it youself. Latest documentation is available in Spring repos, sources are at GitHub.

Categories