WebCenter RIDC DataControl always redirects any JSP page to login page

Hi
I have created a Data Control which connects to the UCM data repository and created a plain JSP page to return the results. I have used RIDC Connection settings and authentication details are tested and they look fine to me.
RIDC Socket Type: socket
Server Host Name: localhost
Content Server Listener Port: 4444
Authentication: Identity Propagation
Username/Password: weblogic/weblogic
But when ever I ran the test JSP page, it always redirects the page to login page. For example: http://127.0.0.1:7101/RIDCDocumentManager-Portal-context-root/faces/oracle/webcenter/portalapp/pages/login.jsp
Any suggestions?
Thanks
Khad

Thanks for the details Yannick. The home.jspx works as expected. Thanks for that.
I have got one more question on passing username through RIDC api.
Via RIDC, how can I pass the UserName to the IdcContext object dynamically [IdcContext userContext = new IdcContext("weblogic");]. I mean how to retrieve the logged in user name for the person requesting the page instead of hardcoding the username. Below is the code fragment:
// create the manager
IdcClientManager manager = new IdcClientManager();
// build a client that will communicate using the intradoc protocol
IdcClient idcClient = manager.createClient("idc://localhost:4444");
// get the config object and set properties
idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
idcClient.getConfig().setConnectionSize(20); // 20 connections
//create a simple identity with no password (for idc:// urls)
IdcContext userContext = new IdcContext("weblogic");
// create an identity with a password
//IdcContext userPasswordContext = new IdcContext("weblogic", "idc");
// get the binder
DataBinder binder = idcClient.createBinder();
// populate the binder with the parameters
binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
//binder.putLocal("QueryText", parameter);
parameter = getInputParameter();
binder.putLocal("QueryText", "<qsch>" + parameter + "</qsch>");
binder.putLocal("ResultCount", "20");
// execute the request
ServiceResponse response = idcClient.sendRequest(userContext, binder);
// get the binder
DataBinder serverBinder = response.getResponseAsBinder();
DataResultSet resultSet = serverBinder.getResultSet("SearchResults");
// loop over the results
for (DataObject dataObject : resultSet.getRows())
dataObject.get("dDocTitle");
dataObject.get("dDocAuthor");
dataObject.get("dInDate");
System.out.println("Title is: " + dataObject.get("dDocTitle"));
System.out.println("Author is: " + dataObject.get("dDocAuthor"));
System.out.println("Author is: " + dataObject.get("dInDate"));
}

Similar Messages

  • Accessing a page from login page without login

    hi gurus,
    i have a link on my login page, for example-- about company. if i try to access it, it will always ask for login first and then go to that about company page. can i access this page without logging in?
    i saw some solutions like hidden region displayed on same login page, but what if i need to navigate to a different page?
    nadeem

    Hi Nadeem,
    As long as the page has no functionality on it - typical for things like "Terms and Conditions" etc, then you can just make that page public. Edit the page attributes and set Authorization Scheme to "-No Page Authorization Required-" and set Authentication to "Page is Public".
    That way, the page can be seen by anyone whether they are logged in or not.
    Andy

  • Adding !Doctype at top of page in login page of portal

    Hi Experts,
    I need guidance on how we can put <!doctype> tag on top of page ie before <HTML> tag.
    I have a requirement to build custom logon screens which i have build but when i put it in sap , it opens in Quirks mode in IE9 .
    I have seen that when i changed its mode to standard mode 9 then it looks perfect, also it works properly in Chrome and mozilla browsers,
    I have refer some SCN links which says to create java api to add <!doctype> , if we can follow the same then let me know it step by step as i am not that good in java.
    Kindly guide me ASAP .

    Hi Amit,
    This is not supported currently. See my answer in Re: doctype tag for external facing portal logon application (NWP 7.3) and also the referred SAP-Note.
    @Andrew: The question was about the login page, and this has not yet a portal desktop!
    Anyhow, even if Dani Cohens explanation made sense at that point in time, meanwhile http://service.sap.com/sap/support/notes/1713259 could be a good reason to change this. I would suggest to open an OSS message and ask for clarification, as with note 1713259 there is the possibility that also a HTML5 login page could be rendered successfully within a HTML5 portal.
    It should be the responsibility of the customer (and this can be stretched in the note about the HTML5 support for the login page) that if he uses an HTML5 login page for the portal that in this case the portal itself should be completely HTML5, too, as otherwise a login page within the portal might lead to issues.
    Hope it helps
    Detlev

  • Adding Banner in page 101 (login page)

    Hi all,
    I'm using theme 10-Sand in Apex.
    I placed a banner in de application by uploading the banner in the Shared Components> Images.
    The problem is that i can see the banner in the other pages of my application except in the login page (page 101).
    Can anyone assist?
    Kind Regards,
    Reena.

    Found it,
    Thanks Varad, i tried something with which i thought was the Logo substitution string.
    In the Edit page of the login, i put this piece of code in the body:
    *<tr>*
    *<td id="t10Logo" valign="top" width="100%">#LOGO#
    #REGION_POSITION_06#</td>*
    *<td id="t10HeaderMiddle" valign="top" width="100%">#REGION_POSITION_07#
    </td>*
    *</tr>*
    And it worked.
    Kind Regards,
    Reena

  • Redirect to Portal Login page from portlet

    We have lots of applications on the portal and many of them need the logged in user information to provide the right display context. For example, "My Notes" where notes are stamped with the user's login id. Our portlet applications show exception messages when the user id is unavailable. Pressing a refresh button takes them to the portal login page.
    Does anyone know how to redirect to the portal login page? Here is how I would like it to work: A user has the application up beyond the session timeout period and does something that causes the page to submit. At the application server we look for the logged in user ID which is missing due to session timeout and we send them to the portal login page.
    Thanks! Mike

    Hi James,
    <br />
    <br />I fear this isn´t possible to do with ADDT, as it will - when using its Restrict Access To Page behaviour - always redirect to the page you specified in the Control Panel.
    <br />
    <br />However you can help yourself with a simple custom PHP redirect script
    <i>(place it @ @ line 1 of your document)</i> which checks whether the "kt_login_id" Session Variable is set, and if it´s not set, redirect to a different login page:
    <br />
    <br /><?php<br />if (!isset($_SESSION['kt_login_id'])) {<br />header('Location: http://www.example.com/directory/login.php') ;<br />}<br />?>
    <br />
    <br />Hint: users who login via a different login page will still be redirected to ADDT´s default login page when logging out
    <br />
    <br />Cheers,
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Custom login page with Policy Agent 2.2 & Access Manager

    Hi,
    I’m trying to set up policy agent 2.2 and Access Manager to use the login page of the application I’m trying to secure. I’m not sure if this is the correct forum or not so feel free to move this if need be.
    I’ve been using this link: http://docs.sun.com/source/816-6884-10/chapter3.html#wp25376 but it doesn’t seem to make sense.
    In my AMAgent.properties file I’ve set up
    com.sun.identity.agents.config.login.form[0]=/contextRoot/login/login.jsp to my login page and I’ve also configured the web.xml for that application to use the login:
         <login-config>
              <auth-method>FORM</auth-method>
              <form-login-config>
                   <form-login-page>/login/login.jsp</form-login-page>
                   <form-error-page>/login/login.jsp</form-error-page>
              </form-login-config>          
         </login-config>
    When I try and access the login page I’m redirected to the default access manager login page. I did notice in the AMProperties.xml file the following line:
    com.sun.identity.agents.config.login.url[0] = http://amserverhost:80/amserver/UI/Login
    It seems like I should change that to point to my login page but I didn’t see any documentation supporting that. When I change that property to point to location of my login page, i get a redirect loop error.
    When I remove the com.sun.identity.agents.config.login.form[0] property all together, I just get a resource restricted error.
    Now when I configure the com.sun.identity.agents.config.login.form[0] property, set the config.login.url = to my login page AND set the com.sun.identity.agents.config.notenforced.uri[0] property equal to my login page (so the login page is no longer protected) I am able to see the login page
    Is unrestricting the login page correct? I’m able to access the login.jsp page directly and when I try and access protected resources I’m redirected back to the login page so everything seems to be working correctly but I’m not sure if this is the correct way.

    Hi Neeraj,
    I still have not been able to resolve that issue. Let me know If you find a solution for the same.
    Thanks,
    Srinivas

  • J2EE Policy agent - login page config questions

    Hi,
    I'm trying to configure a customized login page for an application that is protected by a AM Policy Agent 2.2-01 on SJSAS 8.2.
    I am aware of this link:
    http://docs.sun.com/app/docs/doc/820-2539/gatai?l=en&a=view .
    This describes configuring the custom login for an app. Based on the doc, I have configured the following:
    1. I have the agent and my app on one instance on myhost.mydomain.com
    2. A url policy is protecting my app, configured in Access Manager 7.1. The url is http://myhost.mydomain.com:38080/myapp/*
    3. In my app's web.xml I have the following:
      <login-config>
            <auth-method>FORM</auth-method>
            <form-login-config>
                <form-login-page>/login.jsp</form-login-page>
                <form-error-page>/loginerror.jsp</form-error-page>
            </form-login-config> 4. In AMAgent.properties:
    com.sun.identity.agents.config.login.form[0] = /myapp/login.jsp
    com.sun.identity.agents.config.login.error.uri[0] = /myapp/loginerror.jsp
    com.sun.identity.agents.config.login.use.internal = false
    com.sun.identity.agents.config.login.content.file = FormLoginContent.txtThere doesnt seem to be any change in login page when I go to my app. It just redirects to the Access Manager login page, and when I login it redirects back to the app. The security behavior is correct but I would like the login page to be unique for the app.
    So my questions are:
    1. Am I using com.sun.identity.agents.config.login.use.internal correctly? I dont want it to use internal login, but my login file, right?
    2. My login page is protected by my url policy. Is that a problem? Should I be using com.sun.identity.agents.config.notenforced.uri[0] on the login page?
    3. Can anyone clarify to me exactly how and where the contents of FormLoginContent.txt is used?
    I'm kind of new to AM and Policy Agents, so i apologize if my questions seem very newb. Any help is appreciated. Thanks!
    -Matt

    Changing com.sun.identity.agents.config.filter.mode to URL_POLICY seemed to help. I am now seeing /myapp/login.jsp as the login page for my app. The logins themselves are failing, however. I am confused as to how to set up the jsp to work with the agent to log in.
    -Matt

  • Launching contributor, where is login page config defined?

    I have an upgraded 11g UCM instance for both contributor and consumption. The URL is <domain>/ecm for the web front end of the system. I have a site defined that has a site address defined to a domain name. When I am on any page, and press CTRL-SHFT-F5, instead of going to domain/ecm/login/login.htm to authenticate, I am going to domain/cs/login/login.htm and get an error message. Where is "cs" defined so I can go change it?
    Thanks, Ken

    Changing com.sun.identity.agents.config.filter.mode to URL_POLICY seemed to help. I am now seeing /myapp/login.jsp as the login page for my app. The logins themselves are failing, however. I am confused as to how to set up the jsp to work with the agent to log in.
    -Matt

  • Modifying existing login page

    I've read some of the related threads concerning "custom login scripts, etc etc". Some of these solutions are really complex. I'm new to portal and need a cut and dry method of modifying the default "Welcome to Oracle Portal" inititial login screen, as well as the login page. I would simply like to modify the look and feel, import my own graphics, etc. To this point, I have seen no easy way to do it. PLEASE HELP!

    I modified the existing login page and it worked instantly without restarting the services.
    I too wanted to easily modify the default SSO login page to suite my company's look and feel. The easiest and quickest way for me to do that was to put a redirect on the default SSO login page to a login page that I created in Portal (using the built in Portlet Login). My only problem is that now when a user mis-enters their username / pass they do not get an error page but are redirected back to the login page. Also, keep in mind that if you use the redirect method, all applications using the SSO will have this login page. That is not desirable for most companies.

  • Keychain doesn't recognize login page.

    When using keychain i let it create a password on account setup page, but when I try to login to same site it doesn't recognize that site because it's a different page (the login page, not create account page)
    I had a feeling this would happen so I tried to right click and copy the suggested password and wasn't able to. Now the password is unknown and I can't access my account.

    I just encountered a similar issue while syncing my iPhone 3G, except the message was along the lines of "AppleMobileSync wants to use confidential information from your keychain." This never happened before, and I have not been able to make it happen again. A response to an archived post from last January attributed it to MobileMe trying to access passwords stored on keychain; however, I don't have a MobileMe account. Any clarifying information would be appreciated.

  • Dynamic Text in SAP portal login page

    Hi All,
    I want to display some text information in the SAP Portal login page.Is it possible to display dynamic text in the login page?
    Can anybody help in this?
    Regards,
    V Karthi

    Check the following links as well.
    [Customizing Portal Login Page;
    [Portal Login Page Customization;
    Check all 3 weblogs.
    Regards
    Puneet

  • How to make login page navigate to last visited page?

    Hi,
    In our application, there are many public pages. In certain page, users need to login and then add or edit something. But login page will navigate to page 1 by default. Uses need to click some times to locate the last visited page.
    I defined a new applicate item "LASTPAGE", and a new application process "setpage":
    begin
    if :APP_PAGE_ID!=101 then
    select :APP_PAGE_ID into :LASTPAGE from dual;
    else
    select 1 into :LASTPAGE from dual;
    end if;
    end;
    "setpage"'s process point is "On Load: Before Header(page template header)"
    In login page 101, log in process is like following:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':'||:LASTPAGE
    But the thing is it does not work. Log in page still go to page 1.
    Best regards,
    Qiang.
    Message was edited by:
    user535779

    Hi Scott,
    I would like to branch at the page that I am trying to get to from page 101.
    Let say page 12 Requires Authentication
    When I am not logged in , and I try to access Page 12 , I get branched to page 101 (login page).
    Now , from page 101 , I would like to branch to the page I was trying to access , in this case Page 12
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||:APP_PAGE_ID
    The problem is that APP_PAGE_ID contains 101 and not 12
    Francis.

  • Login page remeber me checkbox

    hi all,
    how can i add a "rember my password" feature on my login page
    (my login page already has 1.login portlet 2.create new account link)
    thanks in advance.
    farbod mano

    Try to post this question in the Portal Security and Login Server forum.
    Peter

  • Why does Firefox always block any link I try to open going to a web page when I don't have pop up blocker on?

    Why does Firefox always block any link I try to open going to a web page when I don't have pop up blocker on? First off they are not even pop ups....your crap blocks everything and don't save user names &/or passwords when you have it checked. Also in your tutorials about solving this issue says it has the word "OPTION" .......no, it never says option to allow you to bypass it and etc. Only thing is says is "ALLOW" . That would be nice , but the problem is it will not allow it from then on. It only allows it right then and then you have to refresh...after that to open again it blocks it again.....HOW STUPID?!!!!!
    It always say that this is preventing this page from automatically redirecting to another page. THIS IS WHAT I AM TRYING TO DO...GO TO ANOTHER PAGE........I DON'T NEED YOUr BROWSERS PERMISSION TO DO THAT. THAT IS WHAT A *%#$&*(&*%$$%% BROWSER IS FOR TO GO TO OTHER PAGES......THEY ARE NOT POP UPS!!!!!
    YOU STUPID BROWSER ACTUALLY BLOCKS EVERYTHING AND THAT SUX!!!
    HELP!!

    Are you using "Clear history when Firefox closes"?
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you want to keep.
    Let all cookies expire when you close Firefox.
    *Firefox/Tools > Options > Privacy > Cookies: Keep until: I close Firefox
    You can choose to keep third-party cookies from visited sites if necessary.
    Create a cookie 'allow' exception for cookies that you want to keep.
    *Firefox/Tools > Options > Privacy > Cookies: Exceptions

  • Redirect from jsp bean to jsp or html page

    I am facing a problem in redirecting to a jsp page from jsp bean
    How do i redirect from jsp bean to any other page like jsp or html.
    [email protected]

    Hi
    The solution you suggested we tried it long before only but it is not feasible for us as we have to implement it in all web pages which are in thousands.
    My need is like this.
    We have given specific time to each of our registered user , as user logs to our portal we calculate session time in bean and as he logs out is new time gets updated. (its like dial up connection)
    Now what happens consider user has left only 10 minutes balance, I can calculate and keep track for his time in bean.Now as the time becomes zero I want to redirect him to home page.
    As u said i can get return value zero for bean and can do it ,but our webpages are near about thousands.

Maybe you are looking for

  • Satellite C660-2EV crashed with BSOD and does not boot

    My Satellite laptop C660-2EV running Windows 7, for no apparent reason crashed to the blue screen of death, after which it would not reboot. I have attempted to reboot in safe mode using the function keys but it gets as far as loading: windows\system

  • Ipod Mini Not working with iTunes 7.2

    It says that I have a corrupt file on ym ipd and then when I tell it to restore, it says there was a problem restoring and the requested resource was not found. What do I do? This has only happened since the new itunes was installed. Kristy

  • Status of sound play

    Hi, We are trying to output sound to the computer's sound card continuously from say a continuously sampled analog signal. We recognize that there are two clocks involved here, a A/D sampling clock and a clock (on the sound card) for outputting the s

  • Account Hacked and In-App Purchases Charged

    I was charged for in-app purchases for an app I never downloaded.  The app is listed as a free app and therefore as best I can tell there is no course of action through Apple for getting the total ($43.56) refunded.  Anyone know of anything that can

  • Anybody having any trouble with hotmail on your iphone?

    Up until yesterday, hotmail was working fine on my iphone4s.  After that i cant delete any messages or refresh the screen. I can select messages, but i cant delete them. Anybody have any answers? By the way, hotmail is working fine on my ipad. Thanks