diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b9cd768..50a4e7ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## v24.17 ### Pre-releases +- `v24.17-alpha2` - `v24.17-beta1` - `v24.17-alpha1` @@ -11,6 +12,7 @@ - Fix searching credentials with multiple filters (#362, `v24.06-alpha14`) ### Features +- User invitations are enabled by default (#367, `v24.17-alpha2`) - When invitation cannot be created because the user already exists, the invitation is re-sent (#364, `v24.17-alpha1`) - When no communication channel is configured, invitation and password reset URLs are returned in admin responses (#364, `v24.17-alpha1`) - Listing assigned tenants and roles no longer requires resource authorization (#348, `v24.06-alpha13`) diff --git a/seacatauth/credentials/providers/abc.py b/seacatauth/credentials/providers/abc.py index 4e2745b4..689ec23a 100644 --- a/seacatauth/credentials/providers/abc.py +++ b/seacatauth/credentials/providers/abc.py @@ -18,8 +18,8 @@ class CredentialsProviderABC(asab.Configurable, abc.ABC): RegistrationEnabled = False ConfigDefaults = { - 'tenants': 'no', - 'register': 'no', # Yes, if this credentials provider handles registration + "tenants": "no", + "registration": "no", # Yes, if this provider allows inviting and registering new users } def __init__(self, provider_id, config_section_name, config=None): diff --git a/seacatauth/credentials/providers/m2m_mongodb.py b/seacatauth/credentials/providers/m2m_mongodb.py index 136cfa63..b168c48e 100644 --- a/seacatauth/credentials/providers/m2m_mongodb.py +++ b/seacatauth/credentials/providers/m2m_mongodb.py @@ -54,6 +54,7 @@ class M2MMongoDBCredentialsProvider(MongoDBCredentialsProvider): def __init__(self, app, provider_id, config_section_name): super().__init__(app, provider_id, config_section_name) + self.RegistrationEnabled = False self.RegistrationFeatures = None async def initialize(self): diff --git a/seacatauth/credentials/providers/mongodb.py b/seacatauth/credentials/providers/mongodb.py index bcdb25c1..687ef393 100644 --- a/seacatauth/credentials/providers/mongodb.py +++ b/seacatauth/credentials/providers/mongodb.py @@ -61,8 +61,8 @@ class MongoDBCredentialsProvider(EditableCredentialsProviderABC): ConfigDefaults = { "credentials_collection": "c", - "tenants": "no", - "registration": "no", + "tenants": "yes", + "registration": "yes", }