Thomas Pedersen
posted this on January 26, 2010 05:46 pm
Custom connectors can be used to provide single sign-on to in-house applications that are specific to your organization. Anyone with a basic understanding of HTML and regular expressions should be able to configure a connector in a few minutes.
Note that a connector only defines how OneLogin logs a user into an application. In order to use it, you must create an app based on the connector. It might help understanding connectors by viewing them as templates.
Several of a connector's fields are regular expressions, which can be a little tricky to understand for beginners. Rubular is an excellent interactive regexp tester that we use. There are few things to keep in mind when entering regular expressions in OneLogin.
The login method depends on the mark-up of the login form. Most forms contain plain HTML that OneLogin can easily navigate and simply post the user credentials to, which is what the form method does. Other login pages are complex and include lots of Javascript, which can make it impossible for the add-on to fill in the credentials. In these situations, you can use the script method to hand-write a script that does the trick.
This field is used by the form login method to identify the relevant form on the page, which can be done by looking at the form's attributes, for example, id, name or action. This is a regular expression as form actions can often have parameters provided by the server.
Once the user credentials have been filled in, the login for most be posted to the server, which is usually done by a button. This button can be identified by it's name, id, value, type or alt attribute. Some login forms have graphical buttons or call a Javascript function that need to process the values before posting them to the server. In these cases, you can provide a Javascript snippet that emulates clicking the button.
A connector can have one or more parameters, which describe the values required in order to log a user into an application. For example, most applications require username and password, which are provided on a per-user basis. Some applications may also require a subdomain or an account number that identifies the account the user is being logged into.
Each parameter has a number of fields:
Below is shown Twitter's login form as an example.

If you have questions, please don't hesitate to submit a ticket.
Comments
could you add a screen shot here of the onelogin new custom connector form, filled out based on the twitter example above
We will be releasing completely revamped custom connector functionality this coming weekend, which means that you no longer have to deal login forms at this level.
Hi
Just wondering how the revamped custom connector is coming along?
Hi Peter,
The new functionality is available, you just need to update your browser extension (uninstall current one, download / install new one). Each login form you visit should show an "Add app" tab on the top-left corner of your browser content window. Click it to trigger the Wizard. The feature is still in beta stage, so, if you find anything out of ordinary, please contact us. Also, we would love to have your feedback too.
Marcelo.