LoginActions PEI defeats / breaks redirect url

This post is 2 years old (http://forums.bea.com/bea/message.jspa?messageID=500021277&tstart=0) but names my exact problem:<br><br>
<i>"If the user is not currently logged in and they click on a link which brings them to some page within the portal (like a folder in the directory), they are successfully logged in, but my PEI then fires and it has no knowledge that they came to the portal via any URL other than the default one. So the PEI does what it is intended to do, but not what the user expected.
I can't seem to find anything in the two objects I have in my hand in the PEI (IPTSession and ApplicationData) which lets me find out what original URL was requested ... if it's different from the default portal URL, then I can have my PEI exit without redirecting the user anywhere else.
Is there any way to find the requested URL while in a login PEI? Thanks in advance.</i><br><br>
Where the portal wants to go is not specified in the url - much like in our current 4.5 deployment it flat out says 'RedirectUrl' in the querystring. In 6.1, that's not there. But the redirect location is held somewhere because if I turn off my login pei, the out of the box redirect works just fine. Does anyone know where the redirect community id is saved in the _appData object passed into the OnAfterLogin()? The only other object passed into this method is an IPTSession object, but I don't think it would be there. Any help would be appreciated.

Got it:<br><br>
IXPRequest xpRequest = _appData.GetRequest();
               string redirectAfterLogin = xpRequest.GetParameterValue(ASConstants.REDIRECT_AFTER_LOGIN_INPUT);
<br><br>
Enjoy!

Similar Messages

  • Firefox breaks redirect urls

    Firefox breaks rails redirects and replaces the route which is valid to "http://servername/&/g" thus causing routing errors in the app.

    If you are referring to Ruby Rails, have you checked with a Rails support forum?
    This forum is intended for Firefox user support, not for web or app developer support.

  • Programmtic login - from either a custom activity space or LoginAction PEI

    I know how to programmatically logout using:<br>
    Redirect redirect = null;<br>
    redirect.SetLinkCreateNewSpace(LoginAS.STR_MVC_CLASS_NAME, null);<br>
    redirect.SetControl(LoginControl.STR_MVC_CLASS_NAME);<br>
    redirect.AddControlArgument(LoginHelper.PARAM_DOLOGOUT, true);<br>
    redirect.AddControlArgument(ASConstants.CLEARSESSION, "true");<br>
    return redirect;<br><br>
    I got that code from right here in the forums - thanks.<br>
    However, I need a snippet that will programatically login and return a Redirect now, too. Does anyone have a snippet that will do that?<br><br>
    p.s. I'll be putting it into a LoginActions PEI in the OnFailedLoginDoRedirect(). In our use case, if someone tries to login and it fails, I'll be checking a custom sql table that maps old bad logins to new good ones and attempts programmatic re-login with the retrieved/mapped credentials.<br><br>
    p.p.s I'll have all 3 items in my pocket - userId, username, and password - if that makes a difference in the possible solution that gets posted here. I could also get a login token for the mapped user if that's necessary, too. So I can get 4 things to help w/ the programmatic login.<br><br>
    Thanks in advance.

    LMah gets full credit for this answer (just mimic the login form!):<br><br>
    Redirect redirect = new Redirect();<br>
    redirect.SetLinkCreateNewSpace(LoginAS.STR_MVC_CLASS_NAME, null);<br>
              redirect.AddControlArgument("in_hi_space", "login");<br>
              redirect.AddControlArgument("in_hi_spaceID", 0);<br>
              redirect.SetControl(LoginControl.STR_MVC_CLASS_NAME);<br>
              redirect.AddControlArgument("in_hi_dologin", true);<br>
              redirect.AddControlArgument("in_tx_username", "administrator");<br>
              redirect.AddControlArgument("in_pw_userpass", "");<br>
              redirect.AddControlArgument("in_se_authsource", "");<br>
              return redirect;<br>
    <br>If you'd like to use api constants instead of hard coding the input values, you can always do something like this:<br>
    redirect.AddControlArgument(LoginHTML.PARAM_USERPASS, "");

  • ISE 1.2 CWA Redirect URL

    Hi,
    Just wondered was there anyway to manipulate what webauth URL is sent to a client in the redirect string. Currently my ISE sends clients the internal machine name, I was wondering if there was anyway I can change this.
    I know on local webauth on the WLC you can set external URL's, does this feature exist in the ISE?
    TIA
    -G
    Sent from Cisco Technical Support iPad App

    Users Are Not Appropriately Redirected to URL
    Symptoms or Issue
    Administrator   receives one or more "Bad URL" error messages from Cisco ISE.
    Conditions
    This   scenario applies to 802.1X authentication as well as guest access sessions.
    Click   the magnifying glass icon in Authentications to launch the Authentication   Details. The authentication report should have the redirect URL in the RADIUS   response section as well as the session event section (which displays the   switch syslog messages).
    Possible   Causes
    Redirection   URL is entered incorrectly with invalid syntax or a missing path component.
    Resolution
    Verify   that the redirection URL specified in Cisco ISE via Cisco-av pair "URL   Redirect" is correct per the following options:
    •CWA   Redirection URL:   https://ip:8443/guestportal/gateway?sessionId=SessionIdValue&action=cwa
    •802.1X   Redirection URL:   url-redirect=https://ip:8443/guestportal/gateway?sessionId=SessionIdValue&action=cpp

  • GRC 10 - SSO via Portal - how to redirect url in notification variables

    Dears,
    I am in the process of designing our GRC 10 machine to be accessed via SSO in the Enterprise Portal. Yet I cannot find any info on what will happen with the URLs that are placed by ARM MSMP workflow in the variables of notifications/approvals.
    I typically would (as in 5.3) expect a redirect URL to be made available as an option.
    As an example: the Firefighter Log notification standard holds a variable pointing the URL to :
    http://GRC10server:GRC10port/sap/bc/webdynpro/sap/grac_ui_spm_log_email?sap-client=001&sap-language=EN&WF_ID=53FB8FEAC9E260D6E10000000AF90C44&APP_TYPE=1
    Yet now with SSO via the portal we also want this URL to go via the portal instead of directly to the GRC machine. How can we achieve that?
    Is there a configuration way to have GRC10server:GRC10port adjusted to the portal address..
    (mind that the WF_ID segment in this url is dynamically generated, so directly sqeezing in a static portal url is not an option)
    Cheers,
    Jim

    Hi Neeraj,
    Thx for your reaction. This unfortunately will not do the job as pasting the URL in the notification template will make it static. The problem is that the URL inserted by default is a dynamically created one which holds a variable pointer to a workflow object id.
    Now i am researching if a custom build portal redirect application will do the job. But there must be others having the same problem if you want the GRC iview in the portal to be the 'one-stop-shop' for your GRC users...
    Cheers,
    Jim

  • Web Auth Type: Customized(downloaded) Redirect URL after login not working.

             5508WLC as anchor controller with WLC1 and WLC2 with WCS. I have 2 public ssids set up to go directly to the internet.
    Everything is working as it should.  I downloaded the web auth bundle from Cisco and  will just use a disclaimer page and then if the user clicks on the accept button they will be redirected to our company web page, and then they can get out to the internet.
    I have edited the aup.html and login.html to say what I want it to.  I have 2 different login.html pages and bundle to a .tar file like the documentation says.  I download it via tftp to the controller and it is successful. The disclaimer page opens up when I connect and it looks as it should.  The problem is I cannot seem to get the accept button to work. It redirects to a web page but it is undefined. 
       I must be missing some setting somewhere, but I just can not seem to find it.  Is there any line I need to edit in the login.html files that will redirect the page.    The config on the Web Login Page  Redirect URL after login is http://www.mccg.org which is our home page.
    Any help will be appreciated.  I cannot seem to fine very good documentation, or I am just overlooking something.
    Thanks
    John   

    Your HTML code is wrong. Attach your code if your okay with it and I can check.
    Sent from Cisco Technical Support iPhone App

  • When I add an opendocument login token, it wipes out my parameter/prompt response in the Redirect URL

    I am having this issue and I wonder if anyone has any pointers?
    When I send the URL with the single prompt response &lsSPrompt0=1234567 it works fine but I have to login to InfoView.
    So I created a login token .jsp and that took care of the login for InfoView, but it also killed my prompt value.
    The code that I got from another site that does the same thing I WANT to do seems to create a cookie to store the passed prompt value in, then it creates a login token, then it assembles it all in the redirect URL and sends it to the openDocument.jsp.
    The login token works like a champ, but the prompt value (initially passed in to the cookie as "Prompt0") ends up passing from the Redirect URL to the openDocument.jsp with a value of NULL (lsSPrompt0=NULL).
    In my lack of knowledge, I am thinking maybe it has something to do either with how the cookie is being created, how it is being passed, or how/if it is getting stored at the target.  The cookie/token.jsp and the openDocument.jsp are in different folders on the same domain.
    So, I pass this URL:
    http://server:8080/InfoViewApp/token.jsp?&lsSPrompt0=1234567
    The token.jsp that it hits looks like this:
    So, the redirect winds up hitting the target looking like this:
    http://server:8080/OpenDocument/opendoc/openDocument.jsp?token=logonToken&iDocID=45227708&sKind=FullClient&lsSPrompt0=NULL&NAII=N&buttonrefresh=hide&buttonexport=hide
    Obviously, my problem is this:  lsSPrompt0=NULL
    Any pointers or nuggets of wisdom are GREATLY appreciated?
    Also of note, I wasn't sure if I needed to publish this token.jsp as a Webapp to Tomcat.
    I just placed the .jsp file in the folderTomcat5.5/webapps/InfoViewApp (same location as the client who has it working).
    Do I need to publish it?  Is that part of the problem?
    I am a little out of my realm here but trying to learn!
    We are on BOXI R2, Tomcat 5.5, JAVA, and I am having the same behavior on my personal XI 3.0 server too
    Thanks in advance,
    Randy

    I believe it's storing the info in a cookie so that it can be used later.  You don't mention which version of BO you're using, but I've sometimes found that the logon tokens created in 4.x contain special characters and may need to be URL encoded.  Also, I've found that it helps to put the logon token at the end of the URL after any parameters instead of in the middle before the parameters.
    -Dell

  • Getting Warning about Redirection url

    Hi,
    we have the the portal application running on the weblogic 11g and upon login, home page of our app is loaded, but I do see the following warning message on the portal server logs. Any idea how we can supress this warning?
    <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is https://<servername>.arccorp.com:443/PortalApp/ARCGateway.portal?_nfpb=true&amp;_st=&amp;_pageLabel=ARC_Home&amp;_nfls=false
    Thanks
    sravi

    Hi Sravi,
    I am not sure if this is your situation or not, but hopefully it could be helpful for you.
    It is not supported for a remote pageflow portlet (WSRP producer) to redirect from its pageflow begin or refresh action. Because of this limitation, WebLogic Portal logs a warning when any portlet's pageflow attempts to redirect from either of these two actions.
    It is legal to redirect from these actions if the portlet is not a WSRP producer. If this is the case, Oracle has added a utility method that can be called prior to the redirect which can suppress these warning messages:
    - Class: com.bea.netuix.servlets.controls.content.PageflowLoggingHelper
    - Method: public static void dontLogRedirectWarning(HttpServletRequest req)
    Calling this method from the pageflow's begin or refresh action prior to the redirect will suppress the Netuix redirect warnings.
    Thanks,
    Cris

  • No destination URL is defined. Use the followind redirect URL in Transactio

    Hi,
    I am new BSP, I have to display logon screen in my BSP application, i was copied SYSTEM bsp application and tried to run it, but it is throwing error "No destination URL is defined. Use the followind redirect URL in Transaction SICF:  /sap(====)/public/bsp/sap/login/default.htm?sap-url= " . Please let us know what has to be done for the same
    Message was edited by:
            Rams BSP

    Hi Rams,
    see http://help.sap.com/saphelp_47x200/helpdata/en/33/8351f1f3351c41853ea3508cbef0cf/frameset.htm
    and
    http://help.sap.com/saphelp_47x200/helpdata/en/1d/13c73cee4fb55be10000000a114084/frameset.htm
    It sounds like you have not configured the redirect correctly in the ICF.
    Cheers
    Graham

  • Multiple redirect URLs for mutliple guest VLANs

    We are trying to implement 2 guest WLANs tunnneled to our DMZ and want to redirect users to 2 different URLs (one for each WLAN) when they click the "Accept" button. We are running 6.0.182 on the DMZ controllers and have a customized web passthrough page currently working for the 1st WLAN.
    It appears that only 1 redirect URL can be configured via the command line (config custom-web redirectUrl), and we haven't had much luck modifying the web page for the 2nd WLAN to redirect correctly. Is this supported? Thanks

    Since you are on version 6, the config guide mentions the following in Chapter 10 (and talks about how to do a "global override" per WLAN):
    Assigning Login, Login Failure, and Logout Pages per WLAN
    You can display different web authentication login, login failure, and logout pages to users per WLAN.
    This feature enables user-specific web authentication pages to be displayed for a variety of network
    users, such as guest users or employees within different departments of an organization.
    Different login pages are available for all web authentication types (internal, external, and customized).
    However, different login failure and logout pages can be specified only when you choose customized as
    the web authentication type.

  • Form Based Authentication Redirect URL

    I'm using form based authentication in standalone OC4J 10.1.3.1. I have set the system property oc4j.formauth.redirect to true to force OC4J to redirect using 302 any successful authentication to j_security_check.
    The problem is that the redirect URL loses any query parameters. Here's the raw HTTP being posted:
    POST http://localhost:8988/manage/j_security_check HTTP/1.1
    Host: mvakoc-pc.peoplesoft.com:8099
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://mvakoc-pc.peoplesoft.com:8099/manage/target?instanceName=denlcmlx1_entserver_1&targetType=entserver
    Cookie: JSESSIONID=0a8b7ff6231c049914997fdb4ebb93b4854b0956862b; SignOnDefault=18438; e1AppState=
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 62
    X-Forwarded-For: 10.139.127.246
    j_username=username&j_password=password&url=%2Fmanage%2Fhome
    However the response back drops off the query parameters:
    HTTP/1.1 302 Moved Temporarily
    Date: Fri, 05 Jan 2007 21:59:22 GMT
    Server: Oracle Containers for J2EE
    Content-Length: 231
    Connection: Keep-Alive
    Keep-Alive: timeout=15, max=100
    Location: http://mvakoc-pc.peoplesoft.com:8099/manage/target
    <HTML><HEAD><TITLE>Redirect to http://mvakoc-pc.peoplesoft.com:8099/manage/target</TITLE></HEAD><BODY>http://mvakoc-pc.peoplesoft.com:8099/manage/target</BODY></HTML>
    Any workaround?

    It does not appear to be quite the same issue. That bug indicates that everything works fine in a standalone OC4J environment. This would be true with the use case specified as the original URL (/em/console/ias) does not include any query parameters. In my case the original URL contains query parameters so the ultimate redirected URL should also contain those.

  • Redirect URL rewriting in WLS8.1 and WLS9.2

    Hi,
    I am looking for help to solve the redirect URL issue for the following configuration:
    A hardware load balancer sits between the web clients and a weblogic cluster (one managed server at this moment, will add more later). The web clients use HTTPS to access the server; the load balancer converts the HTTPS to HTTP and then forwards the request to weblogic cluster.
    The problem I am trying to solve is, when a redirect is sent back to the web client, it should be in HTTPS and use virtual host name, not the actual host name which sends the redirect response.
    I've tried the "frontend host" parameters in the admin console; but could not see any effect. Any help will be greatly appreciated.
    Harry

    Problem solved by configuring the webapp to send relative (instead of absolute, which is the default) redirect URL back to the web client.
    Thanks.

  • ISE CWA Redirect URL customization

    Hi,
    Just wanted to know if we can change the redirect url. By default it starts with the hostname of ISE. I will have four PSN nodes and want that url is actually the Load Balancer Url rather than ISE node. Since ISE isintegrated with AD  domain.local so public certificate would not be possible. We are planning to install publecrt cert with differnt domain name likke domain.com. If some one has done it before please let me know
    Thanks
    Aijaz

    Hello,
    I went through your query and have found a link which I think would surely help you to solve your query:-
    http://www.cisco.com/en/US/products/ps11640/products_configuration_example09186a0080bead09.shtml

  • WLC Web Auth Redirect URL point to an ISE Policy NODE only?

    Hi all,
    I was wondering if the Web Auth Redirect URL configured in the WLC can only point to an ISE Policy Persona Node so the Web Portal feature (see below) in the ISE is only active when the ISE device has that Policy Persona activated.

    Thanks Peter for your clarification regarding the semantic I used and the question I made.
    Curiously, I tested it (configure the WLC Web Auth URL Redirect pointing to an ADM Node) and it did not work until I added the Policy Services persona into that ADM Node. I just wanted to verify that my test was correct because we want to make some changes in our deployment. Let me see if I can open a TAC Case in order to confirm this and add it to this post.

  • Custom LoginActions PEI - error

    I have custom loginActions PEI - OnAfterLogin function which needs to set the cookie in user browser.
    same way OnBeforeLogout function needs to delete the cookie.
    The code as follows to set the cookie: (I am getting error in this line "m_WebData.AddCookie(cookie);")
    private IWebData m_WebData = null;
    XPCookie cookie = new XPCookie("username", sUsername); cookie.SetPath("/"); cookie.SetExpires(iExpSeconds); cookie.SetDomain(".services.com"); cookie.SetSecure(IsLoginTokenSecure()); m_WebData.AddCookie(cookie);
    I know that I am declaring the m_WebData and not reference it. I don't know how to do that?
    Thanks in advance.

    Don, I am doing just that:
    _appData.SetCookie("cookiename", "cookievalue");
    from an OnAfterLogin PEI. I get no errors, but the cookie is not being set. Any idea why?
    Bill Kamm
    AT&T
    ------- Don Hayler wrote on 7/27/05 6:10 PM -------Try using the _appData.SetCookie(strCookieName, strCookieValue) method.
    The app data object is passed into all the login PEI methods as an argument.
    -- Don

Maybe you are looking for