Name Last Update
..
openam-oauth2-core-token-service Loading commit data...
openam-oauth2-demo Loading commit data...
openam-oauth2-main Loading commit data...
openam-oauth2-openam-extension Loading commit data...
openam-oauth2-restlet-extension Loading commit data...
README.txt Loading commit data...
pom.xml Loading commit data...

README.txt

Add the following to the OpenAM web.xml in order to run the demo.
The usernames and passwords must match a user in OpenAM.
The demo will be available under openam/oauth2demo/

<!-- Servlet to Restlet adapter declaration (Mandatory) -->

RestletAdapter
org.restlet.ext.servlet.ServerServlet

<!-- Your application class name (Optional - For mode 3) -->

org.restlet.application
org.forgerock.openam.oauth2.OAuth2Application

<!-- List of supported client protocols (Optional - Only in mode 3) -->

org.restlet.clients
RIAP CLAP FILE



RestletDemoAdapter
org.restlet.ext.servlet.ServerServlet

<!-- Your application class name (Optional - For mode 3) -->

org.restlet.application
org.forgerock.openam.oauth2demo.OAuth2DemoApplication

<!-- List of supported client protocols (Optional - Only in mode 3) -->

org.restlet.clients
HTTP RIAP CLAP FILE


oauth2.client_id
demo


oauth2.client_secret
Passw0rd


oauth2.username
demo


oauth2.password
Passw0rd


oauth2.scope
read write

<!-- servlet declaration -->


RestletAdapter
/oauth2/*


RestletDemoAdapter
/oauth2demo/*