Condition based on the authentication scheme

Hello

How can we determine the current active authentication scheme in a PL/SQL in Apex 4.2 application?

Thank you!

1033559 wrote:

Update your forum profile with a recognizable username instead of "1033559": Video tutorial how to change username available

How can we determine the current active authentication scheme in a PL/SQL in Apex 4.2 application?

Use the IS_CURRENT_AUTHENTICATION column in the APEX_APPLICATION_AUTH view.

For example:

select
    workspace_display_name
  , application_id
  , application_name
  , is_current_authentication
  , scheme_type
  , scheme_type_code
  , authentication_scheme_name
  , is_subscribed
from
    apex_application_auth
where
    application_id = 1948

Tags: Database

Similar Questions

  • Change the administrator account inaccessible apex because of the authentication scheme


    Dear all,

    "By mistake I changed the Admin of my Oracle Apex application account authentication scheme to ' Oracle Application Server Single Sign-On. The application is hosted on a Linux server. Now, I'm not able to access the application and get this message"

    WWSEC_SSO_ENABLER_PRIVATE package does not exist or is not valid.

    Please ask your administrator to Application Express to configure the engine to Oracle Application Server Single Sign-On. »

    Someone could please help me out here and let me know how can I change this back to demand Express accounts? If there is no script that can reset to default, or whatever it is?

    Thank you

    Hi najet-Oracle,.

    Christophe-Oracle wrote:

    "By mistake I changed the Admin of my Oracle Apex application account authentication scheme to ' Oracle Application Server Single Sign-On. The application is hosted on a Linux server. Now, I'm not able to access the application and get this message"

    WWSEC_SSO_ENABLER_PRIVATE package does not exist or is not valid.

    Please ask your administrator to Application Express to configure the engine to Oracle Application Server Single Sign-On. »

    Someone could please help me out here and let me know how can I change this back to demand Express accounts? If there is no script that can reset to default, or whatever it is?

    Connect to the SYS user with SYSDBA privilege and to do this:

    ALTER SESSION SET CURRENT_SCHEMA = APEX_050000;
    
    BEGIN
        APEX_INSTANCE_ADMIN.SET_PARAMETER('APEX_BUILDER_AUTHENTICATION', 'APEX');
        COMMIT;
    END;
    /
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • How to choose the LDAP settings in the authentication scheme?

    Hello

    I'm not LDAP expert by any stretch of the imagination ("newbie" would probably be a much better description of my 'expert' level), so please help me understand in simple terms why I'm not going to put up the correct authentication scheme.

    When you use Softerra LDAP Browser 2.6 from my PC (where Apex 3.2 is also running in an instance of Oracle 11 g), I can successfully connect to an LDAP service and see all of the directory by using the following parameters:
    -Host: 10.34.70.236
    -Port: 389
    -User DN: cn = RIS, OU = RIS, or = Applications, OU = Services, o = BMGC
    -Password is empty

    When you configure the LDAP authentication scheme, I use the same settings:
    -LDAP host: 10.34.70.236
    -LDAP Port: 389
    -String LDAP DN: cn = RIS, or = RIS, ou = Applications, OU = Services, o = BMGC

    When you try to log in with my user name, I get error of authentication fr.

    -How is it supposed to work?
    -How is he (supposedly) find my user name in LDAP full?
    -How the LDAP_USER parameter is used?
    -Where can I learn more about this topic?
    - And finally and above all, how can I make this work as any user in the LDAP service can connect but no one else do?

    Thanks in advance,

    Gabor

    In the LDAP DN string field, you would put % LDAP_USER % where you want your user name typed-in (from the logon page) to go, for example,.

    CN = % LDAP_USER %, or = RIS, or = Applications, OU = Services, o = BMGC

    This becomes the DN DBMS_LDAP argument. SIMPLE_BIND_S and the password for your login page is used as the argument of PASSWD SIMPLE_BIND_S.

    How is it (supposedly) find my user name in LDAP full?

    You must know the exact structure of the directory to find out where your username is present.

    And finally and above all, how can I make this work as any user in the LDAP service can connect but no one else?

    If the verification of user name and password succeeds on the LDAP directory, then authentication is successful and that the user will be connected. I don't know what is the other case.

    Scott

  • Calling a function in the process of prior authentication in the authentication scheme

    Hi all

    I want to call a function somewhere inside the apex (not in the database) of the prior authentication process in an authentication scheme.
    Is this possible?

    Cordially Pedro.

    Pedro

    Apex is in the database under the scheme of flow so I don't know what you're getting...

    Is that what you want your function (I guess that's PL/SQL?) in a pattern that do not have access to the users?

    See you soon

    Ben

  • Formatiing conditional based on the value of the parameter

    Hi all

    I have a report of rdf. It has two layouts (one for English) and one for the Germany. Based on the setting of language last matching configuration is selected.

    But how could do us the same using XML Publisher.

    Simply, we can write an If statement indicating if: P_language = "English".


    But how do we reference the input parameter: P_Lnaguage in Model Builder and how do you write the if statement.

    Please let me know.

    Kind regards
    Kumar.

    Hello

    at the top of the model of provision yor set your setting in a form field:

    Then you can use this setting in an if condition:

    Concerning
    Rainer

  • Share the authentication scheme between different applications

    Hi all:

    I use APEX3.1.2 in Oracle 10g XE.

    I created a new authentication scheme called 'APEX_EBS' in the application "A". I have several other applications 'B', 'C' etc. I want also to application 'B' and 'C' using the same authentication scheme 'APEX_EBS', I created for application 'A'. However, I have connection select application 'B' (or 'C'), then the shared components = > authentication schemes, I do not see the pattern "APEX_EBS".

    How to make my "APEX_EBS" available for application 'B' and 'C' custom authentication scheme. It seems easy to do, but I can't find an answer.


    Thank you!


    Kevin

    Kevin,

    First, all applications must exist in the same workspace. Go to application B, create an authentication scheme (note, Plan, no schema) of the Gallery (choice of the scheme of Application Express) and name it EBS_COPY, for example. Then modify this scheme and under subscription, use the popup LOV labeled 'Reference Master Authentication Scheme From' and select the application APEX_EBS schema a. apply changes and which copy the APEX_EBS authentication scheme in application B.

    This publish/subscribe feature is also available for other types of shared components. At any time, the developer of a subscribing application can use "Refresh" to "pull" the latest version of the component from the main application, or editing. Alternatively, the publishing application developer can use the "publish" feature to 'push' the most recent copy of the component to all subscribers.

    Note that for shared in this way authentication schemes, you must decide if you want to use a page of common connection or page within each application. If your APEX_EBS authentication scheme uses a login page in one or more of your apex applications, let me know how it should work and I will be able to guide you further.

    Scott

  • List of the authentication schemes current for Applications in a workspace

    Hello

    I have a request by our verification service to give them a list of applications and that the authorisation schemes they currently use. I had a quick glance at the sight APEX_APPLICATION_AUTH and from this point of view only gives me the authorisation schemes available for each application, but I can't see a column that allows me to filter on the current. Does anyone know how to get there?

    We use the Apex version: 3.2.0.00.27.

    See you soon,.
    Paul.

    Hello

    Can you do this?

    select workspace, authentication_scheme from apex_applications;
    

    Yes?

  • Adding conditional based on the checkbox

    I have a field that adds the values of several other fields in the form.  The question I have is how can I add another 2 If a certain checkbox is visible and active?

    Hello

    You would need an if/else statement that looks at the value of the checkbox.

    This could be in the event to calculate the field which displays the answer:

    var tempAnswer = numericfield1.rawValue + numericfield2.rawValue + numericfield3.rawValue;
    
    if (checkbox.presence == "visible" && checkbox.rawValue == 1)
    {
         tempAnswer = tempAnswer + numericfield4.rawValue + numericfield5.rawValue;
    }
    
    this.rawValue = tempAnswer;
    

    You would need to change the object references, etc, but it should give you a structure to work with. We have examples here, some of which include objects with calculation scripts: http://assure.ly/eEPuCM

    Hope that helps,

    Niall

  • Error after implementing the custom authentication scheme

    I have reproduced this time a workspace (GOGGINSCRATCH to apex.oracle.com) running 4.2.1.00.08 and a workspace 4.1.1.00.23 running

    Error: ORA-06550: line 4, column 23: PLS-00306: wrong number or types of arguments in the call to "AUTHENTICATOR" ORA-06550: line 4, column 1: PL/SQL: statement ignored

    PL/SQL in my workspace

    create or replace PACKAGE REPORTINGAUT AS

    function authenticator (user_name in VARCHAR2, pwd in VARCHAR2)
    return a Boolean value;

    END REPORTINGAUT;

    create or replace PACKAGE BODY REPORTINGAUT AS

    function authenticator (user_name in VARCHAR2, pwd in VARCHAR2)
    return a Boolean value AS
    BEGIN
    / * Implementation of necessary TODO * /.
    RETURN TRUE;
    END authenticator;

    END REPORTINGAUT;

    ------------------------------------
    APEX Builder Application steps
    (1) the shared components
    (2) the authentication schemes
    (3) create
    4.a) based on a system preconfigured Gallery
    4.b) name fred
    4.c) Type == custom
    Name of the function of authentication 4.d) = ReportingAut.authenticator
    4.e) activate the legacy of authentication attributes == Yes + (I've tried it both ways).

    So... this plan is underway, but when I try to connect, I get the above error... Driving me crazy... Thanks for any help...

    The parameter name is important. This should work:

    CREATE OR REPLACE PACKAGE reportingaut
    AS
       FUNCTION authenticator (p_username IN VARCHAR2, p_password IN VARCHAR2)
          RETURN BOOLEAN;
    END reportingaut;
    
    CREATE OR REPLACE PACKAGE BODY reportingaut
    AS
       FUNCTION authenticator (p_username IN VARCHAR2, p_password IN VARCHAR2)
          RETURN BOOLEAN
       AS
       BEGIN
          RETURN TRUE;
       END authenticator;
    END reportingaut;
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Create the custom for more than one table, and then another user authentication scheme

    Hello

    I already test to create an courable authentication scheme. It works very well!

    My problem is that I designed a database on the data requirements. So the results are two different user tables - one record data of the company and the other to consist of data from dealers. Both can register on my web application with e-mail address (Unique).

    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.

    Can you give me some more ideas how slove/manage this problem...

    I am using APEX 4.0.2 on an Oracle 10 g database.

    NEDO

    Edited by: Mr.Nedo the 12.05.2011 02:16

    >
    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.
    >

    Create a view which combines common elements of the user of the 2 tables and the authentication scheme based checks on the view.

  • How to set the landing page based on the login information?

    Hello

    I'm on 4.0.2 Apex and use the custom with application authentication table users (that is, the application itself that manages the connection).

    The application has a few tabs and based on the role of the logged in user, I show/hide the tabs using conditional display.

    Things are very well so far, but I don't know how to change the default landing page connecting based on the role.

    By default, page 1 appears when connecting, but not all roles have access to this page. How can I change the launch page, under certain conditions?

    For example,.
    If the role is Admin then go to page 1,
    If the role provider then go to page 310
    .
    .
    etc.

    I use the logon page out-of-the-box 101


    Thanks for the help.

    I quickly tested on an ApEx 3.2 above environment. It worked only once I've changed the URL of disconnection in the authentication scheme:

    wwv_flow_custom_auth_std.logout? p_this_flow = & APP_ID. & p_next_flow_page_sess = & APP_ID.: 101

    I changed the id app at the end of 1 to 101.

  • OAM authentication scheme does not

    Hello

    I see a weird or probably known OAM authentication scheme feature. I added a diagram to a policy, it redirects to the login (authentication based on form) correctly. But, after authenticating successfully, it redirects to oberr.cgi? page, it works when I add the same form:, action: defy the parameters to an another authentication scheme, the policy works fine. It is clear that there is no problem with policies configured, because when replaced already authentication scheme with this one, it works fine. I tried to add a new window altogether after you remove the old. It does work for her as well. Don't know what the problem is. I updated, turn and even rebooted OVD/PM/ASIS, but still he does not accept the authentication scheme.

    Any who came across this type of problem before. Any help is appreciated.

    Although he long ago, I asked this question. The mistake was due to the webgate to Oberror redirect because it was not configured correctly.

    If someone finds this post useful, please try to check all the layers of webgate between.

    Hope that helps.

  • APEX4: Filling of fields of database based on the value of SelectList

    Hello

    I have a Select list and 4 fields of text on a form. By choosing a value in the select list, I have to fill out text fields from its values from the database by using the value in the list select as primary key.

    How can I do this in 4 APEX?

    Thanks for the help.
    -Hozy

    OK, the problem was solved on apex.oracle.com

    You were not able to access the application because your application uses DB account as the authentication scheme, who obviously would not work on apex.oracle.com.

    I have change the authentication to Apex on apex.oracle.com scheme.

    About 3-4 truggers were not valid for account forms, the customer and transfer did not work. Who sets also.

    There is no data, then finished by create minimal records juices.

    Now take a look at the Page 14 and dynamic Actions. Only Address1 and Address2 are Benoit updated, based on the customer account. You will need to add additional Dyna for the zip code and city Actions.

    Next time around, please make it easier for someone to help out you by
    1. the manufacture of safe objects are valid
    2. it some (dummy data) in the relevant tables

    Kind regards

  • The CPL Forking based on the Destination

    I don't know how I can fork a call using CPL, but how someone can fork a call based on the compound alias?  So if I call the endpoint-1 point, the call will not be forked unless the destination alias is the endpoint-1 point, if it's something else like point endpoint-2 the fork will be bypased.

    xmlns:taa="http://www.tandberg.net/cpl-extensions"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="urn:ietf:params:xml:ns:cpl cpl.xsd">

    Hi Patrick,

    If you want the fork conditionally based on the destination alias, you might have something like

    http://www.Tandberg.NET/cpl-extensions"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "urn: ietf:params:xml:ns:cpl cpl.xsd" >

    This CPL would match a call with the destination alias "endpoint-1' and the call for two new destination alias, ' newdestination-1' and ' newdestination-2' fork.»»» If necessary, you can add additional sections. The first location section should have clear = 'yes' so that we remove the original destination ("point"), while the sections consecutive site should have clear = 'no' to preserve the new alias of destination within the overall situation.

    Finally make sure you have a statement inside the latest location section to ensure that the call is actually transmitted by proxy.

    Hope this helps,

    Andreas

  • Increase (or decrease) the authentication level using OAM user Plugins

    Hello

    I have a scenario with 100s of applications protected by OAM. One of these applications, a portal, must grant access not only to all employees, but also a special set of users. These users live in a special subtree of my ldap repository. While these users have access to this portal, they should not be able to access any other application. All regular regular employee should be able to log in to the portal, and from there, go to any other application they want.

    My current thinking is the "authentication level" value 1 protection plan portal, and use an OAM plugin to increase the level of authentication only for regular users. Y cannot apply the rules of pre auth because these users can come from any IP. Challenging users twice of credentials (authentication step) is not an option.

    Now, here's my problem: I have not found a way by programming to set the level of user authentication. I tried to use the KEY_PROP_AUTHN_LEVEL parameter in UserAuthenticationPlugin, but it seems that it has no effect whatsoever. I also checked school directors and the attributes of the user credentials and there is nothing associated with this.

    Did anyone done this before?

    Thank you!!!

    The authentication level is related to the authentication scheme. To change the level upwards or downwards, you will need to change to the plan with the desired level. If your plugin needs to amend the plan in order to change the level. Change the system basically will invoke the step to the top/bottom/workflow process and the user will be asked to re-auth.

Maybe you are looking for