Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi tenancy auth #3063

Merged
merged 14 commits into from
Apr 7, 2021
Merged

Multi tenancy auth #3063

merged 14 commits into from
Apr 7, 2021

Commits on Mar 30, 2021

  1. implementing can_authenticate test case for dynamic_domains_pm_SUITE

    to run test execute:
       test-runner.sh --skip-cover --skip-small-tests --preset pgsql_mnesia --db pgsql -- dynamic_domains_pm:can_authenticate
    DenysGonchar committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    d37d00e View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2021

  1. Configuration menu
    Copy the full SHA
    739f086 View commit details
    Browse the repository at this point in the history
  2. adding validation that mongoose_domain_core starts properly at mongoo…

    …se_domain_core_SUITE:init_per_testcase/2
    DenysGonchar committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    7caff14 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2021

  1. make auth. passing for dynamic domains with dummy auth module

    esuring dialyzer is not complaning:
       ./rebar3 dialyzer
    DenysGonchar committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    05b6c6d View commit details
    Browse the repository at this point in the history
  2. fixing unit tests

    DenysGonchar committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    df0c1a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. rework of ejabberd_auth and ejabberd_gen_auth modules.

    introducing the new callback supported_features/0:
      * for now there is the only one optional feature - dynamic_domains.
      * currently only ejabberd_auth_dummy supports dynamic_domains feature.
      * all other auth modules must be rechecked and adopted in order to
        support dynamic_domains feature.
      * the following things must be done per auth module:
           - recheck that ejabberd_auth set_opts and get_opt interfaces are
             used with host type, not domain name.
           - recheck that mongoose_scram interfaces are used with host type,
             not domain name.
           - recheck that ejabberd_config get_local_option interfaces are
             used with host type, not domain name.
           - create proper tests to ensure that auth module works correctly
             with dynamic domains.
    
    commit verified with the following commands:
       test-runner.sh --skip-cover --skip-small-tests --preset pgsql_mnesia --db pgsql -- dynamic_domains_pm:can_authenticate
       ./rebar3 dialyzer
    DenysGonchar committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    df25334 View commit details
    Browse the repository at this point in the history
  2. fixing auth. unit tests

    verified with commands:
       tools/setup-redis.sh
       ./rebar3 ct
    DenysGonchar committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    01270c6 View commit details
    Browse the repository at this point in the history
  3. adding test for ejabberd_auth:does_method_support/2 method

    tested with this command:
       ./rebar3 ct --suite auth_dummy_SUITE --case supports_dynamic_domains
    DenysGonchar committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    5a52a21 View commit details
    Browse the repository at this point in the history
  4. adding auth. methods verification for host types

    tested with command:
       ./rebar3 ct --suite config_parser_SUITE --group host_types_group
    DenysGonchar committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    2003504 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    30f75e1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3de1bf4 View commit details
    Browse the repository at this point in the history
  7. avoid parallel execution of the tests with host_types_group

    it causes execution of meck:unload in parallel which results in spontaneous failuers.
    tested with:
       ./rebar3 ct --suite config_parser_SUITE
    DenysGonchar committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    a2843c1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ffbe9cf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b6df430 View commit details
    Browse the repository at this point in the history