Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scopes): enforce scopes restrictions on a wider range of requests #731

Merged
merged 3 commits into from
Jun 1, 2021

Conversation

romain-gilliotte
Copy link
Contributor

Pull Request checklist:

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Create automatic tests
  • Test manually the implemented changes
  • Review my own code (indentation, syntax, style, simplicity, readability)
  • Wonder if you can improve the existing code

@romain-gilliotte romain-gilliotte changed the base branch from master to beta May 26, 2021 10:12
@romain-gilliotte romain-gilliotte changed the title feat: enforce scopes restrictions on a wider range of requests [epic] feat(scopes): enforce scopes restrictions on a wider range of requests May 26, 2021
@romain-gilliotte romain-gilliotte marked this pull request as ready for review May 31, 2021 16:03
@romain-gilliotte romain-gilliotte merged commit da7d71d into beta Jun 1, 2021
@romain-gilliotte romain-gilliotte deleted the epic/application-wide-scopes branch June 1, 2021 09:01
forest-bot added a commit that referenced this pull request Jun 1, 2021
# [8.0.0-beta.4](v8.0.0-beta.3...v8.0.0-beta.4) (2021-06-01)

* feat(scopes)!: enforce scopes restrictions on a wider range of requests (#731) ([da7d71d](da7d71d)), closes [#731](#731)

### BREAKING CHANGES

* the public API of forest-express has changed to include the parameters which are needed to evaluate scope filters. This includes PermissionMiddlewareCreator, all classes on the /exposed folder and most services. Many routes now require providing the current user timezone.
@forest-bot
Copy link
Member

🎉 This PR is included in version 8.0.0-beta.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Jul 19, 2021
# [8.0.0](v7.12.2...v8.0.0) (2021-07-19)

### Bug Fixes

* abstractRecord type ([#772](#772)) ([81492b9](81492b9))
* correctly get the IP address from the request headers ([2b5ed1d](2b5ed1d))
* fix types ([580ef41](580ef41))

### Features

* allow hooks for global and bulk smart action ([#769](#769)) ([14c26cd](14c26cd))
* **browsing-context:** allow `Forest-Context-Url` header to give the current browser url of users ([#665](#665)) ([c46fd66](c46fd66))
* **browsing-context:** allow `Forest-Context-Url` header to give the current browser url of users ([#665](#665)) ([a61699a](a61699a))
* **security:** secure segments queries ([#764](#764)) ([98d7f74](98d7f74))
* **smart-action:** user can add dynamically field with hook on smart action form ([#742](#742)) ([228bb42](228bb42))

* feat(scopes)!: enforce scopes restrictions on a wider range of requests (#731) ([da7d71d](da7d71d)), closes [#731](#731)

### BREAKING CHANGES

* record is no longer send to the hook middleware & values option on smart action is no longer supported
* **smart-action:** fields parameters on hook function is no longer a map of field, it is now an array.
change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook.
* the public API of forest-express has changed to include the parameters which are needed to evaluate scope filters. This includes PermissionMiddlewareCreator, all classes on the /exposed folder and most services. Many routes now require providing the current user timezone.
* **browsing-context:** users willing to use this header needs either to clean the allowed headers or to add this specific header in the CORS configuration
* **browsing-context:** users willing to use this header needs either to clean the allowed headers or to add this specific header in the CORS configuration
@forest-bot
Copy link
Member

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants