Securing a SparkJava webapp, with options for OAuth or LDAP
The library Pac4J, online at http://www.pac4j.org/ is a kind of swiss army knife for Java Web App Security.
It can be used with SparkJava, but with many other frameworks as well.
The github repo https://github.com/pac4j/spark-pac4j offers a bridge from SparkJava to Pac4J.
The following repo provides an example of an application that authenticates with Github, then prints out a list of all the repos in the UCSB-CS56-Projects organization: https://github.com/pconrad-webapps/sparkjava-pac4j-github-oauth-demo
More on SparkJava: pac4j
- SparkJava: Authentication—login/logout, and securing various pages in your app
- SparkJava: Bootstrap—Adding a nicer looking UI, with common navigation, drop down menus, etc.
- SparkJava: Facebook API—Authenticate with Facebook, then access the Facebook API
- SparkJava: Getting Started—A more clear tutorial
- SparkJava: Github API—Authenticate with Github, then access the Github API
- SparkJava: Image Files—and any other static files your application needs
- SparkJava: MongoDB—Using the NoSQL database MongoDB with SparkJava
- SparkJava: pac4j—Securing a SparkJava webapp, with options for OAuth or LDAP
- SparkJava: RESTful APIs—Creating RESTful APIs with SparkJava
- SparkJava: SLF4J—What is the Simple Logging Framework For Java, and how to configure it
- SparkJava: Templates—The various template engines you can use with SparkJava