Display Login failure when using External Custom Login Form

I am new to OAM area and really apreciate if some one can guide me in the right direction. I have configured External Custom Login Form (thanks to fusionsecurity blog) with Oracle Access Manager 11g + webgate 10g. If I enter correct user id and password in the below form, then all is good and able to access the protected resoruce.
If I enter incorrect values for loginname/password fields, then the from simply refreshes itself and does not give me any error message. How can display error message when a user enters in correct values for those fields?
<form action="http://hostname:7777/oam/server/auth_cred_submit" method="post">
<fieldset>
<legend>Login Screen</legend>
<label for="username" accesskey="u">User Name:</label>
<input type="text" id="username" name="username" size="15" tabindex="1">
<label for="password" accesskey="p">Password:</label>
<input type="password" id="password" name="password" size="15" tabindex="2">
<input type="hidden" name="login-form-type" value="pwd">
<input class="submit" type="submit" value="Login" tabindex="3">
</fieldset>
</form>
Thanks

Hi!
I have installed Oracle Access Manager 11g + Webgate 11g and not 10g, but I think
it has to work beause login is being processed by OAM (/oam/server/auth_cred_submit);
and it if does not work, it may give you a clue on how to do it.
Having stated that fact, it is very simple to do it: whenever I try to access a protected
resource and I am not authenticated I am redirected to my login page and some
special parameters are passed to it such as: request_id, OAM_REQ, authn_try_count and
some others.
authn_try_count is the magic one as it show the number of login tries, so here is
a code snippet of my login page which uses JSTL for conditional processing.
<form...>
<c:if test="*${param['authn_try_count'] > 0}*">
&lt;span class="error-msg"&gt;
<fmt:message key="login.val.wrong.login"/>
&lt;/span&gt;
</c:if>
</form>
Best regards,
Jesús García from
Mexico city

Similar Messages

  • How can i use my custom login page in a custom partner application ?

    Dear All,
    I'm trying to customize a login page displayed other than the default sso login page
    by submiting my form to the regular pl/sql procedure : "PORTAL.wwptl_login.login_url"
    but i tried to type the requested partner application url in the browser i got the sso
    login page other than my custom login page. So, How can i use my custom login page in a custom partner application ?
    Regards,
    Mohammed Amin
    [email protected]

    I cannot begin to express my level of frustration. I have been trying to use the composition widget light box display for some time now. I drag the widget to my document. The default widget has three small trigger boxes and a large area made up of a forward and backward button, a background, a text box and a frame for your image.
    My steps have been …
    I click on the little trigger box.
    I click on the frame that holds the main image.
    I go to the fill menu and browse my computer for my image and then click OK.
    IT shows up on my screen. Yay
    I attempt to continue using the next two trigger boxes provided in the widget.
    After that, I add more by clicking on the little plus sign.
    This is where all heck breaks loose.
    Every single time I attempt to add thumbnails, something messes up. When I go to preview, either not all of my main images show up, or it starts with the wrong one, or some are missing. I have looked and looked for help on this and the only thing I can find is how easy it is to create a great portfolio lightbox display.  But as we know, that only works when your thumbnails are the same image as the images in your lightbox. If you want something different, you have to use the composition wizard. I am finding it extremely difficult and confusing to customize.
    Is there an exact sequence you need to use to add images to the slideshow? I am my wits end.

  • How do you use a custom login application?

    I have setup a custom Login Application as instructed from the admin guide, but cannot find any instructions on how you then go about using it. Some other posts on here mention customising/linking a page to it based on the user Login.jsp, but they arn't clear on the steps to do this.

    The solution I was using was a single sign on system called CAS, which handled the authentication. The class I used is shown here:
    http://www.ja-sig.org/wiki/display/CAS/CASifying+Sun+Identity+Manager
    The java class is called: CASResourceAdapter.java
    Most of this code is not used. The bit you would be interested in is in the method named:
    public WavesetResult authenticate(HashMap loginInfo) throws WavesetExceptionIf you delete all the code in here and replace it with the code below as most of this is a customised search that the author wrote:
         final String method = "authenticate";
         if (_trace.level1(this,method))
                _trace.entry(WSTrace.LEVEL1, this, method);
            WavesetResult result = new WavesetResult();
            String userId = (String)loginInfo.get(USER);
            if(_trace.level2(this,method))
              _trace.info(_trace.LEVEL2, this, method, USER + " = " + userId);
              _trace.info(_trace.LEVEL2, this, method, "map: " +  loginInfo);
            if (_trace.level2(this,method))
                _trace.info(_trace.LEVEL2, this, method, "Obtained user '" + userId + "' from info: " + String.valueOf(loginInfo));
            result.addResult(Constants.AUTHENTICATED_IDENTITY, userId);
            return result;You could also remove the trace code. The code you would be interested in particular would be:
    WavesetResult result = new WavesetResult();
    String userId = (String)loginInfo.get(USER);
    if(_trace.level2(this,method))
    result.addResult(Constants.AUTHENTICATED_IDENTITY, userId);
    return result;The logininfo is a method used to retrieve whatever userid was used to authenticate. This is what was needed to retreive the userid from CAS. You will need to replace this with custom code to retreive the userid from your webservice.
    Once you are happy with the code, place the compiled class with the correct package levels in idm/web-inf/classes. You may need to create the folder called classes.
    Next login to your idm and goto resources and then configure types. Add a custom resource to point to your new class In my case it was edu.unmerced.idm.adapter.CASResourceAdaptor. Save this and then add this as a resource in your resources screen and except all defaults and give it a custom name of your choice.
    You then need to add this resource to each of your users.
    Next you need to goto configure and then login. In here you need to create a new login module group and point it to your CAS resource. Then change the default login for the users login application to use this new login group. See idm specific documentation on how to do this
    Reboot your idm application server.
    You would now use your alternative webservice system to authenticate and then afterwards get it to forward to your idm and if the code picks up the user from your webservice correctly you should be logged into idm as that user.

  • Database login windows when using DataSet ( CR2008 )

    After executing this code, I get a database login window when using a DataSet, wondering why I am asked for user/pwd when using DataSets.

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • ORA-15072 when using external redenacy?

    Hello -
    I am getting ORA-15072 (command required at least one failure groups) when using external redundancy. I am using asmlib on Linux, and I have a feeling that it it a multipathing issue. Here are the output from some of my commands:
    [root@ctolinuxpoc01 init.d]# ./oracleasm listdisks
    VOL1
    VOL10
    VOL11
    VOL12
    VOL2
    VOL3
    VOL4
    VOL5
    VOL6
    VOL7
    VOL8
    VOL9
    SQL> select name, path, state from v$asm_disk;
    NAME
    PATH
    STATE
    ORCL:VOL1
    NORMAL
    ORCL:VOL2
    NORMAL
    NAME
    PATH
    STATE
    ORCL:VOL3
    NORMAL
    ORCL:VOL4
    NAME
    PATH
    STATE
    NORMAL
    Why would I be getting ORA-15072 with external redundancy (using asmlib)?
    Thanks in andvance!
    Mike

    The header status is showing as "unknown"... Could this be part of the issue?
    Thanks,
    Mike

  • Putting iMac display to sleep, when using TV as a screen.

    I have just connected my iMac to my 42" Panasonic 1080p TV, the connection was easy and is working fine. My questions relates to putting the iMac display to sleep when using the TV as a monitor, if I am watching You Tube, Sky Player or a DVD, I intend to use my TV as the monitor. Is it possible for the iMac to puts its display to sleep, whilst leaving the TV on. I played around with this today, however was unable to manage this.
    Regards Craig

    Hi Craig
    There is no way to independently sleep either the iMac's Display or an attached Display/TV. However if in the Display Arrangement Preferences you set the attached Display or TV to be the Main Display and turn Mirroring Off, then FrontRow and the Full Screen Mode app's like, DVD player, QuickTimePlayer, etc. will black out the unused iMac display.
    Dennis

  • How to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3g or gPRS on safari with an iphone 4 and latest software updates

    Please can someone help me to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3G or GPRS on safari with an iphone 4GS and latest software updates. I have tried resetting the network and phone settings. I have restored the factory settings on itunes and still the problem persists.

    All iPhones sold in Japan are sold carrier locked and cannot be officially unlocked by the carrier. If you unlocked it, it was by unauthorized means (hacked), and support cannot be given to you in this forum.
    Hacked iPhones are subject to countermeasures by Apple, particularly when updating the firmware. It is likely permanently re-locked or permanently disabled.
    Message was edited by: modular747

  • When using external speakers, they won't unmute

    I am using a U530 Touch with Realtek HD Audio driver version 6.0.1.7535 and Windows 10 build 10240. When using external speakers, everything works fine, except when I mute speakers they will not unmute without unplugging the 3.5 mm speaker jack and plugging it back in to the unit. Using the laptop's internal speakers does not produce the same proplem (mute/unmute works fine). I have looked at every setting and find nothing, nor have I seen this problem reported in the forums. HELP!!!

    Rattle Snake wrote:
    Firstly how do I know if this is a 1st or 2nd generation shuffle? Bought in May at Palo Alto Store but there doesn't seem to be anything on the packaging to tell me.
    1st Gen shuffle was white, plastic, and shaped like a chewing gum package.
    2nd Gen shuffle is aluminum, with a spring clip on the back and comes in silve and assorted colors...
    When the shuffle is connected to the external speakers(bought at the same
    time) it only plays about 5 songs and then stops.
    Does it play through the earphones after this happens? Does it still have power or is the battery depleted after it stops playing?
    What Brand & model are the speakers?

  • IPhone4S display unknown symbol when use USSD

    please when i used iPhone4S display unknown symbol when use USSD ???
    NOT : i dont know why cose as same time i have iphone 4 and used same carrier but  its WORK FINE AND show ussd

    iPhones no officially support USSD but I can sure it is support USSD because my friend's iPhone is work with USSD.
    I and my friend using same carrier same iPhone4S same codes,no JB but my friend's iPhone is work with USSD,only my iPhone cannot work with USSD.
    Thank for all answer,no need answer for me already because I just now send to apple store,they check is phone problem,so now claim warranty,need to wait 2 week to get back new iPhone =.="

  • Getting AADSTS50020 error on microsoft login page when using Azure Active Directory Authentication

    We have implemented Azure Ad single sign on using auto generated code from Visual studio 2013 with organization account authentication and its working fine.
    The problem is when user is logged in in azure management portal with his live account and in other tab he try to open our app, then he directly gets below error on Microsoft login page.
    Additional technical information:
    Correlation ID: 78e13474-6f92-40ec-b463-91e36a6dae84
    Timestamp: 2015-04-14 12:27:20Z
    AADSTS50020:
    User account '[email protected]' from external
    identity provider 'live.com' is not supported for application
    'https://xxxxx.onmicrosoft.com/xxxx'. The account needs to
    be added as an external user in the tenant. Please sign out and sign in
    again with an Azure Active Directory user account.
    It works fine if I log out from management portal. Is there any way to resolve this issue without forcing user to log out from live account(management portal)?

    I assume you created a web application using VS2013 which uses the WS-Federation protocol.
    The behavior that you are seeing is expected Single-sign-on because you are logged in using the live account in the management portal.
    For WS-Federation, there is no current way for a caller to specify they want to force a fresh login, so the behavior is always the equivalent of LoginBehavior.Normal.
    The user will need to either sign-out or use an in-private session in the browse.
    If you switch to openID connect(sample at
    https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet) and use the “prompt=login” query paramerter in the sign in request, this will force a fresh login.

  • Avoid Database Login prompt when using CrystalReportViewer

    Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
    I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
    Am I missing something here?
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Public Class Form1
        Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
            Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each logOnInfo As TableLogOnInfo In logOnInfos
                logOnInfo.ConnectionInfo = myConnectionInfo
            Nex
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            setDatabaseLogon(myConnectionInfo)
            myConnectionInfo.DatabaseName = "ClearView"
            myConnectionInfo.UserID = "reports"
            myConnectionInfo.Password = "dstreports"
            myConnectionInfo.IntegratedSecurity = False
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ConfigureCrystalReports()
        End Sub
    End Class

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • Using a custom login page for the portal

    Hi all,
    I'm currently doing a migration from Plumtree 4.5WS to Plumtree 5.0.4. In the current 4.5WS portal, I'm catering to 3 different login mechanisms due to time-lags in migration of my users' workstations. The 3 mechanisms are:
    1) Smart Card Reader on Windows 95 using TLS (uses a client side ActiveX)
    2) Smart Card Reader on Windows XP using SSL (uses client side ActiveX)
    3) Java PKI Card on Windows XP using SSL (uses server side scripting)
    To cater to the above, we've made customisations to login.asp and dologin.asp and also added a few scripts of our own.
    I now need to migrate these over to Plumtree 5.0 as well. I've thought of 2 ways to do this:
    1) Doing a custom view replacement of the Login View. This however has limitations as I'm not sure how the codes for the above 3 mechanisms will come in, especially 3), which involves server side scripting.
    2) Creating a custom login and exit page. This is probably a much more feasible solution in my case as it allows me to freely create my login pages and exit pages accordingly to cater for the above. However to do this, I need to be able to customize the Log In and Log Off links on the Portal Banner in order to point these to my own login and exit pages.
    Any ideas what is the best (or correct) way to do this?
    Thanks!
    Weng Kong Lee

    AFAIK only one login.jsp is called.
    But you can include logic into that one JSP file.
    If referer = portal.company.com THEN
    else
    This way you can create different look and feel for different virtual hosts.
    Login portlets have the disadvantage that https is not supported
    Ton

  • Why being prompted for login/password when using OVDC, smart card,token/vdi

    Hello,
    I'm using VDI 3.2.1, OVDC, smart card and i assigned a smart card token to a desktop pool.
    Inserting the smart card triggers a new VDI desktop selector which prompts for the login and password.
    Is there any reason why VDI is prompting for the login/password in the VDI selector when using a smart card especially that the smart card token has been assigned to a desktop pool ?
    Thanks
    Thierry.

    You still have to authenticate to get a desktop. If you assigned a token to a pool, the ability to be assigned a desktop is based on the token not the user ID. That means that any user will be assigned a desktop if they use that card.

  • IChat keeps shutting off when using a different login...

    I recently set up my sister's new iMac 20" Intel. Her login is the administrator. I also made a login for other members of the family. iChat works using her login but when I login using another login on the list (i.e. her daughter's login) I try to turn on iChat but then it crashes and the software shuts down. Doesn't anyone know whats going wrong with this?

    HI Xterratop,
    Did you manage to set iChat up in the duaghter's account ?
    Were you using your screen name ?
    Did you type in your Real Name in the set up screens ?
    It may be there is a problem with the Name you entered in the set up screens and the one in the Address Book at the Me card for that Mac account.
    Go to the /Users/(That Mac account)/Library/Preferences and delete all the apple.com.ichat.xxx.plist items you can find and force it to go through the set up screens again.
    11:32 AM Monday; August 7, 2006

  • Close the macbook pro when using external display

    Hi
    I would like to know if is recomended to close the laptop when using an external display? i ask because i read somewhere that the system take ventilation through the keyboard? is better to work with the laptop always open? or doesn't matter if is closed?

    Third opinion...
    I had a 2.16GHz 15" MacBook Pro that I used as a presentation machine at some trade shows in '07 and I once ran the machine with the lid closed, hooked up to an overhead projector looping a movie for 11 hours. When I finally shut it down for the night the machine was pretty warm (it was well ventilated) and was immediately usable. Out of curiosity the next day I ran it with a lid slightly cracked and the unit was significantly warmer at the completion of my day.
    The only thing I could justify as the temperature difference is that the LCD was on and causing heat in addition to the video card. I guess I would have been curious to leave the lid slightly cracked and then manually set the backlight to off.

Maybe you are looking for