Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.protocol.http.auth
Class OAM11GWebgateAuthHandler

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.auth.OAM11GWebgateAuthHandler

All Implemented Interfaces:
AuthenticationHandler

public class OAM11GWebgateAuthHandler
extends Object
implements AuthenticationHandler

Field Summary
protected  String m_logId
           
protected  ServiceLog m_serviceLog
           
static String OAM_11G_WEBGATE_COOKIE_PREFIX
           
static String OAM_11G_WEBGATE_COOKIE2_PREFIX
           

 

Constructor Summary
OAM11GWebgateAuthHandler(IdcHttpProtocol httpProtocol)
          Constructor

 

Method Summary
protected  RIDCHttpClient createHttpClient()
           
 IdcContext.HttpAuthScheme getAuthScheme()
           
 RIDCHttpClient getHttpClient()
           
 IdcHttpProtocol getHttpProtocol()
           
protected  String getLogId()
           
protected  ServiceLog getServiceLog()
           
protected  void handleLogin()
          With redirects enabled, HTTP GET the PING_SERVER service fronted by the OHS hosting the 11g Webgate (/cs/idcplg?IdcService=PING_SERVER&IsJava=1) ...
 boolean isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod pingMethod)
          Determine if 11g Webgate authentication is in the mix.
 int sendAuthenticatedRequest()
          Send the authenticated request to the Content Server
 void setHttpClient(RIDCHttpClient httpClient)
           
protected  void setLogId(String logId)
           
protected  void setServiceLog(ServiceLog log)
           
protected  void throwFailedAuthenticationException(RIDCHttpMethod method)
           
protected  void throwFormValidateException(RIDCHttpMethod postMethod)
          Throw the form validation exception

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

m_serviceLog

protected ServiceLog m_serviceLog

m_logId

protected String m_logId

OAM_11G_WEBGATE_COOKIE_PREFIX

public static final String OAM_11G_WEBGATE_COOKIE_PREFIX
See Also:
Constant Field Values

OAM_11G_WEBGATE_COOKIE2_PREFIX

public static final String OAM_11G_WEBGATE_COOKIE2_PREFIX
See Also:
Constant Field Values

Constructor Detail

OAM11GWebgateAuthHandler

public OAM11GWebgateAuthHandler(IdcHttpProtocol httpProtocol)
Constructor
Parameters:
httpProtocol -

Method Detail

getHttpProtocol

public IdcHttpProtocol getHttpProtocol()

setLogId

protected void setLogId(String logId)

setServiceLog

protected void setServiceLog(ServiceLog log)

getServiceLog

protected ServiceLog getServiceLog()

getLogId

protected String getLogId()

isAuthSupported

public boolean isAuthSupported(RIDCHttpClient httpClient,
                               RIDCHttpMethod pingMethod)
                        throws ProtocolException
Determine if 11g Webgate authentication is in the mix.
Specified by:
isAuthSupported in interface AuthenticationHandler
Parameters:
httpClient - httpclient instance created by AuthenticationDetector
pingMethod - ping method invoked by AuthenticationDetector
Returns:
true if the handler can support the requests to the given server
Throws:
ProtocolException

getAuthScheme

public IdcContext.HttpAuthScheme getAuthScheme()
Specified by:
getAuthScheme in interface AuthenticationHandler
Returns:
the authentication scheme associated with this handler

sendAuthenticatedRequest

public int sendAuthenticatedRequest()
                             throws ProtocolException
Description copied from interface: AuthenticationHandler
Send the authenticated request to the Content Server
Specified by:
sendAuthenticatedRequest in interface AuthenticationHandler
Returns:
the http status
Throws:
ProtocolException

handleLogin

protected void handleLogin()
                    throws ProtocolException
With redirects enabled, HTTP GET the PING_SERVER service fronted by the OHS hosting the 11g Webgate (/cs/idcplg?IdcService=PING_SERVER&IsJava=1) ... we will be redirected to /adfAuthentication?login=true which is an OAM protected resource. ... and redirected again to the OAM server: http://oamserver:port/oam/server/obrareq.cgi?encquery%XXXXX ... a HTML login page will then render containing an important request_id hidden input form parameter. We must then HTTP POST the OAM server /oam/server/auth_cred_submit with post data containing userid, password, request_id (ensuring previous cookies obtained are sent) ... if authentication is successful, we will receive an OAM_ID (oam server session cookie) and be redirected back to the webserver hosting the 11g webgate /obrar.cgi?encreply=YYYY ... an "OAMAuthnCookie_<host>:<port>" is then set (where <host:port> is the name/port of the web server hosting the 11g webgate) and we are then redirected to /adfAuthentication?login=true the redirect to /adfAuthentication?login=true establishes the JSESSIONID and (_WL_AUTHCOOKIE_JSESSIONID if a secure HTTPS connection was leveraged) we are then redirected back to the original PING_SERVER service call which should return a HDA response stating the user is logged in as ZZZ
Throws:
ProtocolException

getHttpClient

public RIDCHttpClient getHttpClient()
                             throws ProtocolException
Throws:
ProtocolException

createHttpClient

protected RIDCHttpClient createHttpClient()
                                   throws ProtocolException
Throws:
ProtocolException

setHttpClient

public void setHttpClient(RIDCHttpClient httpClient)

throwFormValidateException

protected void throwFormValidateException(RIDCHttpMethod postMethod)
                                   throws ProtocolException
Throw the form validation exception
Parameters:
postMethod - the post method
Throws:
ProtocolException

throwFailedAuthenticationException

protected void throwFailedAuthenticationException(RIDCHttpMethod method)
                                           throws ProtocolException
Throws:
ProtocolException

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.