Deadbolt does athentication as well, no?
Why does play not have something built in?
Thanks again.
public F.Promise<Result> onAuthFailure(final Http.Context context, final String s) { return getSubject(context) .map(maybeSubject -> maybeSubject.map(subject -> Optional.of((User)subject)) .map(user -> new F.Tuple<>(true, denied.render(user))) .orElseGet(() -> new F.Tuple<>(false, login.render(clientId, domain, redirectUri)))) .map(subjectPresentAndContent -> subjectPresentAndContent._1 ? Results.forbidden(subjectPresentAndContent._2) : Results.unauthorized(subjectPresentAndContent._2));}Why does play not have something built in?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/d4dfb6bf-4f25-4136-ae5f-1ae234812f41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.