Skip to page content

Worldwide (English) Change

AthensResource

AthensResource is a position-dependent config.txt/ezproxy.cfg directive that interacts with database definitions.

AthensResource is used to associate an Athens resource with specific database definitions. In the simplest configuration, you add a single AthensResource directive prior to the first Title line of your config.txt/ezproxy.cfg file. In more advanced scenarios, you may have multiple Athens resources that you want to associate with different database definitions, either to allow more granular access logging with Athens or to make more granular authorization decisions regarding who can access various database vendors.

The resources declared by AthensResource also become a special form of EZproxy groups and can act like groups in most contexts. The key difference is that EZproxy will not allow an Athens user to be assigned to a Athens resource that was not authorized when the user was authenticating. This restriction is mainly enforced if you attempt to add additional groups with the Group command in the athens.usr file.

Example

In the simplest case, you associate all database definitions to a single Athens resource such as:

AthensDSPID YOUR_DSP_ID

AthensResource YOUR_RESOURCE_ID

Title Some Database
URL http://www.somedb.com/
Domain somedb.com

Title Other Database
URL http://www.otherdb.com/
Domain otherdb.com

In a more complex case, you may associate database definition with different resources such as:

AthensDSPID YOUR_DSP_ID

AthensResource YOUR_RESOURCE_ID

Title Some Database
URL http://www.somedb.com/
Domain somedb.com

AthensResource YOUR_OTHER_RESOURCE_ID

Title Other Database
URL http://www.otherdb.com/
Domain otherdb.com

See also

AthensDSPID