SAML SSO with Node and Angular 2+ - node.js

The system I am working with is made in PHP, and I was asked to upgrade it to a Node and Angular based System.
The credentials are dealt with SAML with ADFS Service using SSO.
Since this stuff works with sessions any work around when working with Angular2+ and NodeJs, I tried using passport-saml and seems to make the Node part work, but it doesn't authenticate when adding the Angular HTTP calls.
Besides, how to get groups and info from the ADFS?

Related

How to implement SAML with Keycloak and Hapi JS framework?

Problem: I am trying to integrate SAML SSO using Keycloak with HapiJS framework for NodeJS. I am getting "Invalid request" when the user is redirected to Keycloak as shown below. The npm package I am using is "hapi-passport-saml".
What I already tried:
HapiJS + Okta (SAML): By using this same npm package "hapi-saml-passport", I was able to integrate Okta SAML with my app and it is working successfully.
ExpressJS + Keycloak (SAML): Instead of HapiJS, I have successfully integrate keycloak with ExpressJS using packages "passport" and "passport-saml". But unfortunately these packages can't be used with HapiJS (if you know how to use these with HapiJS, please share that also).
Hapi + Keycloak (OpenID connect): I was able to integrate "OpenID connect" with Keycloak and HapiJS using package "hapi-auth-keycloak". But I want to integrate SAML, not OpenId connect.
There are multiple npm packages available for integrating OpenID connect with Keycloak and HapiJS, but none of them is supporting SAML.
Pointers I noted:
While integrating keycloak SAML with ExpressJS, I saw that a "SAML Request" is being appended in the URL while redirecting to keycloak as shown below (highlight blue in network requests) but in case of HapiJS, this request is not being appended (shown in network tab in screenshot 1):

Is it possible to implement SSO in a ReactJs application with SAML2? if possible how?

I am new to this field and have a lot of confusions, in this case, I have to implement single sign-on in a ReactJs application where it's back-end is node express using OKTA as the IDP?
Please share your thoughts.
Thank you
If you are deploying your ReactJS application using express, you can use passport-saml for managing your saml workflow.
The basic idea should be to serve up your app only if you recieve a valid saml response from the idp.
You can check more here : passport-saml
If u are using your react app without express, you can connect your okta app directly to your react sdk with open idc (okta has an option for this).

Implement kerberos auth to my organization angular 7 and node.js web app

I am a beginner to Kerberos SSO integration in Angular + Node project. I went through many of the links and forums related to it. However, not able to figure out, From where to start?
Still trying to find a way to implement the Kerberos SSO in my application.
I already read and understand the concept of Kerberos, but I can't see any examples of how to use it practically.
Below is the scenario:
I have an Angular application, I need that only registered to the Active Directory computer will be able to access the web.
I have to do the auth using Kerberos, but I don't know how to start.
Thanks for helping.

Building an Website (in node.js) and an API in .net core 2.1 with jwt. How to connect them?

I am building an Website and API for a school project.
The website is being made in Node.jswhile the API is built in .netCore version 2.1 with JWT authentication.
The API is working properly and if i use Postman to access the api with the token it works, but how i do it with my website?
I will use the api information to show it using JavaScript.
After some research i didn't found anything.
Any idea how can i do it?
I doubt if using Node.js as a client application is a good approach since it is more commonly used as a backend server. I would suggest you use some js Frontend Framework such as Angular or React.

Google 2 Factor Authentication with Angular and NodeJS

I am looking for API and Example that can help me to build two-factor authentication of my website for the server as well as the front side.
I want to build something like this, http://ngtfaweb.azurewebsites.net/#/home
You could use Passport Js if you are using node js as backend or you could use services like Auth0 which are one step solution for multiple Oauth.

Resources