Skip to content

Commit

Permalink
Merge pull request #367 from TeskaLabs/feature/enable-registration-by…
Browse files Browse the repository at this point in the history
…-invitation

User invitations are enabled by default
  • Loading branch information
byewokko authored Apr 25, 2024
2 parents 5ef629d + 3e698e7 commit 42e914c
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`)
4 changes: 2 additions & 2 deletions seacatauth/credentials/providers/abc.py
Original file line number Diff line number Diff line change
@@ -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):
1 change: 1 addition & 0 deletions seacatauth/credentials/providers/m2m_mongodb.py
Original file line number Diff line number Diff line change
@@ -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):
4 changes: 2 additions & 2 deletions seacatauth/credentials/providers/mongodb.py
Original file line number Diff line number Diff line change
@@ -61,8 +61,8 @@ class MongoDBCredentialsProvider(EditableCredentialsProviderABC):

ConfigDefaults = {
"credentials_collection": "c",
"tenants": "no",
"registration": "no",
"tenants": "yes",
"registration": "yes",
}


0 comments on commit 42e914c

Please sign in to comment.