Skip to content

External service that works with the Restlet OAuth server example

License

Notifications You must be signed in to change notification settings

farmers/restlet-oauth-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

External Service Authentication using Restlet OAuth

An example of OAuth external service that uses the Restlet OAuth example server.

Restlet Example OAuth Provider Security Flaw

Please note that the example server is flawed which I have detailed here.

Although the implementation is not fully secure in many ways, it is sufficient enough to provide an implementation an OAuth sevice and external access using the Restlet framework.

Notice

Code has been slightly modified from the original project located here.

How to Run

  1. Compile a JAR of the latest version of the OAuth extentsion, since some classes are missing in the 2.2-M3 release. Update the Maven dependency based the compiled JAR's location. (The lib folder has the JAR file I compiled.)
  2. Run the project using Maven, or run the OAuth2Sample class.

mvn exec:java

  1. Open your web browser to http://localhost:8080/sample/
  2. Click on the login button.
  3. Login with the example user bob and password 123456.
  4. Accept or deny the request for default scope.

License

All source code from the Restlet project is license under the Apache 2.0 license with copyright as its respective owners.

Code that I have written is also license under the Apache 2.0 license for simplicity sake.

About

External service that works with the Restlet OAuth server example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published