The OA4MP Client Configuration File.

This contains a few examples of client configurations. You should read the main configuration document first.

An example OAuth 2.0 client configuration

E.g. Let us say you have the following configuration in the file /path/to/cfg.xml:

<config>
   <client name="my-config">
       <!-- lots of other stuff -->
   </client>
</config>

You would need to put the following into your web.xml file:

<context-param>
   <param-name>oa4mp:oauth2.client.config.name</param-name>
   <param-value>my-config</param-value>
</context-param>
<context-param>
   <param-name>oa4mp:oauth2.client.config.file</param-name>
   <param-value>/path/to/cfg.xml</param-value>
</context-param>