Implementation of the custom permission JSF pages login problem

ADF 11 g

Hello
I created an application of small adf secured using Basic authentication formed and implemented a login JSF custom page as described in the developer's guide the merger and 11 g JDEv manual.

The only difference being that my homepage is protected, which means that the login page is called before you reach the home page, and there is no link connection on the home page.

The home page has a button calling a stubborn workflow.

If I use the original login page, login.html, I log on, access the home page and the button calls the stubborn properly workflow.
However, if I use the JSF login page I login, access the home page but the button does not call the bounded flow taks - there is no error no displayed, its as if the button is more "connected".

Here's the doLogin code in the bean connection
    public String doLogin() {
        byte[] pw = _password.getBytes();
        FacesContext ctx = FacesContext.getCurrentInstance();
        HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
        CallbackHandler handler = new SimpleCallbackHandler(_username, pw);
        try {
             Subject mySubject = Authentication.login(handler);
             ServletAuthentication.runAs(mySubject, request);
             //String loginUrl = "/adfAuthentication?success_url=/faces" +ctx.getViewRoot().getViewId();
             String loginUrl = "/adfAuthentication?success_url=/faces/main.jspx" ;        
             HttpServletResponse response =
             (HttpServletResponse)ctx.getExternalContext().getResponse();
             sendForward(request, response, loginUrl);
             } 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;
     }    
I have the impression that I am authenticated but not authorized.
Can someone explain what is happening?

Concerning
Paul

Hello

Try changing

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

TO

LoginUrl = string ' / adfAuthentication? "success_url = / face/hand;

(without the .jspx at the end).

Pedja

Tags: Java

Similar Questions

  • Implementation of the custom function

    Hello

    I use OPA version 10.4. Could someone please give me an example implementation of end-to-end custom in OPA function simple (including the code of JAVA/.NET, extension.xml and all the dll/pots to be included in the modules project). Thanks in advance.

    Kind regards

    Mounia

    You can find all this in the "Oracle policy Automation for Java" or "Oracle policy Automation for .NET ' zip downloaded from the cloud of delivery for software (OSDC) Oracle or Oracle Technology Network (OTN) web sites (http://www.oracle.com/technetwork/apps-tech/policy-automation/downloads/index.html).

    The relevant issues in the developer of the OPA's Guide are

  • Open the custom container qml page... doesn't work do not

    I have the custom object container which is given below

    import bb.cascades 1.3
    
    Container {
        layout: DockLayout {
    
        }
        ImageButton {
            minWidth: 160
            minHeight: 150
            defaultImageSource: "asset:///images/button_container_90x130.png"
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center
            onClicked: {console.log("i am clicked")
                var assest = navigateAssist.createObject();
                navigationPane.push(assest);
            }
            attachedObjects: ComponentDefinition {
                id: navigateAssist
                source: "Assist.qml"
            }
          
        }
        ImageButton {
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center
            defaultImageSource: "asset:///images/assist.png"
    
        }
    
        Container {
    
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center
            topPadding: 100
            bottomPadding: 10
            layout: StackLayout {
    
            }
            Label {
                text: "Assist"
                textStyle {
                    base: SystemDefaults.TextStyles.SmallText
                    color: Color.Black
                }
    
            }
    
        }
    
    }
    

    QML is not opening when struck the Imagebutton control.

    I checked with the console... Console.log () is printing.

    Maybe the container with the label policy thus needs?

  • How to display the arraylist < list > jsf page

    HII all,.

    I'm having a jspx page where I want to display the value from a bean class Get accessor...

    the Get accessor returns a list Arrarylist

    and I want to display the list of table in its entirety on the jspx page when it is loaded.

    The method is: -.

    public ArrayList < list > getMyList() {}
    myList = getDocumentProperties ();
    return myList;
    }

    How to navigate the entire list on jsf... ??

    any idea... !!

    Thank you

    You can use or in an ADF Faces page to iterate over the items returned by the method getMyList() of the bean:

    
      
    
    

    If you want to browse the internal lists, then use a nested iterator:

    
      
        
      
    
    

    Dimitar

  • How to install firefox last with the custom network home page

    I'm trying to figure out how to do a network with the latest firefox installation, but suitable for the bringing into default homepage for the intranet portal of companies. I have several thousand computers that require installation and pushing by network is the only realistic method, but I can't find a solution on how to change the homepage for this. Help, please!

    See:

  • How to keep summers jsf pages correctly updated to account for changes to data in the database?

    This is a case of common use for web applications:

    User open A (i.e. a jsf page) of a web application, keep open for a period of time and do some browsing or editing on this page.

    During this time, someone others or modified events of the data in the database, then:

    Scenario A:

    1. the user should be able to see the evolution of the data in the above open jsf page when page navigate to other records.

    or when the page is refreshed by refreshing the web browser (reload the page) or by pressing a button on the page manually.

    Scenario b:

    2. the page should be able to be updated automatically to reflect the new changed data in the backend database.

    -This means that the user has no need to run the refresh action intentionly/manually to get the new data.

    Here's a possible implementation are provided in subsection 12.1 JDEV/ADF for above use cases:

    1.kdario: tips to know how to refresh your data

    Re: Field Image cannot refresh when you move between records in a jsf page

    In my opinion, the solution of kdario is a little bit complicated, is there an easy approach?

    and kdario says:

    'normal way' for update page is generally very bad for applications based on JSF/ADF.

    Is there more evidence or reference documents to support above sayings?

    2 to implement scenario B, which is recommended methods?

    Is the Active Data one approach good?

    If there are active - as tech batteries was adopted for web applications on the internet (which will have more agreement than in the intranet user), would there be possible serious performance problems?

    Thanks in advance.

    In fact, I suggested to the position 3 solutions (and option c) Notifications of changes to database is the most complicated).

    Also, here is solution d) in pageDef, select iterator and ownership of Cache set to false results

    'normal way' for update page is generally very bad for applications based on JSF/ADF.

    Is there more evidence or reference documents to support above sayings?

    Well, when you use the "back/refresh" browser button, this will retrieve the Forms page cache and skip the controller of the ADF.

    You can use google to do this, for example:

    https://groups.Google.com/Forum/#! subject/adf-methodology/CKoDdhLdrYE

    ADF developers world: how to avoid the mistake Houston-35007?

    Andrejus Baranovskis Blog: How to manage the Web browser buttons in the ADF/WebCenter Applications

    Dario

  • Print questions after the custom section changes using a printed code

    Hello

    We have problems with the order of the custom section. Please find below bottom

    1. we have a custom code to print sections customized specification associated with the material specifications

    2 this custom code developed 2.5 years ago and absolutely perfect job

    3. this custom code actually built XML sections customized the associated specification which is transformed into PDF using XSLT by extending the print features.

    Recently, we changed the order custom sections appear in hardware specifications. Once the order gets modified with the help of Admin-> Data-> custom section order Custom. New order got reflected in all the technical features without any problem

    But the custom sections do not print in the same order

    When we studied, we found the following

    1. printing order is fine when using the default print template provided by oracle

    2. printing order is not very well when we use our custom print template that uses our custom code developed 2.5 years back

    When we have investigated further, we discovered that any new record is created once the order has changed to print very well in the same order using our custom code

    But the old specifications that were created before the implementation of the custom section control do not print in the same order

    Debug us the solution, with the old card and discovered that code is return data in the old order and not in the order indicated in the specification

    We tried all the properties we could and noting works as expected for the old specifications and new specifications get the order appropriate under the new defined order

    None of the sub properties get the data in the correct order in the old specifications

    ICollection customSections = ingSpec.ExtendedAttributeSections.OrderedModifiableValues;

    ICollection customSections = ingSpec.ExtendedAttributeSections.OrderedValues;

    ICollection customSections = ingSpec.ExtendedAttributeSections.ModifiableValues;

    Can you please let us know if this is a bug in the product? or is it possible that we can do our custom code works for the old specifications?

    Can you also let us know which table stores information about order of custom hardware specifications section?

    Thank you

    Mani

    Sounds like the same issue post to https://community.oracle.com/thread/3804143.

    Thank you

    Pourbaix

  • Policies that screw the customer

    As a huge fan and long time Adobe software user, I am deeply frustrated to have to write this.

    I've used Adobe products for years and encouraged my husband to learn how to use them by getting a subscription Creative cloud a year and half ago.

    Never learned to use the software, there is the subscription during this period. He auto-renouvelé about 8 months ago and, without realizing it, he got locked in a contract for a full year.

    When we tried to cancel it, we were informed that they would be penalized $ 100 for the cancellation of an annual contract that did not explicitly accept.

    This policy does not help the customer, it completely screws the client. Now, I am so angry that I don't even want to use Adobe products (and I've used them every day for 24 years!) I'm Livid.

    The customer service representative, who helped us was beautiful and able to give 2 free months of service, so the $100 would eventually be the same either way.

    Unfortunately, this does solve the problem. I want my husband to be released from his contract without financial penalty. Now. I still have my account and it may return someday, even if us two piss so much that it makes us think twice about this topic.

    Please, Adobe, improve your customer service and do not block your people in the contracts of the year after having been good customers. It's the golden age of the customer service, this kind of problem should not exist.

    Can you please release my husband from his account without financial penalty?

    I send a message about the cancellation, please check & respond.

    Concerning

    Baudier

  • Call the method call activities before you navigate to the target jsf page

    Dear all,

    I use JDeveloper Studio Edition Version 12.1.3.0.0.

    Requirement:

    I have a stubborn taskflow. The stubborn workflow is without using page fragments.

    I have three pages: login.jsf, admin.jsf, user.jsf. I have a method call activity in the taskflow. The login.jsf is the default page. The page of login.jsf have an af:selectOneRadio with two af:selectItem: Admin and user. It also has an af:button. When the user select the af: af selectItem: selectOneRadio and click on the af: button, it should call the method call activity (doLogin) and based on logic it will redirect to the page admin.jsf or user.jsf page.

    Please find the taskflow below:

    How to achieve the solution to the prescription above.

    Thank you and best regards,

    Susanto Paul

    Hi all

    I'm able to resolve the obligation.

    The post below was really helpful.

    http://andrejusb.blogspot.in/2011/09/programmatic-ADF-task-flow-router.html

    Thank you best regards &,.

    Susanto Paul

  • Login, authentication of the ADF page rendering problem

    Hi all

    I use Jdev12c and authentication of the ADF configuration in my application. MY login pages are not html and JSF pages. After you set up the security of the skin on the login page stops working. The drawn solution of article https://blogs.oracle.com/jdevotnharvest/entry/solving_jdeveloper_11gr2_issue_with does not help (which seems to be incomplete).

    Now, reading autour, I made an assumption are the result of changes and it seems to work. But I don't know if it can cause any problem of security in the merger application. Any idea/thoughts?

    < security constraint >

    < web-resource-collection >

    allPages < web-resource-name > < / web-resource-name >

    < url-pattern > /visages / * < / url scheme >

    (it was < url-pattern > / * < / url-pattern >)

    < / web-resource-collection >

    <>auth-constraint

    valid users - < role name > < / role name >

    < / auth-constraint >

    < / security constraint >

    (There is also a page-def on the login page and the model used for the login page).

    Thank you!!

    Mrig

    Very well. Figured out.

    According to what little I learned about the web.xml file, I had to follow processes & groping to find resources which create problem. So Pagedef and models are not the problem which might have been in previous versions of Jdev. I added ' / resources/images / * ' under web-resource-collection.

    Authorized resources ADF

    information/images / *.

    allPages

    faces *.

    (it was / *)

    valid users

    I thought the CSS files and templates like that I used on the login page.

    Thanks for the help and suggestions!

  • Create the custom using elements of Page filter

    Hello

    I am trying to create a custom of sorts using page elements filter date picker.

    I want a report to have a where clause clause that says something like this:

    WHERE the table. Date >: P1_Date1

    AND the table. Date..: P1_Date2

    I need to do it this way because I need to have another area that displays the weighted average on the basis of 2 of the columns in this table set and I was unable to find a good way to make a weighted average using the interactive report options.

    The question just the other side is that I can not simply refer text buried user to a static source page element. I used radio groups before where the change they had an action "refresh and set the ' enabled me to make reference to them, but I don't see how to do something like this with the dates selectors.

    Any ideas on how I should go about it?

    EDIT:

    I've included an example of what I am trying to accomplish.

    Link- https://apex.oracle.com/pls/apex/f?p=30262:101:102700562633003:

    Username - TESTER

    PW - Tester

    JaReg wrote:

    Partitions tab person and date shows the page that I create. Currently the regional report and the Middle regions "Totaled" are implemented using the Radio top unit

    I want to do the same thing with the dates selectors, but previously I was unable to get the selectors of dates static to use in a sql requpete as I can with the Group of radio buttons.

    I created the page 586 as a copy of the original, with the following changes:

    1 has changed the Page Action sélection P586_PERSON point filter parameter of redirection and set the value None.

    2. added explicit Format mask to DD-MON-YYYY to filter items date picker.

    3. change the source of the region of results reports to:

    select
        *
    from
        scores s
    where
        s.person = :p586_person
    and s.scoredate between to_date(:p586_mindate, 'dd-mon-yyyy') and to_date(:p586_maxdate, 'dd-mon-yyyy')
    

    4. define the region of results reports the Items property of the Page to be sent to P586_PERSON, P586_MINDATE, P586_MAXDATE. What causes the values of these elements to present before a partial page refresh is performed on the region, making them available in session state when the content of the region is updated.

    5 created a dynamic change on the region of filter action:

    Event: Change

    Selection type: Region

    Region: Filters

    Action: Discount

    Fire on Page load: NO.

    Selection type: Region

    Region: Reports of results

    The region of IR report Score is now automatically updated each time that one of the elements in the region of filters are changed. That leaves the data region totaled. As a static content area may not be automatically updated by a dynamic action of PPR, and I'm not so sure as rules that must be used to apply filters to the values of the region. The same range filters in person and date should apply to the total values as are used in the report?

  • Store the value of the client side in the .jsf page

    Hello

    I implemented the functionality of line selection using check box in an af:table paginated . The user can select a record by activating the individual checkbox at the level of each line or select all the records by selecting the checkbox "Select all" at the level of the table header. I added a client listener that fires on the box click and the javascript function I capture the unique value of each line and then invoke a server event and by passing all the unique values captured.

    I've also attached a server listener that calls a method in the managed bean. In the method I capture all the unique values (which went from java script) in the java collection and then storing the collection in the view range.

    On the page, I have a button 'Submit' who collect all values stored in the field of view and execute the necessary business logic. This full feature works very well.

    My requirement is to improve the flexibility of the page.

    When the user selects the check box, it takes around a second deal with the life cycle complete .jsf page.

    Is it possible to avoid the call Server to store the values in the field of view instead if I can store the decision-making value on the client side-side (which I believe will improve performance) and then finally when the user presses the button "submit" I'll enter the stored values on the client side and complete the rest of the business logic.

    Please let me know if this is possible in the page .jsf which is developed in the ADF with JDev 12 c (12.1.3) or please suggest another approach.

    Indications will be useful.

    Thanks in advance.

    Kind regards

    Gerard

    There are two ways to do this, consider for example the browser Local storage / storage of Session:

    http://blog.teamtreehouse.com/storing-data-on-the-client-with-localStorage

  • Add search criteria to the customer Search Page

    Hi all

    I have a requirement to add additioinal search criteria to the customer search page. Order Management Super User-> client-> Standard

    / Oracle/Apps/AR/cusstd/srch/WebUI/ArPrtySrchPG


    I want to add number of Site Search additiional. I tried to add a lookup field using customization, but the addition of the field does not appear on the screen. I tried to find out how the where clause is implemented through the related CO I found that the search fields are implemented using a matching HZ_ORG_SIMPLE_SEARCH_RULE rule.


    Is it possible to add the additional field matching this rule? Otherwise how can I advance to this requirement? Please suggest



    Thank you

    Pravin

    Found the solution...  Adding that it might be useful for others...

    Steps to follow:

    1. create the custom match rule by copying standard.

    2. add additional fields to the matching rule and specify a transform.

    3 compile the custom matching rule

    Finally, update the profile option to point to the custom matching rule. In my case it was HZ: associate the rule for the Simple and HZ research organization: associate the rule of advanced search for organisation

    Thank you

    Pravin

  • How to call "j_security_check" in the jsf page

    Hello

    with ADF security set up in Jdeveloper11.1.1.2, it automatically generates login.html and error.html for forms authentication.

    I found in login.html, the form action is "j_security_check" and I try to customize the page of connection with the jsf page, but do not know how to call "j_security_check" in the jsf page, there is no action attribute more within the af: form and I can't find the "j_security_check" in the action of Expression commandButton control build.

    Thanks in advance.

    Best regards
    Bill

    Hello

    you will need to add the login form to the JSf page wrapped in f: verbatim to show as part of the JSF page. JSF 1.2 using f: verbatim shoucl be no need, but in my experience, is best.

    If you develop and deploy on WLS, then Chapter 30 of the Fusion Developer Guide has a solution of God for you to build a form of connection in JSF completely

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/adding_security.htm#BABDEICH

    This requires any of j_security_check

    Frank

  • How to customize and difficulty permanently the size (zoom %) web pages in Firefox that Internet Explorer is: view - Zoom - Custom (percentage).

    How do I customize and fix permanently the size of web pages (zoom %) in Firefox than Internet Explorer is:
    View - Zoom - Custom (percentage).

    Thank you

    This can help you.

    https://support.Mozilla.com/en-us/questions/894000

Maybe you are looking for