oracle wwv_flow_custom_auth_std.login 重定向到当前页面

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6378204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 23:58:54  来源:igfitidea点击:

wwv_flow_custom_auth_std.login redirect to current page

oracleauthenticationredirectoracle-apex

提问by newtoApex

I am building an apex app and using the wwv_flow_custom_auth_std.login()function . My current app's main page is page 102.

我正在构建一个顶点应用程序并使用wwv_flow_custom_auth_std.login()函数。我当前应用的主页是第 102 页。

What I am trying to do is have a process run before the header that will validate the user and call the wwv_flow_custom_auth_std.login()method and redirect the user to the current page. Basically what I am going to do down the line is redirect to an error page if the user is not found but anyway my question is, I keep getting a redirect error when I redirect to the page that I am currently on. Is this not allowed? My function looks like this

我想要做的是在标头之前运行一个进程,该进程将验证用户并调用该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');

回答by Ro Milton

A much simpler approach would be to create an Authentication Scheme. This can be done in Shared Components -> Authentication Schemes.

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

The wwv_flow_custom_auth_std.loginprocedure is already called after submit on the default login page so there's probably no need for you to call it.

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