After authentication redirecting before the user logged

Version of apex 4.1, custom authentication based on users of the Oracle database.

My goal is to allow a user to connect, and if their password is entered in the grace period (7 days before the due date, for example) they will be taken directly to a page to change their password, rather than the home page.


I have a page on page 101 (login) process to check if a password is about to expire (triggers a warning 28002). If this is the case, I store the warning message in a part of the application, "AI_LOGIN_WARNING".

In my custom authentication module, I have a post_authentication procedure: -.

------------------------------------------------
PROCEDURE post_authentication
IS

BEGIN

IF INSTR (: AI_LOGIN_WARNING, ' 28002') > 0
THEN
htmldb_application.g_unrecoverable_error: = TRUE;
owa_util. REDIRECT_URL ('f? p =' | v ('APP_ID') |) ': MY_ACCOUNT:' | v ('APP_SESSION'));
END IF;

END post_authentication;
-----------------------------------------------

where 'MY_ACCOUNT' is the alias of page for a page to allow the user to change his password.

There is a process on the MY_ACCOUNT page to change a password by calling a database procedure, passing in parameters p_lid = >: APP_USER, p_password =: P103_NEW_PASSWORD:

--------------------------------------------------------------------
PROCEDURE change_own_password
(p_lid IN VARCHAR2,
p_password IN VARCHAR2)
IS

e_not_current_user EXCEPTION;

BEGIN

IF p_lid! = V ('APP_USER')
THEN
RAISE e_not_current_user;
END IF;

EXECUTE IMMEDIATE 'modify user ' | V ('APP_USER') | ' identified by ' | p_password;


EXCEPTION

WHEN e_not_current_user
THEN
RAISE_APPLICATION_ERROR (-20010, ' you can't edit another user "password is).

END change_own_password;
---------------------------------------------------------------------



The first problem is that the app only redirects to the MY_ACCOUNT page if it is set to the Public.
If it is set to the Public, when I try to change my password I get the following error: ORA-01918: there is no such thing as 'NOBODY' user.
If I put APP_USER programmatically I get ORA-20010 ' you can not edit another user "password is error.


I seems as if I am redirected to the MY_ACCOUNT page before I was connected, even if the diversion is called in the later part of the AUTHENTICATION of my authentication scheme.

How can I make sure that Apex connect me before re - direct?

Thank you.

Hello

* Remove the message authentication process
* Creation of a branch in Page 0 or your homepage (before header) that redirects users 'Change password page' and set the condition so it runs only when it meets your requirement.

That should do the trick.

Kind regards
Hari

Tags: Database

Similar Questions

  • Establish the VPN connection before the user logged

    Hello world!

    Anyone know if it is possible to run the cisco vpn client and establish the vpn connection before the user logs (Windows 7)? How?

    Thanks in advance!

    You must Anyconnect VPN.

    use start before logon feature you can get the VPN before windows logon.

    There are a lot of configuration guide that you can find in CISOC regarding anyconnect SBL.

  • Web application of timesheet before the user log on to the domain network

    We have Windows 2003 server where active directory is installed and used as a domain controller, we also have another server where our web timesheet application developed in .net is installed.

    What we would like to do is before any user logs on his computer that he must complete the timesheet of the yestarday, if there already fillied timesheets can log or the system must raise message to fill the first timesheet. UserCan bypass the timesheet for max 3 days after that the system does not allow the user to log on to the field and exhausted once the time sheets he can log.

    access to the application of the timesheet using ipaddress with connection by port.

    Kind regards

    Houria.

    It is just a bit beyond, issues of the support that we offer in these forums, because we support the public versions of Windows and their security.  I suggest you post this kind of question in the forums TechNet (http://social.technet.microsoft.com/Forums/en-us/categories), as this is where people from Active Directory and the server will be found.

  • How to get the host name of the physical computer inside a virtual machine until the user logs in Windows?

    I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.

    I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.

    Is there a VMware API that can be called or asked the host name?

    Thank you.

    Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html

    Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.

    Mike

  • Access connections 4.52 tries to authenticate until the user logs

    We have a large number of computers laptop R61 and R61i on our field. How they are to connect to the network is the Windows login screen appears, the user enters his user name and password, THEN access should try to access the network and connect.

    Now, we have a few computers that start at the login screen but before the user can enter their credentials, logins continues its merry way and starts logging in the wireless... Since many of our customers are looking at the keys instead of the screen, they don't see what happens and are QUITE frustrated that they have to keep re - typing their username and password.

    Of course, the network connection fails because all users logging into our wireless network must have a domain account.

    This is how it is currently set up and works on MOST laptops.

    Wireless network using the JUMP to step 4 (safety type)

    TKIP encryption type is

    News of connection is configured to use the Windows logon user name and password<--- ac="" tries="" to="" log="" in="" before="" obtaining="">

    Tried with and without the inclusion of the domain name in the login name and refusing access until the user authenticates, but no go.

    I also tried with PEAP settings as well, but that he has not solved.

    Any ideas?  Y at - it a Windows update that causes maybe this?

    Salvation Fuzz!

    Try to change these keys in Regedit ens valeur0.

    HKLM\SOFTWARE\Lenovo\Access Connections\Roaming\EnableEthernetRoaming

    HKLM\SOFTWARE\Lenovo\Access Connections\Roaming\EnableRoaming

    Let me know if it solves the problem!

  • How to run the code (invisible) after connecting and before the first page of the user.

    Our site has a standard login page that I can't change. But I want to run code 1) after logging in the application (not APEX!) and 2) before the first page of the user of the application. How could I (can I?) put it on a page that runs invisible and then transfers it to the first page of the user application? Also, it would be great for testing I could reiniitalize easily between test scenarios without having to log in again.

    Thanks - Howard

    You could put it on page 0 and condition the process so that it works only on the login page.

  • SBS2003 deleted files back after the user logs off and logs on again

    This symptom started the first time, the user connects to the server using RDP but continues even when the user is connected to AD locally. The profile is growing in size. Someone have a solution?

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public to Server Small Business SERVER 2003 on the TechNet site. Please post your question in the forum TechNet Small Business Server. You can follow the link below to ask your question: http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/threads

  • No Internet access after you have copied the user files on.

    I created a new user account and copied all the files including documents and settings from an old user account.  Before I did I unhid all hidden files and system files.  What I was expecting, it was the new user account should behave exactly like the old user account without problem outside the difference between user account names.

    However, after doing this I couldn't Internet new user even account I could ping all web Internet sites I've tried.  Finally, I have to create another user account and copy only the document and manually I have to redo all the personal settings.

    If the problems were gone.  However, I would like to know if it is a problem to copy personal settings.  What is the most efficient and effective way to transfer the account from one to the other?

    Hello

    Did you remove the following files on the new account?

    • Ntuser.dat
    • Ntuser.dat.log
    • Ntuser.ini

    http://support.Microsoft.com/kb/811151/en-GB

    The link above shows how to copy a profile, however as far as the most effective way of copying, it depends on what you want, that is to say some parameters can be set for all users of the computer local strategies etc. If you want documents available to all users, use an all the "users share" with the permissions to prevent some accounts, editing files. This may or may not be what you want to achieve.

    Please confirm what data/files/personal etc settings you want to duplicate to the new user accounts, and state what - this time when creating or on an ongoing basis.

    Finally you use XP Home or Professional?

  • Using PEAP get "authentication failed" in the event log

    I'm trying to set up a server RADIUS and PEAP on a CISCO ARI-AP1242AG-A-K9 and I get an authentication failure message in the event log.

    First of all, I see 10.209.128.61:1645, 1646 RADIUS server does not respond.

    Then I see 10.209.128.61:1645, 1646 RADIUS server is back.

    Then, I get the message "failure of authentication station.

    The association tab shows the status of the client as 'treatment of the association.

    Customers are a Flint MX-560 and a windows XP SP2 laptop HP with a intel PRO/Wireless 3945ABG Network card internal.

    I was able to get the Flint to work using JUMP, but no luck at all either with the PEAP Protocol.

    Can someone help me?

    Thank you!

    PEAP allows to authenticate wireless users without requiring that they have USER certificates, but we still need a ROOT certificate.

    Here are some more specific details on PEAP:

    ... 'the protected '.

    Extensible Authentication Protocol (PEAP) Version 2, which provides

    a tunnel encrypted and authenticated, based on the transport layer

    Security (TLS) that encapsulates the EAP authentication mechanisms.

    PEAPv2 uses TLS security to protect against rogue authenticators, to protect

    against various attacks on confidentiality and the integrity of the method internal EAP Exchange and provide the EAP peer for the protection of privacy. »

    "In negotiating TLS, the server presents a certificate of.

    the peer. The peer MUST verify the validity of the EAP server

    certificate and SHOULD also consider the name of the EAP server presented in

    the certificate to determine if the EAP server can be

    of trust. »

    http://Tools.ietf.org/ID/draft-josefsson-PPPEXT-EAP-TLS-EAP-10.txt

    •PEAP uses the side authentication server of digital certification PKI public key Infrastructure-based.

    •PEAP uses TLS to encrypt all sensitive user authentication information.

    http://www.Cisco.com/en/us/docs/wireless/technology/PEAP/technical/reference/PEAP_D.html#wp998638

  • How can I display table 2D tabular on the Panel before the user can delete any subdashboards

    Hi guys and girls.

    It is my first post here, so go easy on me. I promise you that I used my best GoogleFu I before posting here.

    I am a self taught amateur LabView. I worked on a User Interface for my Robot SAGAR. See some of my work so far (girlfriend used as a draft classes, but we have both worked together on it, which got hooked me in the first place on LV):

    Now, I'm working on the use of LV and Google Earth as a planner of mission right now.

    My question is this. I have a 2D array that stores the Lat/Lon each waypoint. I's like to have posted on my

    front tabular, with WP # (the 1st dimension array index), Lat and Lon on line, like this.

    More importantly, have the user can select a point of full path (or just the number of WP would be ok) and remove it using key DELETE or any other button on the Panel.

    I am at a loss on how to do it. Ideas?

    Thanks for the help!

    Heal the little robot.

    You said that you were using a table. I suggest using a multicolumn listbox. In this way, you can change the selection mode to "highlight the whole line. You can use a structure of the event to respond to the user by pressing the delete key. See attached simple example. Note that some keyboard can label the BACKSPACE key as 'delete '. If you want to answer it, you also have to see if the Char value is 8, which is the code for this key.

  • The Win 8.1 pc user profile doesn't have the user log cannot load profile

    Hey guys, I've been watching some very good advice for this error on win7, but they do not seem to help me, I was wondering if anyone has any advice for me, because I need to solve this problem as soon as possible. What happens is, you identify you and 5-10 minutes later, it says the user profile failed the log on, unable to load the user profile. He signed then you and if you try once again, it's the same result. It's urgent question please answer as soon as possible!

    Hello

    Please refer to the following fix:

    http://www.thewindowsclub.com/fix-the-user-profile-service-failed-the-logon-user-profile-cannot-be-loaded

    Let us know if it worked for you.

    Hope this helps, good luck :)

  • "Mandatory filed is not defined ' error occurred before the user enter the stage

    Hello

    After this problem to see if anyone can help.

    I use vRO 5.5. I create a workflow and add three steps for the user to enter.

    In step 1, the user will choose param_1. For step 2, param_2 is defined as entry required and predefined of items list. He'll call an Action for this list. Param_1 will be the parameter of this action. See the image below:

    Now I start this workflow, after I select param_1, Action in step 2 will be called immediately and error "required field is not defined" appeared in step 2. But I do not click even next to step 2.

    I don't think it's a user of good experiences. Does anyone have a solution for this problem?

    Thank you

    Vicky

    Hi Vicky,

    There is no solution for this problem (in the case of the vCO Java client). I couldn't be the best possible UX, but it's how we run presentations.

    On the level of the API, there is no special handling for the steps. Each operation is performed on the entire presentation. That is, consumer API specifies no such thing as 'current' step - the API takes one or more input parameters (possible from different stages) and returns the presentation all re-evaluated.

    Therefore for the API client to track the current step and decide whether to display warnings/errors for fields that do not belong to the current step. client Java vCO has decided to display all steps validation errors; other clients may decide differently and provide the best UX.

  • Redirect to the user interaction

    Hi all

    I have a workflow as you can see in the attached picture. According to a user interaction that I would either like to redirect the user to another intervention by the user or cancel the workflow. I was hoping to do that with a script task, but I failed again. Is it possible to automatically redirect the user to this second user intervention? Otherwise, the user must click the link in the email again, which is very indirect.

    Thank you very much.

    I think you could do a composite interaction and show/hide the presentation of 'second interaction' part based on decision criteria.
    And when you have finished the presentation, you make the decision to cancel or continue, or not based on the entry of user or what criteria.
    This is what I suggest, out of real-world context.

    Good luck!

  • Warning before the user record

    Hi all

    I have entered the global settings of the view administrator and checked the box 'show a warning before forced logoff' and set it to 5 minutes, with a personalized message. However, if I go to my auto pool, click sessions, highlight one of the sessions and click disconnect session, the user doesn't see the message of global settings, and is immediately disconnected.

    isn't that a "forced logoff? I'm puzzled as to why the user does not see the message.

    Any help is appreciated.

    Mike

    I don't think that this setting is intended for a manual logoff.

    Since the (page 19) Administrator's Guide http://www.vmware.com/pdf/view45_admin_guide.pdf

    Display a warning before forced logoff

    A warning message appears when users are forced to close because a
    update scheduled or immediate as a desktop refresh-computer operation is
    starting point. ...

    André

  • Exception BAM-00404, authentication failed. The user is marked inactive

    Hi guys,.

    Recently, I had import users from the Active Directory (AD) in Weblogic. He has completed successfully. But, my BAM users, have been disabled automatically. After reading this forum and documentation of BAM and remove these users from the administrator of BAM, it was great! My users have reactivated, BUT after a few minutes of this (even if I was on an active session) my users have been disabled! I know there is a problem between BAM and LDAP, but I don't know, the problem is in BAM, because other apps, working properly, even using the same user I always use in BAM.

    Can someone help me, please?

    Kind regards

    Imene

    BAM done periodically a list of choices for the user using / API user role and is not found in the security provider that JPS/OPSS investigates. What version do you use?
    You should not see this problem in 11.1.1.2.0 version. Move AD security provider to the top in the list of the auth provider in WLS console. Or you can disable this periodic check in 11.1.1.2.0 version affecting false in the BAM configuration file server.

Maybe you are looking for

  • Library of original Photo remains on Macs?

    I have not yet activated iCloud... and I am quite misinformed!   If I want to activate iCloud can be used to keep folders in sync (iMac and MacBook Pro)? If I select to store Photos, I continue to have the "original" stored on my Mac? Automatic updat

  • Pavilion dv6-1334us: for the w10, how to change office?

    Hi all: I just replaced Windows XP with win10 House in my pc. The office/w10 screen is dark with a white beam of light from the window. Traditionally, the screen is distributed with the program/website icons you like and color and the reason that you

  • Can not install SP3 more?

    I understand that Microsoft announced that installed XP without SP3 system wouldn't receive Windows Update.  Recently, one of the Windows XP systems that I had the problem and it has not been resolved until I uninstalled SP3.  I thought that no updat

  • What carriers will be Xperia Z3?

    Hello world! What cell carriers will have the Xperia Z3? Will SPRINT? Thank you!

  • reading damaged hard drive clusters detected message

    can anyone help