Anonymous access to Portal Component over direct URL.

Hi All,
Im having a few Issues with enabling anonymous access to a portal component.
Here is a mock of our portalapp.xml file
<?xml version="1.0"  encoding="iso-8859-1"?>
<application>
  <application-config>
    <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
    <property name="startup" value="true"/>
    <property name="releasable" value="true"/>
    <property name="Vendor" value="com.ourdomain"/>
    <property name="SecurityArea" value="OurSecurityArea"/> -->
  </application-config>
  <components>
    <component name="MyComponent">
      <component-config>
        <property name="ClassName" value="com.ourdomain.MyClass"/>
        <property name="ComponentType" value="servlet"/>
        <property name="SafetyLevel" value="no_safety"/>
      </component-config>
      <component-profile/>
    </component>
  </components>
  <services/>
</application>
I want to be able to access the servlet over a URL like...
http://host:port/irj/servlet/prt/portal/prtroot/MyApp.MyComponent
I have added the Default User Group Everyone to the no_safety area of our com.ourDomain Security Zone.
However when try to navigate to the URL we are first faced with a SAP Portal login page. on successful login the servlet is then shown.
Note: I was able to get the Same Servlet working within an iView when the iViews Authentification Scheme was set to anonymous...However i am under instruction to get it working without the iView...
As Background, The servlet is to be a sink for accepting data sent via an HTTP Post.
Any help with this or pointers in the right direction would be greatly appreciated.
-Paul

Hi Darrell,
Thankyou for that, yes it has helped....And I can now access the servlet directly without need to login.
I figured that there was something that i was missing.....
-Paul

Similar Messages

  • SRM 7.0 business object / individual procurement document direct URL access

    Hello,
    While our Basis team is configuring the Portal integration with our newly upgraded SRM 7.0 system, I am wondering if it's possible to take a sneak peak at the business object on the WebDynpro screen, for example, via SICF webdynpro service, such as
    /default_host/sap/bc/webdynpro/sapsrm/wdcc_v_rfq_puchaser
    After activating all relevant services (as far as I understand), I tried to access the following URL directly on the browser:
    https://<server;domain>:<port>/sap/bc/webdynpro/sapsrm/wdcc_v_rfq_purchaser?sap-client=010&sap-language=EN?
    I encountered the "Access via 'NULL' object reference not possible" exception on the web page. I think it's due to the missing object type and object id reference on the HTTP parameters. But what are the parameter name(s) that are required on the URL? Does anybody have the experience in accessing an individual document through direct URL?
    Thanks,

    This question has been answered by the following blog:
    /people/ulli.hoffmann2/blog/2009/10/07/srm-70-running-it-without-the-portal

  • Open project Activities tab by direct URL in P6 8.1 Web Access

    Hello!
    I'm trying to access project workspace in P6 Web Access v 8.1 by direct URL from another HTTP resource.
    But P6 redirects me to another dialog (for choosing project from the list) if project is not opened before by clicking command Open from menu.
    Does anyone know how to prevent the opening of a project selection dialog and go directly to the page of the project activities?
    Now im using this format of URL:
    http://primavera:7777/p6/action/pm/activities?projectId=1000&wbsId=20000&ProjectName=null&checkTabs=true

    I face similar issue and as work around i copied the user profile and created new user.
    It works fine with new user profile.
    I think it happens sometimes we check new tab before loading previous one and because of that user profile get corrupt.

  • Accessing the Permission,Properties and Subscription tab with Direct URL.

    Hello,
    I am trying to accessing the permission tab with direct url, but i could not able to find a way to access it.
    we can access this permissions tab browsing through Details - > Settings -> Permissions , the similar way  Details - > Settings -> subscriptions.
    But i wanted to use a single(i.e direct url) which can open these tabs.
    Could you please help me on this.
    Thanks
    Best Regards
    Manoj K

    Hello,
    I have resolved this issue by myself.
    You can access the subscription interface directly using the below url.
    http://<hostname>:<port>/irj/go/km/details/documents?isp=subscription&Standalone=true&StartPage=StandaloneDetailsPage
    or
    https://<hostname>:<port>/irj/go/km/details/documents?isp=subscription&Standalone=true&StartPage=StandaloneDetailsPage
    And for the properties interface by using the below url.
    http://<hostname>:<port>/irj/go/km/details/documents?isp=properties&Standalone=true&StartPage=StandaloneDetailsPage
    For the permissions interface.
    https://<hostname>:<port>/irj/go/km/details/documents?isp=permissions&Standalone=true&StartPage=StandaloneDetailsPage

  • Unauthorised users accessing iviews through a direct URL

    Hi,
    How do you prevent unauthorised users from accessing iviews through a direct URL? e.g. From the BeX Web Template on testing a query a URL is known, this URL can then be used by user who have no rights to view/ execute this report (after portal logon).
    Can security zones be defined for the BeX iviews? If yes, how? Does setting the parameter Dcom.sap.nw.sz=true solve the problem? 
    Appreciate your input.
    Many thanks,
    Dharmi

    Hi Bharath,
    Thank you for the input.
    Can you please be more specific as to which BW component ?
    I navigated to
    Go to permission editor: 'System Administration' -> 'Permissions' -> 'Portal Permissions'.
    folder: 'Security Zones' -> 'sap.com' -> 'NetWeaver.Portal' -> 'high_safety'
    There the rights are ok.
    Best regards,
    Dharmi

  • How to access a  web service(.wsdl) from portal component.

    Hi ,
    Is there any document/tutorial available on how to access a webservice from portal component ?
    I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm...
    but the urls in the link are not working...
    i want  to know the steps to access webs service and sample code if some body has already done that..
    Thanks for the help.
    Lakshmi

    Hi Lakshmi,
    See the links below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/581140d72dc442e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/918340d990ce62e10000000a155106/content.htm
    Hope this helps.
    Regards,
    Pooja.

  • Access Web Dynpro Java application through direct URL

    Hi Guys,
    we have a requirement that there is a link in web dynpro abap screen, click on it will open a new ie window running web dynpro java application, so what i did is i have given direct url link for that web dynpro java application:
    as this:
    https://servername:50001/webdynpro/dispatcher/sap.com/ess~lea/TeamView
    but after i clicked on this url, it pop up 1 window, after i entered id & passoword, it is showing this wd java appl, but there is 1 grey image on top of the view & "welcome xxxx"; below that is the actual view from wd java.
    the layout is :
    grey image----
                             welcome xxxxxxxx
    Teamview
    actual ivew
    how to remove the grey image & the "welcome xxx"? it looks like masthead but we dun need it.
    thanks

    Hi Feng,
    Actually what you are seeing using the application URL and after giving the credentials on Portal is a portal screen which carries the theme as well. Therefore, you will be able to see the masthead with header and Portal User Name. So, use the URL generated by preview of a web dynpro iView in your component to avoid the masthead.
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Login to Portal without credentials - Anonymous access

    All,
    We have a requirement to provide anonymous access to all the LDAP users in portal for accessing KM documents.
    Can somebody explain me if it is possible to give access to all the users without using credentials in portal ? Thanks!

    SAP Note - 837898: How to set up anonymous logon for KM

  • How to access the webservice in portal component

    hai
         how to access the webservice in portal component.
         anyone knows give the solution
    Rds
    Shanthakumar

    Hai
    Please check this link.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/connectivity&
    Regards

  • Urgent Please help me... How to access BAPIs from abstract portal component

    I am developing an application in Abstract Portal Component (in
    PDK).
    In that application I can able to acess BAPIs from my Componets
    using the code like
    inputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Input();
    outputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Output();
    popSearchBapi = new DropBox_PortType();
    colorList = new Tjj12Type_List();
    inputPopSearchBapi.setIm_Agencyid("0010000001");
    try {
    jcoClient.connect();
    outputPopSearchBapi =
    popSearchBapi.zad_Bapi_Pop_Search_Form(inputPopSearchBapi);
    colorList = outputPopSearchBapi.get_as_listIt_Color();
    request.getComponentContext().putValue("color",colorList.iterat
    or());
    jcoClient.disconnect();
    But I am not able to Access the data that is comming from the
    BAPI in my JSP Page. Pleeeeeeease help me. If you want any
    clarification about my problem then ask for further
    clarifications

    Hi,
      You can refer this link, to connecting the BAPI from Abstract Portal Component <a href="http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.html">JCo Tutorial1</a>
    <a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCo Tutorial2</a>
    With Regards,
    Venkatesh. K
    /* Points are Welcome */

  • I accessed the page protected by ADF security using direct url access attac

    hi,
    I played with my application which is based on SRDemo code (with added ADF security handling protection of resources) using direct url access scenarios. I was able to access a protected page as authenticated but not authorized user. I'll try to explain what I did.
    There are two folders/web resources in my application, faces/folderA/* and faces/folderB/*.
    roleA only is configured to access first web resource and the roleB is configured to access the second resource.
    I used ADF security to authorize only roleA for page in folderA and to authorize only roleB for page in folderB.
    I configured error pages in web.xml:
    <error-page>
    <error-code>400</error-code>
    <location>faces/error/error400.jspx</location>
    </error-page>
    <error-page>
    <error-code>401</error-code>
    <location>faces/error/error401.jspx</location>
    </error-page>
    <error-page>
    <error-code>403</error-code>
    <location>faces/error/error403.jspx</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>faces/error/error404.jspx</location>
    </error-page>
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>faces/error/error500.jspx</location>
    </error-page>
    Other config params are:
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>infrastructure/ABLogin.jspx</form-login-page>
    <form-error-page>faces/error/error401.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AB Prototype</web-resource-name>
    <url-pattern>faces/ABAbout.jspx</url-pattern>
    <url-pattern>faces/ABHelp.jspx</url-pattern>
    <url-pattern>faces/ABLogout.jspx</url-pattern>
    <url-pattern>faces/ABWelcome.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AZone</web-resource-name>
    <url-pattern>faces/folderA/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>BZone</web-resource-name>
    <url-pattern>faces/folderB/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    <init-param>
    <param-name>unauthorizedErrorPage</param-name>
    <param-value>faces/error/error401.jspx</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Once I authenticated as user in roleA I was trying to directly access URLs accessible only by users in roleB. In the beginning everything worked OK: I was dispatched to error401.jspx page with message Not authorized... etc.
    But I kept trying to access different URLs, like http://localhost:8988/AB/faces, http://localhost:8988/AB/faces/folderB, http://localhost:8988/AB/faces/folderB/pageB.jspx, http://localhost:8988/AB
    (not necessarily in that order, I played for a couple of minutes and the system would always dispatch to error401.jspx page if unauthorized attempt. But all of sudden, to my surprise, I got the pageB.jspx page while logged in as user belonging to roleA!)
    Not sure how that happened but the connectedUser on pageB (#{userInfo.authenticated}) shows that I am logged in as user whose role is A.
    I checked Authorization in ADF security and it is still correct: pageB is only accessible to roleB and pageA is only accessible to roleA.
    I hope I made some stupid mistake in my configuration?

    Hi,
    ADF Security is JAAS permission based and not container managed. Note that unless you explicitly configured ADF Security you don't use ADF Security but container managed security, which is all that I can see in your configurations.
    Not sure which version fo JDeveloper you use, but if you could change the following setting
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AZone</web-resource-name>
    <url-pattern>faces/folderA/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>BZone</web-resource-name>
    <url-pattern>faces/folderB/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    to contain jspx file references instead of wildcards like in faces/folderB/* then what you see should no longer be possible. There was a known issue with the security settings in SRDemo that was caused by a defect in OC4J container managed security. I would expect this issue to be fixed in a more recent version of OC4J.
    However, the work around until then is to protect all JSPX files in a directory instead of using wild card matches
    Frank

  • Accessing Portal thru a 2nd URL

    After setting up our Portal we can now access it using the qualified hostname which is as follows:
    http://gnwhepstg.company.com:50000/irj/portal
    We would now like to access the portal using the URL listed below:
    http://portalstg.psc.inside.tkr:50000/irj/portal
    How would we go about setting this up?
    Also, We need to access this site using https and not http.  Do we need to setup SSL on the Java stack for this?  If not , how is this setup?

    I can honestly tell you that I have no idea why it is as difficult as what it seems in that note.
    We operate one domain corp.company.com but all internal intranet web servers get the address inside.ZZZ.  The inside.ZZZ is on our IE exclusion list but company.com is not.  Adding company.com seems to be a miserable task so we are looking at adding an alias so our users can access the server at the new inside.ZZZ url.  We have DNS pointing the URL to the right server but we get an series of errors when logging in.  1. We get the "No Switch to HTTPS" error.  2. We get a second login for the ABAP stack (it is a dual stack EP7.0 portal) after successfully logging into the java stack.  Those are the errors we want to get rid of.  Any ideas how we make it work?  If the solution is the web Server Filter, I do not understand how that applies to this case.  It just isn't obvious to me.
    Thanks

  • Problem accessing webservice from abstract portal component

    Hi,
       I have created a webservice from a portal service.  So i have created one more portal application to accessing that web service.  In that, i have done the following:
    -> Portal Service from Wsdl file - Client Side
    -> I have entered the Wsdl file name as, the location of the WebService
    -> I have selected the methods what i want to use in my application
    -> Finally i have given my ServiceName, Alias and Package as well.
    -> I have created one application object (Abstract Portal Component) to access the Web Service.
    -> Inside that AbstractPortalComponent, i have written the coding to access the methods.
    -> I have created one system with System Alias, i used this Alias name in my portalapp.xml
    While running it shows the error as,
                        <b>com.sapportals.portal.prt.service.ServiceException: Service not found: com.sap.portal.prt.soap.Alias</b>
    Help me in this, Thanks in Advance.,
    With Regards,
    Venkatesh.K.

    Hi venkatesh I ahve similar problem please could you share with us how did you sort out this error?
    Sreekanth

  • Accessing portal service from abstract portal component

    Hi
    I have created a portal service where it contains getdata() and putdata(String) methods.
    I have created a abstract portal component and trying to access the portal service from this component.
    In portalapp.xml file of the portal component i have created the sharing reference and i have given the service name.
    When i run the component it says service not found.
    Please let me know if i have missed some things
    Thanks and Regards
    NagaKishore

    Hi Prakash
    Sorry for the latereply.
    find below the code for the interface
    package com.sap.global;
    import com.sapportals.portal.prt.service.IService;
    public interface IGlobalContext extends IService
        public static final String KEY = "IGlobalContext.GlobalContext";
        public void putData(String strUserID,String strSessionID);
        public String getData();
    portalapp.xml file of the portal service.
    <application>
      <application-config/>
      <components/>
      <services>
        <service name="GlobalContext">
          <service-config>
            <property name="className" value="com.sap.global.GlobalContext"/>
            <property name="startup" value="true"/>
          </service-config>
          <service-profile>
            <property name="Test" value="true"/>
          </service-profile>
        </service>
      </services>
    </application>
    I am doing the following steps to access the portal service in the abstract portal component.
    1. Add the portal service to the java build path of the abstract portal component.
    2. do content method has the following code.
    String userid ="",sessionid="";
              response.write("Welcome");
              try
              IUserContext uc= request.getUser();
              userid = uc.getLogonUid();
              sessionid = request.getServletRequest().getSession().toString();
              response.write("Iview "+userid);
              IGlobalContext uid = (IGlobalContext)PortalRuntime.getRuntimeResources().getService(IGlobalContext.KEY);
              uid.putData(userid,sessionid);
              response.write(" Response from Service " + uid.getData());
             }catch (Exception e)
                  response.write(e.toString());
    3. portalapp.xml of abstract portal component
    <application>
      <application-config>
        <property name="SharingReference" value="GlobalContext"/>
      </application-config>
      <components>
        <component name="LandingPageComponent">
          <component-config>
            <property name="ClassName" value="com.satyam.landing.LandingPage"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services/>
    </application>
    I am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application GlobalContext.
    Exception id: 11:53_08/04/05_0095_1641450
    See the details for the exception ID in the log file
    Thanks in advance
    Regards
    NagaKishore

  • Accessing static content (javscript, css) from JSPs in portal component

    Hello,
    I have a portal component with some jsp files in the folder dist/PORTAL-INF/jsp . Within the jsps I want to access some css and javascript files which I've put in the folders dist/css and dist/scripts. Can anybody tell me how I can access them from the jsp?
    Thanks and best regards
    Dominik

    Hello,
    I finally solved it. To whom it may concern:
    The integration in the JSP should look like the following:
    <%
    IPortalComponentResponse componentResponse = (IPortalComponentResponse)pageContext.getAttribute(javax.servlet.jsp.PageContext.RESPONSE);
    IResource css = componentRequest.getResource(IResource.CSS, "css/style.css");
    IResource js = componentRequest.getResource(IResource.SCRIPT, "scripts/script.js");
    componentResponse.include(componentRequest, css);
    componentResponse.include(componentRequest, js);
    %>
    And make sure that the css file does NOT start with the tag
    <style type="text/css">
    Best regards,
    Dominik

Maybe you are looking for

  • How to delete historic data in a cube or ODS ?

    Dear Gurus, My ODS & BasicCube are having few historic records which I wanted to selectively delete. The don't have the Request ID number. I tried going to Cube --> Manage --> Contents tab --> Selective Deletion --> .....then what ?? say, in the list

  • My registered products are not listed in the id support...

    ...after updating my sys to snow leopard I want to register my quicktime pro app, but I can't find my reg. products in my apple id section....

  • Address Book Duplicates/ A Mess

    Every contact in my address book that is in a smart group now has double entries for each contact. And the regular groups are doubled and a mess. Sync may have done this. I have a backup of my system, where would I find and what I should copy over? I

  • Why is my site loading slowly?

    I'm curious. I have high speed, and my site loads quickly for me, although, it does take a few seconds as things appear, like the background, headings, etc. Is this normal? Some others are saying that it's VERY slow for them, so it's gotta be bad for

  • Apex 2.2- 2.2.1

    I am wanting to upgrade our 2.2 apex install to 2.2.1. I've downloaded the 2.2.1 software but the install guid looks like it is for 2.2. Where can I find documentation on how to install the patch?