OAuth Server


The OAuth resource Server's goals are the following:

  • Given a token, to check if it's a valid one and to return the requested resource.

OAuth Resource Server's Architecture:

  • config directory: Templates of the Resource Server configuration files.
    • asKeys.template.xml File with the reference of the registered Authorization Servers.
    • errors.template.xml: File with the reference of the errors supported by the OAuth2 protocol for the OAuth Authorization Server.
    • resourceClasses.template.xml File with the reference of the registered resources and the location of the files where they are defined.

  • src directory:
    • oauthRS class Class that has the logic of the Resource Server. It checks the token and manage the Client's requests.
    • AuthServerList class Class that permit to load the authorization server list from asKeys.xml.
    • LoadResourceConfig class Class that permit to load the resources config from resourceClasses.xml.
    • ErrorList class Class that permit to load the errors list from errors.xml.
    • resources directory:

  • serverEndpoint.php Resource Server Endpoint