Configuring the resourceClasses.xml file
File wih the Resource Classes configuration.
The format of this file is the following:
<?xml version="1.0" encoding="UTF-8"?>
<Resources>
<Scope id="http://www.rediris.es/sir/api/sps_available.php">
<TokenFormat>
<Format>%sHO%</Format>
<Format>%scope%</Format>
</TokenFormat>
<ResourceClass>
Resource
</ResourceClass>
<ResourceFile>
/url/Resource.class.php
</ResourceFile>
</Scope>
</Resources>
We have got different classes that implement the services related to the scopes. Each scope will have define one class that implements the IServerResource .
Where:
- Scope 'id' will be the URI of the scope
- TokenFormat will contain the formats defined for the tokens received for this scope
- Format will be attributes that the OAuth access tokens will have inside them.
- FormatClass will be the name of the class that implements IServerResource.
- FormatFile will be the path to the file where it's defined the class that implements IServerResource.