chore: update changes

This commit is contained in:
firest 2023-10-07 15:15:46 +08:00
parent 9b4def885a
commit 3e658b3da9
5 changed files with 3 additions and 109 deletions

View File

@ -1,26 +0,0 @@
%%--------------------------------------------------------------------
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
%%--------------------------------------------------------------------
-module(emqx_authn_enterprise).
-export([providers/0, resource_provider/0]).
-if(?EMQX_RELEASE_EDITION == ee).
providers() ->
[
{gcp_device, emqx_gcp_device_authn}
].
resource_provider() ->
[].
-else.
providers() ->
[].
resource_provider() ->
[].
-endif.

View File

@ -1,23 +0,0 @@
%% -*- mode: erlang -*-
{application, emqx_authz, [
{description, "emqx authorization application"},
{vsn, "0.1.3"},
{registered, []},
{mod, {emqx_authz_app, []}},
{applications, [
kernel,
stdlib,
crypto,
emqx_resource,
emqx_connector,
emqx_mongodb,
emqx_redis,
emqx_mysql,
emqx_bridge_http
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{links, []}
]}.

View File

@ -1,60 +0,0 @@
%%--------------------------------------------------------------------
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
%%--------------------------------------------------------------------
-module(emqx_authz_enterprise).
-export([
type_names/0,
fields/1,
is_enterprise_module/1,
authz_sources_types/0,
type/1,
desc/1
]).
-dialyzer({nowarn_function, [fields/1, type/1, desc/1]}).
-if(?EMQX_RELEASE_EDITION == ee).
%% type name set
type_names() ->
[].
%% type -> type schema
fields(Any) ->
error({invalid_field, Any}).
%% type -> type module
is_enterprise_module(_) ->
false.
%% api sources set
authz_sources_types() ->
[].
%% atom-able name -> type
type(Unknown) -> throw({unknown_authz_source_type, Unknown}).
desc(_) ->
undefined.
-else.
type_names() ->
[].
fields(Any) ->
error({invalid_field, Any}).
is_enterprise_module(_) ->
false.
authz_sources_types() ->
[].
%% should never happen if the input is type-checked by hocon schema
type(Unknown) -> throw({unknown_authz_source_type, Unknown}).
desc(_) ->
undefined.
-endif.

View File

@ -56,6 +56,8 @@
emqx_auth_mysql, emqx_auth_mysql,
emqx_auth_postgresql, emqx_auth_postgresql,
emqx_auth_redis, emqx_auth_redis,
emqx_ldap,
emqx_auth_ldap,
emqx_auto_subscribe, emqx_auto_subscribe,
emqx_gateway, emqx_gateway,
emqx_gateway_stomp, emqx_gateway_stomp,

View File

@ -0,0 +1 @@
Introduced the LDAP as a new authentication and authorization backend.