adf安全性中的登录过程流程

时间:2015-05-05 08:25:28

标签: oracle-adf

HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
Subject login = Authentication.login(new URLCallbackHandler(username, getPassword().getBytes()));
ServletAuthentication.runAs(login, request);
ServletAuthentication.generateNewSessionID(request);

String loginUrl = "/adfAuthentication?success_url=/faces/homePage.jspx";

String activityURL = ctx.getGlobalViewActivityURL(loginUrl);
ext.redirect(activityURL);

现在假设我们正在使用AD服务器进行用户身份验证,对于我们获取Subject对象的行,weblogic如何知道它应该在weblogic中使用AD服务器提供程序设置。如果我们在weblogic中使用AD服务器提供程序,有人可以解释这里的流程吗?

1 个答案:

答案 0 :(得分:1)

我解决了这个问题,实际上代码运行正常..但广告服务器设置错误。 weblogic中列出的用户是显示名称而不是登录名。

干杯