用于ADFS的SAML与angularjs + java + jetty Webapp [英] SAML with ADFS for angularjs+java+jetty webapp

查看:182
本文介绍了用于ADFS的SAML与angularjs + java + jetty Webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,前端是在AngularJS中实现的,它通过调用REST API与后端服务器通信.后端是Java REST Server,它使用部署在Jetty中的 reslet框架实现.

I am working on a webapp, the Front-end is implemented in AngularJS which talks to back-end server by invoking REST API. The back-end is Java REST Server implemented using reslet framework deployed in Jetty.

当前,当用户登录Web应用程序时,将调用REST API,然后将其转到Java REST服务器.然后,服务器对用户进行身份验证.

Currently, when a user logs into a web app, a REST API is invoked which then goes to the Java REST server. The server then authenticates the user.

我想使用SAML实施SSO.因此,当公司用户尝试登录该应用程序时,必须将其重定向到ADFS.如果用户成功通过身份验证,则必须允许他登录该应用程序.

I want to implement SSO using SAML. So when a corporate user tries to login to the app, the user must be redirected to ADFS. If the user is successfully authenticated he must be allowed to login to the app.

我想知道如何开始?我看过sam2-js库,但是它似乎是基于NodeJS的服务器.我不太确定它是否可以与前端的AngularJS一起使用.

I want to know how do I start? I have seen sam2-js library, however it seems to be for NodeJS based server. I am not quite sure if it can be used with AngularJS on frontend.

推荐答案

具有SAML的SSO涉及浏览器重定向,因此流程在angular和ADFS之间.

SSO with SAML involves browser redirects so the flow is between angular and ADFS.

没有Java后端.

所以Jetty无关紧要.

So Jetty is irrelevant.

SSO与REST无关.它们是通过两种不同方式处理的两种不同流程.

SSO has nothing to do with REST. They are two different flows handled in two different ways.

SAML不是适合角度的SSO协议.这就是为什么您找不到任何示例的原因.

SAML is not a suitable SSO protocol for angular. That's why you can't find any examples.

您需要将OpenID Connect与ADFS 4.0一起使用. ADAL 是这种方式去.

You need to use OpenID Connect with ADFS 4.0. ADAL is the way to go.

这篇关于用于ADFS的SAML与angularjs + java + jetty Webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆