<commit_before>package stroom.authentication.impl.db;

import stroom.authentication.AuthenticationDbConfig;
import stroom.authentication.oauth2.OAuth2ClientDao;
import stroom.authentication.token.JwkDao;
import stroom.authentication.token.TokenDao;
import stroom.authentication.account.AccountDao;
import stroom.db.util.AbstractFlyWayDbModule;
import stroom.db.util.DataSourceProxy;

import javax.sql.DataSource;

public class AuthDbModule extends AbstractFlyWayDbModule<AuthenticationDbConfig, AuthDbConnProvider> {
    private static final String MODULE = "stroom-authentication";
    private static final String FLYWAY_LOCATIONS = "stroom/authentication/db/migration";
    private static final String FLYWAY_TABLE = "authentication_schema_history";

    @Override
    protected void configure() {
        super.configure();

        bind(TokenDao.class).to(TokenDaoImpl.class);
        bind(AccountDao.class).to(AccountDaoImpl.class);
        bind(JwkDao.class).to(JwkDaoImpl.class);
        bind(OAuth2ClientDao.class).to(OAuth2ClientDaoImpl.class);
    }

    @Override
    protected String getFlyWayTableName() {
        return FLYWAY_TABLE;
    }

    @Override
    protected String getModuleName() {
        return MODULE;
    }

    @Override
    protected String getFlyWayLocation() {
        return FLYWAY_LOCATIONS;
    }

    @Override
    protected Class<AuthDbConnProvider> getConnectionProviderType() {<commit_msg>gh-1448 The internal processing user now has a JWT<commit_after>package stroom.authentication.impl.db;

import stroom.authentication.AuthenticationDbConfig;
import stroom.authentication.oauth2.OAuth2ClientDao;
import stroom.authentication.token.JwkDao;
import stroom.authentication.token.TokenDao;
import stroom.authentication.account.AccountDao;
import stroom.authentication.token.TokenTypeDao;
import stroom.db.util.AbstractFlyWayDbModule;
import stroom.db.util.DataSourceProxy;

import javax.sql.DataSource;

public class AuthDbModule extends AbstractFlyWayDbModule<AuthenticationDbConfig, AuthDbConnProvider> {
    private static final String MODULE = "stroom-authentication";
    private static final String FLYWAY_LOCATIONS = "stroom/authentication/db/migration";
    private static final String FLYWAY_TABLE = "authentication_schema_history";

    @Override
    protected void configure() {
        super.configure();

        bind(TokenDao.class).to(TokenDaoImpl.class);
        bind(AccountDao.class).to(AccountDaoImpl.class);
        bind(JwkDao.class).to(JwkDaoImpl.class);
        bind(TokenTypeDao.class).to(TokenTypeDaoImpl.class);
        bind(OAuth2ClientDao.class).to(OAuth2ClientDaoImpl.class);
    }

    @Override
    protected String getFlyWayTableName() {
        return FLYWAY_TABLE;
    }

    @Override
    protected String getModuleName() {
        return MODULE;
    }

    @Override
    protected String getFlyWayLocation() {
        return FLYWAY_LOCATIONS;
    }

    @Override
    protected Class<AuthDbConnProvider> getConnectionProviderType() {
{'fraction_non_alphanumeric': 0.08546724309943465, 'fraction_numerical': 0.0039906883937479215, 'mean_word_length': 4.342806394316163, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4946283', 'n_tokens_mistral': 888, 'n_tokens_neox': 886, 'n_words': 157}