joscha / play-authenticate

An authentication plugin for Play Framework 2.x (Java)
http://joscha.github.com/play-authenticate/
Other
807 stars 367 forks source link
authentication facebook foursquare google java linkedin oauth play-framework plugins pocket untappd vkontakte

Build Status PlayAuthenticate - An extensible authentication plugin for Play! Framework 2 (Java)

MAINTAINERS WANTED!!!! Please drop me a message if you want to help out!

Update on 2021-02-10: Unfortunately the search for maintainers has not yielded any results and ther haven't been made any meaningful updates/changes to the source code in a long time. This repository will be archived for the time being to prevent people adopting this project.

This plugin uses concepts from securesocial2 and Play20StartApp and provides a sample containing code from deadbolt2.

Version information

Play Authenticate currently needs Play! Framework 2.0.2 or later

Play Authenticate is cross-tested in Java 1.6, Java 1.7 (Up to 0.6.x) and Java 1.8 (from 0.7.0)

Since Play 2.6 it's cross-compiled for both Scala 2.11 and 2.12.

Works fine with Play version

Releases are on mvnrepository and snapshots can be found on sonatype.

Live demo

You can find a live demo on heroku and there are some screens on our website.

Quickstart

Clone the project, go to samples/java/play-authenticate-usage and run sbt run to see a sample application. There are only very few of the providers enabled, because for most of them, you need to add OAuth credentials which you can get at the various different providers.

Including the Dependencies

Play-Authenticate is available in Maven Central.

<dependency>
    <groupId>com.feth</groupId>
    <artifactId>play-authenticate</artifactId>
    <version>0.9.0</version>
</dependency>

or

val appDependencies = Seq(
  "com.feth" %% "play-authenticate" % "0.9.0"
)

Features

Providers

As of now, the following authentication providers are supported out of the box:

The included sample application shows how to use all of those providers. There is also a sample application using Play!Authenticate with MongoDB.

Languages

Versions

License

Copyright (c) 2012-2016 Joscha Feth

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.