Skip to content

Latest commit

 

History

History
272 lines (174 loc) · 6.91 KB

changeslog_legacy.md

File metadata and controls

272 lines (174 loc) · 6.91 KB

Changelog

v0.373.1

v0.373.0

Changes:

  • In order to change a setting that relies on a django setting you would need to use, DjangoSetting.override(v). i.e:
# settings.py
from gqlauth.settings_type import DjangoSetting, GqlAuthSettings


GQL_AUTH = GqlAuthSettings(  # noqa F405
    EMAIL_FROM=DjangoSetting.override("SomeDiffrentEmail@thanInDjango.settings"),
)

v0.372.0

  • Fall back to primitive graphql errors. The error types approach that I gave so much effort for, was yet another case of 'Don't Let the Perfect Be the Enemy of the Good' and introduced more complexity than I thought.

0.3.7.1

  • dependencies updates.

v0.3.6.0

Deprecations:

  • Removed secondary email support.

New features

  • mypy support

v0.3.5.1

New features

  • Support for subscriptions, tested with channels integrations.

v0.3.5.0

New features:

  • new setting GqlAuthSettings.JWT_TOKEN_FINDER for finding the token from Info object, useful for integrations that provide custom info object.

v0.3.4.2

Deprecations:

  • users query was removed due to security concerns. If you want it implement it yourself and make sure to use the appropriate auth measures

  • SomeField.afield is removed, and you can use now just SomeField.field for async/sync.

  • decorators are deprecated, and you should use directives from now on.

New features:

v0.3.4.1

deprecations

  • LOGIN_REQUIRED_FIELDS and LOGIN_OPTIONAL_FIELDS are deprecated in favor of LOGIN_FIELDS. From now on you should pass StrawberryField instance to LOGIN_FIELDS and it is absolutely your responsibility what would be optional/required.
  • REGISTER_MUTATION_FIELDS_OPTIONAL is deprecated in favor of REGISTER_MUTATION_FIELDS.
  • UPDATE_MUTATION_FIELDS, REGISTER_MUTATION_FIELDS are also taking StrawberryField instances from now on.

v0.3.4.0

  • New features
    • serve Captcha over static files. New setting introduced, CAPTCHA_SAVE_IMAGE: bool = False.

v0.3.3.2

  • New features

    • Any fields that are in either UPDATE_MUTATION_FIELDS, REGISTER_MUTATION_FIELDS, REGISTER_MUTATION_FIELDS_OPTIONAL And the pk field of the model. Will be inserted to UserType and will be in user queries.
    • Doc strings in gqlquth_settings object
  • Bug fixed

    • Issue #45, #42
      • LOGIN_REQUIRED_FIELDS is now supported,
        These fields would be used to authenticate with SD-jwt authenticate function. This function will call each of our AUTHENTICATION_BACKENDS, And will return the user from one of them unless PermissionDenied was raised.

      • REGISTER_MUTATION_FIELDS is now supported,
        Fields that will be registered there will be required by Register mutation

  • Development Notes

    • Added new marker for pytest, default_user this is the user defined in the default settings, And the custom user is in settings_b.py with no email field.

v0.3.3.1 - pre-release

  • New features

    • async support using ASGI, the resolvers are still sync because of django's ORM
  • API changes

    • Previously, following the graphene version, we did i.e token_auth = relay.ObtainJSONWebToken.Field,
      In order to respect pep8 (since it is a function)
      and Strawberry style we changed it to token_auth = relay.ObtainJSONWebToken.field.
    • Renamed Cap.Field to Captcha.field.
  • Deprecations

    • Removed setting ASYNC_EMAIL_TASK, (originally this was a celery task).
  • Development Notes

    • Major refactoring of how the test work:
      • removed all the dicts that was flying around and used dataclasses.
      • added async tests for all tests.
      • no longer using request factory, now using test client as it emulates more real life environment.

v0.3.16

  • Nothing new, adding PyJWT<=2.0.0 to requirements

v0.3.15

  • Emit user_verified signal on password reset (thanks to @imsheldon)

v0.3.14

  • Add passwordless registration (thanks to @joshuachinemezu)
  • Add user_verified and user_registered signals (thanks to @mnieber)
  • Verify user in password reset mutation (thanks to capaci )

v0.3.13

  • Add EMAIL_TEMPLATE_VARIABLES setting (thanks to capaci )

v0.3.12

  • Add CUSTOM_ERROR_TYPE setting (thanks to boolangery )

v0.3.11

  • Add select_related to UserNode to limit db queries (thanks to maxpeterson)

v0.3.10

  • Pseudo async email support (thanks to bzhr and me)

v0.3.9

  • Prevents that UserNode is registered globally for the User type (thanks to panosangelopoulos)

v0.3.8

  • Add request and timestamp to email templates (thanks to yanivtoledano)

v0.3.7

  • Add template variables to email subjects.

v0.3.6

  • Replace RemovedInDjango40Warning ugettext with gettext (thanks to ulgens)

v0.3.5

  • Added MeQuery (thanks to pors).

v0.3.4

  • Renamed from ErrorType toExpectedErrorType, preventing clash with a strawberry.django type with same name..

v0.3.3

  • Fixed bug when performing login in PasswordChangeMixin (thanks to panosangelopoulos).

v0.3.2

  • Fixed typo in error code/message for expired_token (thanks to yanivtoledano).

v0.3.1

  • add pk to UserNode.

v0.3.0

  • release beta.

v0.2

v0.2.8

  • return new token and refreshToken on password change.

v0.2.7

  • allow login on register, returning token and refresh token.

v0.2.6

  • review error fields in some mutations.

v0.2.5

  • update apps config.
  • nothing new.

v0.2.4

  • add mutation to remove secondary email.

v0.2.3

  • user status is created on signal.

v0.2.2

  • fix typo in setup.
  • nothing new.

v0.2.1

  • fix readme on pypi.
  • nothing new.

v0.2.0

  • minor bug fixes.
  • add user status model to track if user is archived, verified and secondary email.
  • add new mutations to handle secondary email.
  • allow login with secondary email.

v0.1

0.1.11

  • Fix minor bugs.

0.1.10

  • Fix minor bugs.

0.1.9

  • Rename settings params.

0.1.8

  • Fix typo in settings.

0.1.7

  • No changes (testing release on Travis).

0.1.6

  • Support for Django >= 2.1

0.1.5

  • Revoke refresh tokens when archiving user.

0.1.4

  • Allow to revoke refresh tokens on password change and reset.

0.1.3

  • Better settings api.

0.1.2

  • Update setup.py.

0.1.1

  • Add initial README file!

0.1.0

  • Hello world!