diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2885602e40..db595d49d5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,10 +1,15 @@ Flask-AppBuilder ChangeLog ========================== +Improvements and Bug fixes on 4.3.7 +----------------------------------- + +- fix: fix: swagger missing nonce (#2116) [Daniel Vaz Gaspar] + Improvements and Bug fixes on 4.3.6 ----------------------------------- -fix: increase email field length (#2102) [Daniel Vaz Gaspar] +- fix: increase email field length (#2102) [Daniel Vaz Gaspar] Improvements and Bug fixes on 4.3.5 ----------------------------------- diff --git a/docs/security.rst b/docs/security.rst index c5ef982dc7..03c01175af 100644 --- a/docs/security.rst +++ b/docs/security.rst @@ -90,7 +90,7 @@ This method will authenticate the user's credentials against an LDAP server. WARNING: To use LDAP you need to install `python-ldap `_. -For a typical Microsoft AD setup (where all users can preform LDAP searches):: +For a typical Microsoft AD setup (where all users can perform LDAP searches):: AUTH_TYPE = AUTH_LDAP AUTH_LDAP_SERVER = "ldap://ldap.example.com" diff --git a/flask_appbuilder/__init__.py b/flask_appbuilder/__init__.py index 9691034afe..1eebd688cf 100644 --- a/flask_appbuilder/__init__.py +++ b/flask_appbuilder/__init__.py @@ -1,5 +1,5 @@ __author__ = "Daniel Vaz Gaspar" -__version__ = "4.3.6" +__version__ = "4.3.7" from .actions import action # noqa: F401 from .api import ModelRestApi # noqa: F401 diff --git a/flask_appbuilder/security/manager.py b/flask_appbuilder/security/manager.py index bafcae5b41..b9172b99eb 100644 --- a/flask_appbuilder/security/manager.py +++ b/flask_appbuilder/security/manager.py @@ -931,7 +931,7 @@ def _search_ldap(self, ldap, con, username): if len(self.auth_roles_mapping) > 0: request_fields.append(self.auth_ldap_group_field) - # preform the LDAP search + # perform the LDAP search log.debug( "LDAP search for '%s' with fields %s in scope '%s'", filter_str, @@ -1114,7 +1114,7 @@ def auth_user_ldap(self, username, password): user_attributes = {} # Flow 1 - (Indirect Search Bind): - # - in this flow, special bind credentials are used to preform the + # - in this flow, special bind credentials are used to perform the # LDAP search # - in this flow, AUTH_LDAP_SEARCH must be set if self.auth_ldap_bind_user: @@ -1150,7 +1150,7 @@ def auth_user_ldap(self, username, password): # Flow 2 - (Direct Search Bind): # - in this flow, the credentials provided by the end-user are used - # to preform the LDAP search + # to perform the LDAP search # - in this flow, we only search LDAP if AUTH_LDAP_SEARCH is set # - features like AUTH_USER_REGISTRATION & AUTH_ROLES_SYNC_AT_LOGIN # will only work if AUTH_LDAP_SEARCH is set diff --git a/flask_appbuilder/templates/appbuilder/init.html b/flask_appbuilder/templates/appbuilder/init.html index 6ebf8b0409..62608c0f7a 100644 --- a/flask_appbuilder/templates/appbuilder/init.html +++ b/flask_appbuilder/templates/appbuilder/init.html @@ -27,7 +27,7 @@ {% endif %} - + {% endblock %} diff --git a/flask_appbuilder/templates/appbuilder/swagger/swagger.html b/flask_appbuilder/templates/appbuilder/swagger/swagger.html index 40cce6707b..9cf29b6c87 100644 --- a/flask_appbuilder/templates/appbuilder/swagger/swagger.html +++ b/flask_appbuilder/templates/appbuilder/swagger/swagger.html @@ -3,17 +3,17 @@ {% block head_css %} {{ super() }} - + href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css" + nonce="{{ baselib.get_nonce() }}"> {% endblock %} {% block content %}
- + - {% endblock %}