Associate given carrier OAuth2 APEX user token when performing a query

Hello community,

We are developing a web application that relies heavily on the RESTful data queries.

To do this, we have different users of the APEX (they are each a separate application user) who partner with some projects.

We conduct approval via features integrated OAuth2, in fact through the flow of code-Protocol to issue a token to the bearer.

Now, by making the actual REST query, we cannot use APEX_UTEL_CURRENT_USER_ID or something like that for us return the desired information

.

Is how to get the user associated with the given token?

Our idea was to get the token in the request header and search for it in a "Token" Table, but unfortunately, we have no idea where (and if) the chips are stored.

How can we not only generally restrict or grant access to RESTful web services, but provide a result that contains only the data of the user has access to?

Thanks in advance!

We have found the solution, it's actually pretty simple:

Just use the property: ": current_user.

Tags: Database

Similar Questions

  • My control panel shows only one user, but when I start it shows two users on the logon screen. and I know no other password

    My control panel shows only one user, but when I start it shows two users on the logon screen. My user is an administrator. But I do not know password of another user. I am currently using as an administrator. But I also want other user password. Answer please

    Your machine has only two accounts: admin and guest. I saw a few messages before which the poster makes an additional account on the log on screen that does not exist. Since there is not, it cannot be used.

    Also note that you play a game at high risk, having only one administrator account. This forum deals daily with posters including one and only the admin account went bad for one reason or other. Something about it now while you can: create, test, and document a spare, even admin account that you have a spare emergency House key.

  • Control what dashboad a user sees when they connect

    Hello

    I'm running vRops 6.1 and users are imported from an LDAP source.

    I would like to configure the dashboard of the user, i.e. when they connect see and access to a single specific dashboard.

    any ideas/help?

    Thanks - Dan

    Hi Dan,.

    You can create the user dashboard, then share it with one or more groups of users. When you share a dashboard, it becomes available to all users in the user group you select. The dashboard will appear the same for all the users who share it. If you change a shared dashboard, the dashboard changes for all users. Other users can only view a shared dashboard. They cannot change.

  • What should I enter for "User Name" when you install the first 12 items on a Windows 7 computer?

    What should I enter for "User Name" when you install the first 12 items on a Windows 7 computer?

    Thank you

    TS

    Kglad

    I used the default value presented to me (computer username) and installed fine.

    Thanks for your comments.

    Concerning

    TS

  • Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    It is an Apple problem. They obviously fixed with a change to iTunes. Download the update on their part.

    HAL

  • Apex user as Global Variable

    Hello

    Is it possible to catch the Apex user in the system or the Global Variable to use for checking for example

    Br.

    MDK.

    Hello

    There's the substitution APP_USER string
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref166

    I hope that's what you're looking for

    Kind regards
    Jari

  • Report on the APEX users and workspaces...

    How are stored the apex users... is there a table that I can access...
    I would like to create a report in my OBIEE that displays what users exist in what workspaces apex (apex security)...

    Hello

    Users of the workspace are stored in table.
    If you are on version 3.2, something like

    SELECT user_id,
      user_name,
      first_name,
      last_name,
      security_group_id,
      apex_util.find_workspace (security_group_id) AS workspace
    FROM apex_030200.wwv_flow_fnd_user
    

    Of course, you must have privilege to query this table

    Check also check WWV_FLOW_USERS

    BR, Jari

  • APEX 4.2 slow performance

    Hello

    I installed Oracle 11 g Express in my Windows Server 2012 and I have 10 applications running on it apex. Access and performance within all web applications is very slow. How can I improve it?

    I read on the increase of the JOB_QUEUE_PROCESSES or SHARED_SERVER settings, but I'm not sure.

    If I install Oracle HTTP Server, web applications for my APEX could go faster?

    Thanks and greetings

    Hello

    GlashFish is supported.

    But I know that many managed execution APEX listener in Tomcat

    Kind regards
    Jari

  • Problem when I press query in an applet

    Well, the problem is the following
    When I press query, my applet gets Wider, it's because (I think) the message of 'Enter Query the selected field is case sensitive' and siebel expands the applet to show everyone this message.

    first question I have:
    where can I delete the message "Enter the query" or "The selected field is case-sensitive.

    second question, why some cmdlets have "the selected field is case sensitive," and another have only "enter the request", sound on the applet class?, models web site.


    Thanks for all!

    Matías.

    Please take a look at the next on Supportweb document:
    Change the AutoSize list Applet when you click on a text field with a sensitivity of the case [782614.1 ID]

  • Define apex execution context when it is called from user-defined form.

    I have a very (too) page complex to build. The page is built dynamically by the pl/sql in a pl/sql area. The procedure generates a form that is displayed to a user defined tag accepts function.

    I defined a procedure given to the public that receives as parameters (< entries... >) items published by the form's action property (< do action = "pkg.accept" > for example "") and manage the thing to (insert/update) based on the complexity and the way the form is built (like most of the people who coded pl/sql web have already done once in their life). Everything works very well.

    Now that 95% I need to work properly, I would need to access the data in the session of the apex which is not accessible because the execution context (the proc accept in the package pkg above) are not called by apex but directly. I have many other ways to do but the easiest would be a api, I can call with parameters, for example, user, session, app and page that set the environment variables and who would do the v() function would kick out me the required information.

    What makes this work (with the exception of the internal API)...

    Yes, but you can retrieve only items on level application (not those who belong to the pages). First of all, in addition to these steps, I have already mentioned, the overall application ID value with:

    apex_application.g_flow_id: = ;

    Then call the function (return varchar2) apex_util.fetch_app_item ('');

    Scott

  • How can I insert the apex user id in the table when connecting?

    Hello

    I created a database with SSO on application. As you know because, single-sign - on my users don't need to enter name of user and password to log into the application. When a user in my application login ID (email add) automatically appears in the upper right automatically. My question is how can I capture user ID in the user's my table when a connection of the user in the application?

    Appreciate any help.

    Thank you

    Mohammad

    Maybe my solution:

    1. Application-shared logic components, you have processes of the article.

    2. create processes with process Point: on the new Instance and text:

    declare
    l_exists integer;
    begin
    select count(*) into l_exists from user_objects
      where object_type = 'TABLE'
      and object_name = 'AUDIT_USERS' AND ROWNUM=1;
    if l_exists = 0 then
    execute immediate 'CREATE TABLE  AUDIT_USERS
           (WHEN DATE,
              USER_NAME VARCHAR2(30)
           )';
    end if;
    insert into AUDIT_USERS values (sysdate, v('APP_USER'));
    end;
    

    Concerning

    Ziut

  • Store does not recognize my administrator user account when you try to upgrade Windows 8 to 8.1 Windows

    I bought an Inspiron 17 7737 directly from dell.com on 05/12/2013.  It was delivered 12/182013.  The operating system was Windows 8.  I had assumed that he would have the last version of Windows when it has happened since 8.1 was released in October. I opened the app Store and the Windows 8.1 upgrade was not available for me.  I realized it was one problem for others and that he has not pursued further at that time.  I was out of town for 2 weeks in January and has not used the laptop during this 2 week period.  When I got home, I opened the store and found placed prominently on the invitation to the free update to 8.1. I signed up using the administrator account and when I hit the download button for 8.1. I received the message "You must use an account with administrator privileges to install Windows 8.1, try connecting with the user of an administrator on this PC account and try the update again".  I checked my account has administrator privileges and tried again and got the same message. I created another user account and gives privileges to administrator and try the download again signed on this account and received the same message.  I called technical support and for more than 5 hours on 2 different days, the technician tried to solve the problem by uninstalling and reinstalling the Windows updates. When that has not resolved the problem, it "refreshed" my PC which I understood to be given to the State at the time of delivery. He had to do all the Windows (about 65) updates and tried to re-download 8.1.  This does not change the error message when you try to download at 8.1.  At that time, I was told that they were raising a technical team that search every newspaper in my machine and find a solution.  They said they'd call me at the time where there is a solution. Although my administrator account has not been recognized during an attempt to make the download 8.1, it acknowledged the role of the administrator when the technician needed administrative approval to all uninstall and reinstall activities in trying to solve the problem.

    Everyone knows about this problem?  It is resolved, and if so, how is it resolved?

    You are not alone. Many have had the same problem with no resolution. I think there's something funny to do with user accounts. Making a second account with admin privleges does not work. I would try to reinstall the operating system of hidden image and try again. A refresh like tried Dell will not do because it retains much of the data before the update; you need a clean start. Do nothing witht the account Admin other than to let Windows put up and set your password. All updates must be installed before the upgrade is displayed in the store. I have improved five facilities to win 8 and have had zero problems.

  • What is the required user\password when you try to access the config listener

    Friends,

    A bit puzzled by this one!

    I'm trying to set up the listener to Apex with Apex 4.0 using TomCat.

    When I get to step 7 in the Apex earpiece Instructions

    Visit http://localhost: 8080/apex/Config to configure the Oracle Application Express listening port.

    When I browse to this place, I'm prompted to enter one will be

    What user\password can I enter at this stage?

    Thanks in advance for any help you may be able to provide!

    Hello
    I had the same problem - try:

    http://localhost: 8080/apex/listenerConfigure

    Marcus

  • Why I not see the image even when I'm logged in as a user as when I am logged as a tool?

    When I'm logged in as an administrator, all the sites I visit look as they should. But when I connect as long as user many of these sites don't look like just like thay - logotypes and other "layout" - things do not exist.

    I tried updating Java and Flash, but without success.

    See only the red and blue font in the text, but the buttons are missing etc etc. Very dull!

    I use Windows XP Pro, Mozilla Firefox 11.0, latest Java... Is there anything, that I have or what has changed when Firefox has been updated between 9 and 10 and 11?

    Guddrann

    When you sign in as a user, I assume that you are actually connect to a separate Windows XP account with limited privileges. Looks like there could be something funny going on in the settings of FIrefox for this Windows account.

    Follow the instructions for how to create a new Firefox profile (which will create a new set of parameters of Firefox, bookmarks, data, etc.) and see if it works better there: https://support.mozilla.org/en-US/kb/Managing-profiles

    If so, you can also retrieve important drawn from the old profile if you want - just follow the last section of the same article from the link above. I hope this helps!

  • Variable behavior shared &amp; user-defined when they are passed an error?

    If a [TRUE] error condition is preset to its input terminal:

    • What is the expected behavior for a shared variable that is read?             My guess: to return the default value for the type of data being read.
    • What is the expected behavior for a variable defined by the user who is playing?     My guess: to return the default value for the type of data being read.
    • What is the expected behavior for a shared variable that is written?         My guess: do not update the value of the variable.
    • What is the expected behavior for a variable defined by the user that is being written? My guess: do not update the value of the variable.

    Are my assumptions about the correct behavior?  If not, what is the actual behavior?  This is for LabVIEW version 11 and newer.

    Thank you!

    Hi, WNM,.

    I made a sample vi and tested this condition with a shared variable and your above correct guesses.  With shared and variables defined by the user, the default data type is returned when reading and the last value that was written in the shared variable is maintained when writing to it (when the entry to the variable error is set to TRUE).

    Concerning

Maybe you are looking for