wwv_flow_custom_auth_std.login重定向到当前页面

时间:2011-06-16 20:30:25

标签: oracle authentication redirect oracle-apex

我正在构建一个顶级应用并使用wwv_flow_custom_auth_std.login()功能。我当前应用的主页是第102页。

我要做的是在标头之前运行一个进程,该进程将验证用户并调用wwv_flow_custom_auth_std.login()方法并将用户重定向到当前页面。基本上我要做的就是重定向到错误页面,如果找不到用户,但无论如何我的问题是,当我重定向到我当前所在的页面时,我不断收到重定向错误。这是不允许的?我的功能看起来像这个

wwv_flow_custom_auth_std.login(P_UNAME       => :P102_USERNAME,
                              P_PASSWORD    => :P102_PASSWORD,
                              P_SESSION_ID  => v('APP_SESSION'),
                              P_FLOW_PAGE   => :APP_ID||':102');

1 个答案:

答案 0 :(得分:1)

更简单的方法是创建身份验证方案。这可以在Shared Components -> Authentication Schemes

中完成

在默认登录页面上提交后,wwv_flow_custom_auth_std.login程序已被调用,因此您可能无需调用它。

相关问题