Package securesocial.core.authenticator

Examples of securesocial.core.authenticator.Authenticator


        return F.Promise.wrap(env.authenticatorService().fromRequest(ctx._requestHeader())).flatMap(
                new F.Function<Option<Authenticator>, F.Promise<Result>>() {
                    @Override
                    public F.Promise<Result> apply(Option<Authenticator> authenticatorOption) throws Throwable {
                        if (authenticatorOption.isDefined() && authenticatorOption.get().isValid()) {
                            final Authenticator authenticator = authenticatorOption.get();
                            Object user = authenticator.user();
                            if (authorizationInstance.isAuthorized(user, configuration.params())) {
                                return F.Promise.wrap(authenticator.touch()).flatMap(new F.Function<Authenticator, F.Promise<Result>>() {
                                    @Override
                                    public F.Promise<Result> apply(Authenticator touched) throws Throwable {
                                        ctx.args.put(SecureSocial.USER_KEY, touched.user());
                                        return F.Promise.wrap(touched.touching(ctx)).flatMap(new F.Function<scala.runtime.BoxedUnit, F.Promise<Result>>() {
                                            @Override
View Full Code Here


        return (F.Promise<Result>) F.Promise.wrap(env.authenticatorService().fromRequest(ctx._requestHeader())).flatMap(
        new F.Function<Option<Authenticator>, Promise<Result>>() {
            @Override
            public F.Promise<Result> apply(Option<Authenticator> authenticatorOption) throws Throwable {
                if (authenticatorOption.isDefined() && authenticatorOption.get().isValid()) {
                    Authenticator authenticator = authenticatorOption.get();
                    return F.Promise.wrap(authenticator.touch()).flatMap(new F.Function<Authenticator, Promise<Result>>() {
                        @Override
                        public Promise<Result> apply(Authenticator touched) throws Throwable {
                            ctx.args.put(SecureSocial.USER_KEY, touched.user());
                            return F.Promise.wrap(touched.touching(ctx)).flatMap(new F.Function<scala.runtime.BoxedUnit, Promise<Result>>() {
                                @Override
View Full Code Here

TOP

Related Classes of securesocial.core.authenticator.Authenticator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.