Package org.keycloak.connections.mongo

Examples of org.keycloak.connections.mongo.MongoConnectionProvider


    public static final String ID = "mongo";

    @Override
    public UserSessionProvider create(KeycloakSession session) {
        MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
        return new MongoUserSessionProvider(session, connection.getMongoStore(), connection.getInvocationContext());
    }
View Full Code Here


    private Set<EventType> includedEvents = new HashSet<EventType>();

    @Override
    public EventStoreProvider create(KeycloakSession session) {
        MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);

        DBCollection collection = connection.getDB().getCollection("events");
        collection.setWriteConcern(WriteConcern.UNACKNOWLEDGED);

        return new MongoEventStoreProvider(collection, includedEvents);
    }
View Full Code Here

    public void init(Config.Scope config) {
    }

    @Override
    public RealmProvider create(KeycloakSession session) {
        MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
        return new MongoRealmProvider(session, connection.getMongoStore(), connection.getInvocationContext());
    }
View Full Code Here

    public void init(Config.Scope config) {
    }

    @Override
    public UserProvider create(KeycloakSession session) {
        MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
        return new MongoUserProvider(session, connection.getMongoStore(), connection.getInvocationContext());
    }
View Full Code Here

TOP

Related Classes of org.keycloak.connections.mongo.MongoConnectionProvider

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.