How to disable login page in an application
how to disable login page in an application
Hi Alekh,
To turn off authentication you must create and make current a No Login Authentication authentication scheme.
or change Page / Security / Authentication as "Page is Public"
Regards,
Benz
Similar Messages
-
How to make Login Page in ADF?
Hi,
Can anyone suggest me, how to make Login Page in ADF.
I am new on ADF, is any sample code or application is there than it will be helpful for me.
please reply its urgent.
Thanks,
Ramit MathurHI,
Jspx code
<af:panelFormLayout id="pfl1" binding="#{loginBean.mainForm}">
<f:facet name="footer"/>
<af:inputText label="Username" id="it1"
value="#{loginBean.username}"
binding="#{loginBean.usernameId}"
required="true"/>
<af:inputText label="Password" id="it2" secret="true"
value="#{loginBean.password}"
binding="#{loginBean.passwordId}"
required="true"/>
<af:spacer width="1px" height="20px" id="s3"/>
<af:panelGroupLayout id="pgl3">
<af:commandButton text="Submit" id="cb1"
action="#{loginBean.doLogin}"/>
<af:spacer width="85px" height="1px" id="s4"/>
<af:commandButton text="Cancel" id="cb2"
action="#{loginBean.clearFields}"/>
</af:panelGroupLayout>
</af:panelFormLayout>
BackingBean code
public String doLogin() {
String un = _username;
String pw = _password;
// byte[] pw = _password.getBytes();
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("ctx" + ctx);
HttpServletRequest request =
(HttpServletRequest)ctx.getExternalContext().getRequest();
CallbackHandler handler = new SimpleCallbackHandler(un, pw);
System.out.println("Handler" + handler);
try {
Subject mySubject = Authentication.login(handler);
System.out.println("mySubject" + mySubject);
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);
String loginUrl =
"/adfAuthentication?success_url=/faces" + ctx.getViewRoot().getViewId();
System.out.println("loginUrl---" + loginUrl);
HttpServletResponse response =
(HttpServletResponse)ctx.getExternalContext().getResponse();
System.out.println("response---" + response);
// loginUrl = "/adfAuthentication?success_url=/faces/WelcomeScreen1.jspx";
sendForward(request, response, loginUrl);
System.out.println("---" + response);
} catch (FailedLoginException fle) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password",
"An incorrect Username or Password" +
" was specified");
ctx.addMessage(null, msg);
} catch (LoginException le) {
reportUnexpectedLoginError("LoginException", le);
return null;
private void sendForward(HttpServletRequest request,
HttpServletResponse response, String forwardUrl) {
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("sendForward--ctx--" + ctx);
RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardUrl);
System.out.println("sendForward--dispatcher--" + dispatcher);
try {
dispatcher.forward(request, response);
} catch (ServletException se) {
reportUnexpectedLoginError("ServletException", se);
} catch (IOException ie) {
reportUnexpectedLoginError("IOException", ie);
ctx.responseComplete();
// 12.Implement a reportUnexpectedLoginError() method:
private void reportUnexpectedLoginError(String errType, Exception e) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Unexpected error during login ",
"An incorrect Username or Password" +
" was specified");
FacesContext.getCurrentInstance().addMessage(null, msg);
e.printStackTrace();
} -
How to disable password complexity rules at application express 4.2 installation?
Please, provide me how to disable password complexity rules at application express 4.2 installation.
Best Regards,
MoustafaAccording to the manual you need to check "Configuring Password Protection" in Oracle Database Security Guide
In the security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531.pdf, section 3-9/p61, you'll see you need to alter the script UTLPWDMG.SQL. You''l find the script in ORA_HOME/rdbms/admin.
You'll need to change the script to your own liking. -
How to create Login page in Jdev11.1.1.4
Hi All,
can anyone please share how to create Login Page in Jdev11.1.1.4
TIA,
Bob
Edited by: Bob on Feb 18, 2011 12:40 AMBob,
[url http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/adding_security.htm#BABDEICH]The documentation tells you how.
John -
How can I change the login page for an application
Hello,
I've created an application that uses some general login page (http://localhost:7777/pls/apex/wwv_flow_custom_auth_std.login_page).
How can I make my application to use, by default, a custom Login page (in fact the 101 - Login page) ?
Thank you.Create an authentication scheme using the wizard in the Application Builder. It will normally default to using page 101. If you need to edit the scheme, you can change 101 to something else.
BTW, the procedure you named is not a login page and you should not use that procedure.
Scott -
How to create login page for application with jheadstart
Is there a how to section for jheadstart?
After reviewing the jheadstart developer's guide. I am still left with lot of questions:
1. how to create a login page to allow access to an application using username/password from a database table
2. how to change the title graphic (jheadstart demo) to (my application)
3. how to execute a query by hitting enter instead of a mouse clicking a button
Any suggestion to search for such practical questions in this forum or other blogs and such is appreciated.Mahin,
You can set Authentication Schemes for your applications. If you are using Application Express Authentication, you can create additional users from here:
1. From Application Express home, click Manage Application Express users.
2. Click Create to create users. To create end user, select "no" to developer and admin.
- Christina -
How to pass parameter from SSO login page to ADF application page?
We have ADF-JSF application (running on AS 1013) that is being protected by OID running on AS 1012. SSO login page contains (among others) paramter ssousername and I wish to pass this to my ADF application. For the testing purpose I created ADF application entry point page that has something like this:
<h:outputText value="#{param.ssousername}"/>and my sso login page has:
<input type="text" size="30" maxlength="50" name="ssousername" value="<%=str_user%>">OID and ADF OC4j are running on two different servers, same network.
So after successful login, when my page displays param passed is NULL?!
Why?I solved it with the following....when my page loads, I execute test method:
public void processLogin(String ssousername) {
Object o = JSFUtils.getUserFromSSOLogin();
if (o!=null) System.out.println(o.toString());
public static Object getUserFromSSOLogin(){
FacesContext ctx = FacesContext.getCurrentInstance();
return ctx.getExternalContext().getRemoteUser();
} -
How do I develop a login page to my application
I am new to Oracle ADF. AM developing a simple web app, but i want to integrate a login page before a user can access the main page. How do I achieve that?
Read this article http://www.oracle.com/technetwork/issue-archive/2012/12-jan/o12adf-1364748.html
Timo -
How to secure one page not entire application?
Hi there,
I'm looking for some guidance on how to secure individual pages on my site. I've read a number of articles discussing creating a login using the Application.cfc. The thing is this approach locks down the entire site. I only want to secure a page. In my scenario, if the user hasn't logged in, and goes to a profile.cfm page, they will be asked to login. Once they login, they will then be directed to the profile.cfm page.
Any and all advice would be greatly appreciated.
Thanks.
NovianHi, Novian,
An option that come directly to mind is to check for the specific page to be locked down in onRequestStart of your Application.cfc.
This approach is relatively easy to implement but may not be the best approach (don't know how it might affect performance or something else). Basically, use a conditional in your onRequestStart method to see if the page being requested by the user is the page that needs to be secured. Something along the lines of:
<cffunction name="onRequestStart">
<cfargument name="target_page" />
<cfif target_page is 'super-secure-page.cfm'>
<!--- security stuff --->
</cfif>
</cffunction>
There are, of course, other options but this was a quick and easy one that came right to mind. -
Hello,
I am using Oracle Applications 11.5.10 and I need to modify the login page by adding a custom message.
How can I do that?
I have also tried to personalize the FND_SSO_SARBANES OXLEYTEXT, but my message is too long and if I put it there the message don't wrap in multiple lines (is it possibile to wrap this message?).
Thanks in advance.
Bye
Raffaellathere is a profile option FND_SSO_LOGIN_MASK that u can use. U can set this value:
Bitmap values for optional Login Page attributes
To show these attributes, just add the numeric values of all desired
attributes. So, for example to show PASSWORD_HINT and FORGOT_PASSWORD_URL
set the profile option, FND_SSO_LOGIN_MASK to 18 (2 + 16)
Converting decimal 512 to hexadecimal
512 / 16 = 32, 0 (remainder in hex)
32 / 16 = 2, 0
2 / 16 = 0, 2
So decimal 512 is 0X200 in hexadecimal
128 = 0X80, 256 = 0X100
final int USERNAME_HINT = 0x01; // 1
final int PASSWORD_HINT = 0x02; // 2
final int CANCEL_BUTTON = 0x04; // 4
final int FORGOT_PASSWORD_URL = 0x08; // 08
final int REGISTER_URL = 0x10; // 16
final int LANGUAGE_IMAGES = 0x20; // 32
final int SARBANES_OXLEY_TEXT = 0x40; // 64
Also u can use the Framework to change some picture
Mike -
How to prevent login page in same browser when user is already authenticated
Hello,
I am using Jdev 11.1.1.6 with ADF security implemented in my application.
I have Login.jspx that redirects the user to Home.jspx on successful authentication. User can either enter Login or Home Page URL.
Please consider following scenarios:
a) User is not authenticated in current browser session
a.1) if user enters Home page URL then Login page is displayed and redirected to Home page on authentication
a.2) if user enters Login page URL then Login page is displayed and redirected to Home page on authentication
b) User is already authenticated in current browser session, a new tab is opened and
b.1) if user enters Home page URL then it directly shows Home page (already authenticated)
b.2) if user enters Login page URL then Login page is displayed -- this is the issue, it should either directly take user to Home page or invalidate the existing session and let user proceed with new.
How do I achieve this? Any help is highly appreciated.
Thanks,
JaiThanks Frank and everyone for your help.
I am able to achieve what Frank suggested using phase listener. We don't have a custom phase listener but I created one and instead of configuring at global level, just defined the ControllerClass in the pageDef of my login page.
Code from afterPhase is:
public void afterPhase(PagePhaseEvent pagePhaseEvent) {
if (pagePhaseEvent.getPhaseId() == Lifecycle.INIT_CONTEXT_ID) {
FacesContext fctx = FacesContext.getCurrentInstance();
String viewRootId = fctx.getViewRoot().getViewId();
if ("/pages/login.jspx".equalsIgnoreCase(viewRootId) &&
ADFContext.getCurrent().getSecurityContext().isAuthenticated()) {
try {
String homeViewId = "pages/home.jspx";
ControllerContext controllerCtx = null;
controllerCtx = ControllerContext.getInstance();
String activityURL =
controllerCtx.getGlobalViewActivityURL(homeViewId);
fctx.getExternalContext().redirect(activityURL);
} catch (IOException ioe) {
_logger.logException(ioe);
My only concern here is that I am hardcoding the login and home page url. Is there a better way to implement this?
Thanks,
Jai -
How to make login page navigate to last visited page?
Hi,
In our application, there are many public pages. In certain page, users need to login and then add or edit something. But login page will navigate to page 1 by default. Uses need to click some times to locate the last visited page.
I defined a new applicate item "LASTPAGE", and a new application process "setpage":
begin
if :APP_PAGE_ID!=101 then
select :APP_PAGE_ID into :LASTPAGE from dual;
else
select 1 into :LASTPAGE from dual;
end if;
end;
"setpage"'s process point is "On Load: Before Header(page template header)"
In login page 101, log in process is like following:
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':'||:LASTPAGE
But the thing is it does not work. Log in page still go to page 1.
Best regards,
Qiang.
Message was edited by:
user535779Hi Scott,
I would like to branch at the page that I am trying to get to from page 101.
Let say page 12 Requires Authentication
When I am not logged in , and I try to access Page 12 , I get branched to page 101 (login page).
Now , from page 101 , I would like to branch to the page I was trying to access , in this case Page 12
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||:APP_PAGE_ID
The problem is that APP_PAGE_ID contains 101 and not 12
Francis. -
How to create login page in JDev
Hi,
First of all I'd like to apologize for posting this, but I just can't find what I'm looking for. I have a project to create an internal application to networked users via JDev/ADF that simply has a login and menu to run some reports and maybe a search screen. I am wondering the best approach since it's not a true web application and also wondering if anyone has a simple example to login to the database where the users are created as database users with assigned roles for table access? Any good advice will be appreciated!
Thanks,
LeeThe link below will walk you through how to implement security in your ADF application.
http://download-west.oracle.com/docs/html/B25947_01/adding_security.htm#BGBGJEAH -
How to create multiple pages using flex application.
Hi all,
i am doing flex application which contains 5 different
pages,
to do this i have used viewstack component to navigate
between the pages.
this is working fine if all my pages are of same size. each
page as different background image.
but i have to create pages with different sizes.
my first and second page are small and remaining pages are
big.
when i navigate to 3rd or 4th page, it is showing scrollbar
inside swf.
but i want scrollbar for browser window not inside my swf
anyone please guide me how to create pages in flex
application.
i have one more doubt, if my page contains some html links ,
how to open those links,
is it posible to open the link in new window.
please help me , i have no idea how to create web
applications using flex
Thanks in advance
regards
avanthikaHi inlineblue,
Thanks for your reply,
you asked about sample code,
following is my sample code.
In my Application mxml file, i am loading all custom
components for each page.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
horizontalAlign="center" verticalAlign="top"
styleName="plain"
backgroundColor="#FFFFFF"
creationComplete="init()" width="780" height="594" >
<mx:Script>
<![CDATA[
//navigating to next page
public function showNextStep(newIndx:int):void{
vs.selectedIndex=newIndx;
//navigating to previous page
public function showPreviousStep(newIndx):void{
vs.selectedIndex=newIndx
]]>
</mx:Script>
<mx:ViewStack id="vs" paddingLeft="0" height="100%"
width="100%" >
<mx:Canvas id="s1" label="step1"
backgroundImage="assets/Step1.jpg" >
<!-- Step1.jpg image size is width=778, height=560 -->
<mx:HBox paddingLeft="8" width="780" height="548">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="697" y="18"
click="showNextStep(1)" width="72" height="24" />
<mx:Button alpha="0" buttonMode="true" x="697" y="508"
width="72" click="showNextStep(1)" height="24"/>
</mx:Canvas>
<step2 id="s2" label="Step2" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step3 id="s3" label="Step3" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step4 id="s4" label="Step4" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step5 id="s5" label="Step5" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
</mx:ViewStack>
</mx:Application>
// following is the page2 (step2) component code
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step2.jpg" width="778" height="600"
>
<!-- Step2.jpg image size is width=778, height=600 -->
<mx:HBox horizontalAlign="left" paddingLeft="5"
height="511" width="768">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="648" y="6"
click="this.parentApplication.showPreviousStep(0)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="711" y="6"
click="this.parentApplication.showNextStep(2)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="651" y="529"
width="58" click="this.parentApplication.showPreviousStep(0)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="712" y="528"
width="54" click="this.parentApplication.showNextStep(2)"
height="24"/>
</mx:Canvas>
// following is the code for page3 (step3) component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step3.jpg" >
<!-- Step3.jpg image size is width=778, height=660 -->
<mx:VBox width="763" height="668">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="10"
click="this.parentApplication.showPreviousStep(1)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="10"
click="this.parentApplication.showNextStep(3)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" label="Back"
x="625" y="590" width="58"
click="this.parentApplication.showPreviousStep(1)" height="24"/>
<mx:Button alpha="0" buttonMode="true" x="694" y="590"
width="68" click="this.parentApplication.showNextStep(3)"
height="24"/>
</mx:Canvas>
// following is code for page4 (step 4),
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step4.jpg" >
<!-- Step4.jpg image size is width=778, height=773 -->
<mx:VBox width="762" height="792">
<!-- User interface -->
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="15"
click="this.parentApplication.showPreviousStep(2)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="16"
click="this.parentApplication.showNextStep(4)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="644" y="710"
width="58" click="this.parentApplication.showPreviousStep(2)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="703" y="710"
width="54" click="this.parentApplication.showNextStep(4)"
height="24"/>
</mx:Canvas>
// Following is code for Page 5 (step 5 ) component.
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step5.jpg" width="778"
height="600">
<!-- Step5.jpg image size is width=778, height=539-->
<mx:VBox paddingLeft="170" paddingTop="170" width="778"
height="522">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="654" y="41"
click="this.parentApplication.showPreviousStep(3)" width="72"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="654" y="486"
width="72" click="this.parentApplication.showPreviousStep(3)"
height="24"/>
</mx:Canvas>
I am getting vertical scrollbar for page3 and page4,
please tell me how to avoid this, Is their any other method
to do this.
Following is the link for my above code
http://www.emantras.com/flexdemo/sample.html
in this application one more problem is also their,
background image loads very slow, before it loads all the flex
components will load. So when you open this please wait till
background image loaded, to move to next and back pages.
Thanks for your time and consideration.
Regards
Avanthika -
How to avoid login page in List Tree
Hi group,
I am new to APEX and I have added a tree list to my application.
The problem is when I click into the link of the tree list, it always redirects me to the login page.
Is any setting that I am missing?
This tree list was created into the page "0".
Thanks in advance.
Kind regards,
FranciscoHi
jyothi
thanks for the response
i was following yours thread of Tree the same problem is thr in my tree its also nt retaining the current possition after collapsing it and this is my code can you please help me in this and i have try your javascript also but were to put it i m not getting the solution was gien to u by andyand vee, please please help me
this my code
select
case
when connect_by_isleaf = 1 then
0
when level = 1 then
1
else
-1
end as status,
level,
case
when PAGE_NUMBER is null then
MENU_ITEM_NAME
else
MENU_ITEM_NAME || ' (' || PAGE_NUMBER || ')'
end as title,
null as icon,
MENU_ITEM_ID as value,
null as tooltip,
case
when PAGE_NUMBER IS NULL then
NULL
else
'f?p=&APP_ID.:' || PAGE_NUMBER || ':&APP_SESSION.'
end as link
from #OWNER#.D_MENU_ITEM
start with IS_ROOT = 'Y'
connect by prior MENU_ITEM_ID = PARENT_ITEM_ID
order siblings by SEQUENCE_NUMBEREdited by: shadab550 on Mar 15, 2012 10:09 AM
Maybe you are looking for
-
All sent emails are missing from the Thunderbird 'Sent' folder following import, but Sent folder still shows a count of the imported emails (Thunderbird considered them to be unread when importing them, hence the count). The messages are also visible
-
How to delete RFC destination during runtime
Hi Experts, I need to delete the RFC destination (created via SM59) during runtime. Which API can I use to do so? Thanks & Best Regards, Johnney.
-
Is there WINDOWS KEYBOARD shortcut to restart a mac ???
Using a "WINDOWS KEYBOARD" (no "eject" button), is there a keyboard shortcut that will bring up the shut down/restart menu? Equivalent to "control+eject" on a mac keyboard? Reason I ask: Periodically, my Apple bluetooth devices (keyboard, trackpad
-
Iphoto and photobooth deleted!! :(
i need help asap!! my mac was saying that my startup disk was getting full, so i decided to delete as many photos as possible. in doing so, i accidentally deleted iphoto and photobooth by moving them to the trash, and emptying it. i need the fastest
-
Revision: 1664 Author: [email protected] Date: 2008-05-11 21:35:26 -0700 (Sun, 11 May 2008) Log Message: Merged revision 1663 from branches/3.0.x to trunk. Modified Paths: blazeds/trunk/modules/core/src/java/flex/messaging/MessageBrokerServlet.java b