OAuth‎ > ‎

Portal Configuration

How to configure your portal.

A CILogon portal is just a regular OA4MP client. All of the OA4MP client documentation applies. In addition to this, there is one optional configuration parameter for the skin, if you have optionally requested a custom skin from help@cilogon.org:

<skin>name</skin>

Do note the endpoints for the OAuth 1.0 service:

Description Endpoint URL
Client Registration https://cilogon.org/oauth/register
Temporary Credential Request https://cilogon.org/oauth/initiate
Resource Owner Authorization https://cilogon.org/delegate
Token Request https://cilogon.org/oauth/token
Resource Request https://cilogon.org/oauth/getcert

Note in particular that the authorization endpoint is different and this must be specified in your configuration file.

An example configuration.

The configuration below is complete. Only the first 3 lines of the configuration (id, publicKeyFIle, and privateKeyFile) are supplied by the developer. The rest can be taken as is.

<config>
     <client name="cilogon2">
        <id>myproxy:oa4mp,2012:/client/4b84a8fd644b7b4d3456a23ec5ff</id>

        <publicKeyFile>/var/www/config/public-key.pem</publicKeyFile>
        <privateKeyFile>/var/www/config/private-key.pem</privateKeyFile>

        <serviceUri>https://cilogon.org/oauth</serviceUri>
        <authorizeUri>https://cilogon.org/delegate</authorizeUri>
        <callbackUri>https://myclient.bigstate.edu/cilogon2/ready</callbackUri>
        <lifetime>864000</lifetime>
    </client>
</config>