Skip to content

Releases: jungsoft/rajska

v1.3.2

11 Jul 10:32
ac0487e
Compare
Choose a tag to compare

Ignore introspection query in Object Authorization (#40)

v1.3.1

08 Jun 15:37
Compare
Choose a tag to compare

Improve typespec for unauthorized message (#39)

v1.3.0

16 Jun 19:28
Compare
Choose a tag to compare

Support functions in query scope authorization args (#36)

v1.2.0

07 Jun 17:57
Compare
Choose a tag to compare
  • Add support to Absinthe 1.6 (#34)

v1.1.0

30 Nov 21:27
Compare
Choose a tag to compare
  • Improve documentation (#31)
  • Allow customization of Object Authorization message (#32)
  • Support Absinthe 1.5 (requires at least 1.5.4) (#30)

v1.0.2

26 Aug 19:12
Compare
Choose a tag to compare

Fix object authorization for named fragments (#29 )

v1.0.1

25 Jun 19:57
Compare
Choose a tag to compare

Fix object authorization for union type (#26)

v1.0.0

17 Feb 15:43
Compare
Choose a tag to compare

v1 Released

Rajska is now stable, since we are 3 months without bugs and breaking changes! 🎉

New features

  • Rate limiter absinthe middleware

v0.9.0

07 Nov 19:25
89c2d66
Compare
Choose a tag to compare

Breaking Changes

Previous Authorization.has_user_access?/4 module callback:

@callback has_user_access?(
    current_user,
    scope :: module(),
    {field :: any(), field_value :: any()},
    rule :: any()
  ) :: boolean()

New Authorization.has_user_access?/3 callback:

@callback has_user_access?(current_user, scoped_struct, rule) :: boolean()
  • Merge scope module and {field, field_value} arguments into a struct, since scope module must define a struct
  • Pass entire objects from field and query scope authorization to new has_user_access?/3
  • Rename scope_by, scope_object_by and scope_field_by metas to scope?, scope_object? and scope_field?
  • Set default scope? value to true

v0.8.0

29 Oct 18:09
Compare
Choose a tag to compare

Breaking Changes

  • context_field_authorized? and field_authorized? removed, field authorization now uses has_context_access? with rules

Enhancements

  • Add custom credo rules

Field authorization middleware:

  • Add meta :rule
  • Use source struct and scope_by for scoping
  • Unify all scope functions in Rajska (no more context_field_authorized)
  • Implement scope_field_by option

Object authorization middleware:

  • Implement scope_object_by option