OAuth Client
The OAuth Client Application's goals are the following:
- To request a token from an Authorization Server with the obtained assertion.
- To request the resource on behalf of the user with the token.
OAuth Client's Architecture:
- config directory: Templates of the configuration files..
- clientConfig.template.xml: File with the configuration of the ClientApp. More information about the XML format.
- own_response_formats directory: Example code with classes that implement the IFormattingResource Interface
- DefaultFormattingResource.class.php
- photoFormattingResource.class.php
-->
- src directory:
- LoadConfig.class.php Class that loads the Client App. Configuration.
- OAuth.class.php Configuration class that gives the developer an abstraction to the OAuth2 flow.
- OAuthClient.class.php Class with the OAuth Client logic.
- response_formats directory:
- DefaultFormattingResource.class.php Example code with classes that implement the IFormattingResource Interface It could exist different classes, depending on the scope of the request.
- IFormattingResource.class.php Interface that models the resource depending on the response.