Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Authentication > CRM Desktop SSO Objects You Can Customize > SSO Client ObjectThis topic describes functions that you can use with the SSO client object. It includes the following topics:
To communicate the credentials that the user enters in the CRM Desktop login dialog box to the SSO script, CRM Desktop SSO uses the get_sso_username and get_sso_password functions of the sso_client object. The sso_client object is a global object that is available anywhere in the main script file. The following registry key identifies this main script file: For more information, see Windows Registry Keys You Must Set to Enable CRM Desktop SSO. Create Request FunctionThe create_request function creates a request and returns a new request object. It uses the following format: create_request(
For example, the following code creates a simple GET request to a URL: var req = sso_client.create_request("http:\\siebel\eai_enu", "GET", "", "utf-8"); For more information, see Request Object. Create Response FunctionThe create_response function creates and returns a new response object. It uses the following format: create_response(http_code, http_status, body, encoding)
Decode URL FunctionThe decode_url function decodes a URL. It does the following:
The decode_url function uses the following format: Encode URL FunctionThe encode_url function encodes a URL. It replaces each nonstandard character with the encoded value. The following format identifies a sequence: The encode_url function uses the following format: Exception Occurred FunctionThe cpp_exception_occurred function is a Boolean function that returns True if the last call to an execute_request function resulted in C++ code creating an exception. Any subsequent call to the execte_request function resets a previously recorded exception, so you must use this function immediately after the call to the execute_request function. Get Platform Cookie FunctionThe get_platform_cookie function gets the Internet Explorer cookie. It can only get Internet Explorer cookies that are persistent and that are not of type HTTPOnly. It uses the following format: get_platform_cookie(
Interactive FunctionThe interactive function instructs the SSO script to use interactive authentication. It uses callbacks to monitor the state of the interactive session. CRM Desktop SSO runs the statement that occurs immediately after the statement that calls the interactive function only after the interactive authentication finishes. While interactive authentication runs, the SSO script gets notifications from the function that the callback parameter identifies. This callback delivers the information that this script requires to monitor the interactive authentication. It can send a request to stop the interactive authentication when the interactive session finishes. The interactive function uses the following format: interactive(ia_state, callback)
The following example does a simple callback for interactive authentication. It does not do any processing. It always return false to indicate that CRM Desktop SSO must display the native browser dialog box in every subsequent web page where the user navigates: function ia_callback(ia_state) case "finished": case "cancelled": This example includes the following code. This code is part of the request handler function: var ia_state = sso_client.create_ia_state(); Request Handler FunctionCRM Desktop SSO routes each request from the Siebel Connector through the request_handler function. This function handles requests that occur from the Siebel Connector to the Siebel Server. This request_handler function expects a single argument that contains the initial request object from the SSO Connector. It sends a return value to the SSO Connector as if the Siebel Server sent this reply. The Siebel Connector is a proxy that resides between the Siebel Connector and Siebel Web Services. The SSO Agent protects these Web services. This proxy hides the SSO Agent from the Siebel Connector. The following example includes a CRM Desktop SSO script that passes all requests from the Siebel Connector to the Siebel Server without doing any processing. This example is for illustration purposes only. An actual SSO Connector script includes the process_request function to do processing: sso_client.request_handler = process_request; The following line from this code defines the entry point where CRM Desktop SSO registers the handler: sso_client.request_handler = process_request Set Platform Cookie FunctionThe set_platform_cookie function sets the Internet Explorer cookie. It can only get Internet Explorer cookies that are persistent and that are not of type HTTPOnly. It uses the following format: get_platform_cookie(
sso_client.set_platform_cookie("http:\\example.com", "Cookie_name", "Cookie_value"); Other Functions That the SSO Client Object IncludesYou can use the following functions in the SSO Client object. CRM Desktop supports each of these functions starting with Siebel CRM Desktop version except for the execute_request function. Support for the execute_request function starts with an earlier release:
|
![]() ![]() |
Siebel CRM Desktop for IBM Notes Administration Guide | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |