Skip to content

Commit

Permalink
revert: revert "altered decrypted_secret to be encrypted and made cre…
Browse files Browse the repository at this point in the history
…dentials nullable" in #2219 (#2225)
  • Loading branch information
MueezKhan246 authored Sep 2, 2024
1 parent 70be467 commit 2a8cdd4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Unreleased
----------
* nothing unreleased

[4.23.18]
----------
* revert: revert "altered decrypted_secret to be encrypted and made credentials nullable" in #2219

[4.23.17]
----------
* feat: added migrations to remove client_id and client_secret from CanvasEnterpriseCustomerConfiguration
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.23.17"
__version__ = "4.23.18"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 3.2.23 on 2024-09-02 14:18

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sap_success_factors', '0018_auto_20240829_0910'),
]

operations = [
migrations.AlterField(
model_name='sapsuccessfactorsenterprisecustomerconfiguration',
name='decrypted_secret',
field=models.CharField(blank=True, default='', help_text='The encrypted OAuth client secret. It will be encrypted when stored in the database.', max_length=255, null=True, verbose_name='Encrypted Client Secret'),
),
migrations.AlterField(
model_name='sapsuccessfactorsenterprisecustomerconfiguration',
name='key',
field=models.CharField(blank=True, default='', help_text='OAuth client identifier.', max_length=255, verbose_name='Client ID'),
),
migrations.AlterField(
model_name='sapsuccessfactorsenterprisecustomerconfiguration',
name='secret',
field=models.CharField(blank=True, default='', help_text='OAuth client secret.', max_length=255, verbose_name='Client Secret'),
),
]
8 changes: 3 additions & 5 deletions integrated_channels/sap_success_factors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ class SAPSuccessFactorsEnterpriseCustomerConfiguration(EnterpriseCustomerPluginC
blank=True,
default='',
verbose_name="Client ID",
help_text=_("OAuth client identifier."),
null=True
help_text=_("OAuth client identifier.")
)

decrypted_key = EncryptedCharField(
Expand Down Expand Up @@ -121,11 +120,10 @@ class SAPSuccessFactorsEnterpriseCustomerConfiguration(EnterpriseCustomerPluginC
blank=True,
default='',
verbose_name="Client Secret",
help_text=_("OAuth client secret."),
null=True
help_text=_("OAuth client secret.")
)

decrypted_secret = EncryptedCharField(
decrypted_secret = models.CharField(
max_length=255,
blank=True,
default='',
Expand Down

0 comments on commit 2a8cdd4

Please sign in to comment.