Commit graph

122 commits

Author SHA1 Message Date
James Harton
029655ed71
fix: break potential compiler dependency loops. (#64) 2022-12-08 11:50:50 +13:00
github-actions
dab0046e8d chore: release version v3.0.2 2022-12-05 02:46:45 +00:00
James Harton
54122cb15f
improvement(supervisor): require that the user adds the supervisor to their OTP app. (#62)
Closes #60 and #57.
2022-12-05 15:40:44 +13:00
github-actions
2b3c242e80 chore: release version v3.0.1 2022-12-05 00:12:57 +00:00
James Harton
2cee21c9ed
improvement(actions): All actions now take optional arguments for the underlying API call. (#61)
Closes #37.
2022-12-05 13:04:42 +13:00
dependabot[bot]
29f495f5fc
chore(deps-dev): bump ash_postgres from 1.1.2 to 1.1.3 (#52)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/ash-project/ash_postgres/releases)
- [Changelog](https://github.com/ash-project/ash_postgres/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_postgres/compare/v1.1.2...v1.1.3)

---
updated-dependencies:
- dependency-name: ash_postgres
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 11:27:39 +13:00
dependabot[bot]
e2c596b7c8
chore(deps-dev): bump ash_graphql from 0.22.0 to 0.22.1 (#50)
Bumps [ash_graphql](https://github.com/ash-project/ash_graphql) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/ash-project/ash_graphql/releases)
- [Changelog](https://github.com/ash-project/ash_graphql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_graphql/compare/v0.22.0...v0.22.1)

---
updated-dependencies:
- dependency-name: ash_graphql
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 11:27:14 +13:00
dependabot[bot]
d48a184a51
chore(deps): bump ash from 2.4.16 to 2.4.19 (#59)
Bumps [ash](https://github.com/ash-project/ash) from 2.4.16 to 2.4.19.
- [Release notes](https://github.com/ash-project/ash/releases)
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v2.4.16...v2.4.19)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 11:20:25 +13:00
github-actions
931fd1d8ea chore: release version v3.0.0 2022-12-04 22:13:12 +00:00
James Harton
a1de1cf0a9
Merge pull request #49 from team-alembic/feat/token-resource
Prevent possible leakage of PII by storing changes in the database instead of the token.
2022-12-05 10:57:15 +13:00
5febe36527 improvement(Confirmation): Store confirmation changes in the token resource.
This prevents possible PII leakage as per #47.
2022-12-05 10:48:23 +13:00
776bd8ea6c improvement(TokenResource)!: Move TokenRevocation -> TokenResource.
This paves the way to fix #47.
2022-12-01 08:41:49 +13:00
github-actions
e3d004ad97 chore: release version v2.0.1 2022-11-24 03:46:19 +00:00
James Harton
e88a516b22
improvement(Confirmation): Confirmation is not a strategy. (#46)
* improvement(Confirmation): Confirmation is not a strategy.

* improvement(Confirmation): Support more than one confirmation entity.

* chore: move FIXME doc to issue.
2022-11-24 16:40:15 +13:00
dependabot[bot]
eec87a0bea
chore(deps-dev): bump doctor from 0.20.0 to 0.21.0 (#41)
Bumps [doctor](https://github.com/akoutmos/doctor) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/akoutmos/doctor/releases)
- [Changelog](https://github.com/akoutmos/doctor/blob/master/CHANGELOG.md)
- [Commits](https://github.com/akoutmos/doctor/commits/0.21.0)

---
updated-dependencies:
- dependency-name: doctor
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 11:31:09 +13:00
dependabot[bot]
93bd54db7d
chore(deps-dev): bump ash_postgres from 1.1.1 to 1.1.2 (#44)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/ash-project/ash_postgres/releases)
- [Changelog](https://github.com/ash-project/ash_postgres/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_postgres/compare/v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: ash_postgres
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 11:30:53 +13:00
dependabot[bot]
1418d23f6f
chore(deps-dev): bump ex_doc from 0.29.0 to 0.29.1 (#45)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.29.0...v0.29.1)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 11:29:41 +13:00
github-actions
ad30748764 chore: release version v2.0.0 2022-11-22 21:57:04 +00:00
dependabot[bot]
9e9e217862
chore(deps-dev): bump ash_graphql from 0.21.0 to 0.22.0 (#42)
Bumps [ash_graphql](https://github.com/ash-project/ash_graphql) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/ash-project/ash_graphql/releases)
- [Changelog](https://github.com/ash-project/ash_graphql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_graphql/commits)

---
updated-dependencies:
- dependency-name: ash_graphql
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 10:40:23 +13:00
James Harton
1c8f138c67
improvement!: Major redesign of DSL and code structure. (#35)
Highlights:

* Replaced `AshAuthentication.Provider` with the much more flexible `AshAuthentication.Strategy`.
* Moved strategies to within the `authentication` DSL using entities and removed excess extensions.
* Added a lot more documentation and test coverage.
2022-11-23 09:09:41 +13:00
dependabot[bot]
fdba938b70
chore(deps-dev): bump ash_postgres from 1.1.1 to 1.1.2 (#40)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/ash-project/ash_postgres/releases)
- [Changelog](https://github.com/ash-project/ash_postgres/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_postgres/compare/v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: ash_postgres
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 15:10:06 +13:00
dependabot[bot]
1c9b9c6b28
chore(deps-dev): bump ex_doc from 0.29.0 to 0.29.1 (#38)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.29.0...v0.29.1)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 15:09:45 +13:00
dependabot[bot]
dff510d289
chore(deps): bump ash from 2.4.2 to 2.4.3 (#32)
Bumps [ash](https://github.com/ash-project/ash) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/ash-project/ash/releases)
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v2.4.2...v2.4.3)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 14:35:29 +13:00
5471e498d0 chore: release version v1.0.0 2022-11-15 14:47:36 +13:00
James Harton
65d53e3597 improvement(OAuth2Authentication)!: Make the site option runtime configurable. (#31) 2022-11-15 14:46:42 +13:00
github-actions
e7b1e84a63 chore: release version v0.6.1 2022-11-15 01:25:03 +00:00
James Harton
6b22c858ce
fix(OAuth2Authentication): Return the failure reason even if it's not a changeset. (#29)
(ie it's an error from assent).
2022-11-15 14:07:32 +13:00
dependabot[bot]
6aed0878d9
chore(deps): bump castore from 0.1.18 to 0.1.19 (#30)
Bumps [castore](https://github.com/elixir-mint/castore) from 0.1.18 to 0.1.19.
- [Release notes](https://github.com/elixir-mint/castore/releases)
- [Commits](https://github.com/elixir-mint/castore/compare/v0.1.18...v0.1.19)

---
updated-dependencies:
- dependency-name: castore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 09:51:28 +13:00
Josh Price
c559bffe8a
Add MIT Licence 2022-11-14 14:44:53 +11:00
github-actions
3a54be6b32 chore: release version v0.6.0 2022-11-10 02:02:46 +00:00
James Harton
c5f589058e
feat(OAuth2Authentication): Add support for generic OAuth2 endpoints. (#28) 2022-11-10 14:47:06 +13:00
github-actions
73c7788076 chore: release version v0.5.0 2022-11-04 08:12:23 +00:00
James Harton
1d4bb00617
feat(Confirmation): Add extension that allows a user to be confirmed when created or updated. (#27) 2022-11-04 21:05:47 +13:00
github-actions
50c4e832e3 chore: release version v0.4.3 2022-11-03 22:52:34 +00:00
e5ba987ee1 improvement(docs): Improve endpoint docs for PasswordAuthentication and PasswordReset. 2022-11-04 11:46:03 +13:00
github-actions
9afce721fe chore: release version v0.4.2 2022-11-03 22:31:29 +00:00
James Harton
bab9ec363e
fix(PasswordReset): Generate the reset token using the target action, not the source action. (#25)
* fix(PasswordReset): Generate the reset token using the target action, not the source action.

Also improve tests.

* improvement(PasswordReset): rework PasswordReset to be a provider in it's own right - this means it has it's own routes, etc.
2022-11-04 11:24:33 +13:00
dependabot[bot]
c5eb02f4b0
chore(deps): bump ash from 2.4.1 to 2.4.2 (#24)
Bumps [ash](https://github.com/ash-project/ash) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/ash-project/ash/releases)
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v2.4.1...v2.4.2)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-04 09:12:37 +13:00
github-actions
2f74ac0149 chore: release version v0.4.1 2022-11-03 01:09:31 +00:00
James Harton
6d4f338b0c
improvement(PasswordReset): A reset request is actually a query, not an update. (#23) 2022-11-03 14:03:14 +13:00
b5768a4489 chore: release version v0.4.0 2022-11-02 18:44:36 +13:00
dependabot[bot]
e141d455da
chore(deps-dev): bump elixir_sense from de43440 to ef2401b (#21)
Bumps [elixir_sense](https://github.com/elixir-lsp/elixir_sense) from `de43440` to `ef2401b`.
- [Release notes](https://github.com/elixir-lsp/elixir_sense/releases)
- [Commits](de434402bd...ef2401be49)

---
updated-dependencies:
- dependency-name: elixir_sense
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-02 18:22:42 +13:00
James Harton
0eca3274f0
feat(PasswordReset): allow users to request and reset their password. (#22) 2022-11-02 18:18:20 +13:00
dependabot[bot]
c4732c12a3
chore(deps-dev): bump plug_cowboy from 2.5.2 to 2.6.0 (#18)
Bumps [plug_cowboy](https://github.com/elixir-plug/plug_cowboy) from 2.5.2 to 2.6.0.
- [Release notes](https://github.com/elixir-plug/plug_cowboy/releases)
- [Changelog](https://github.com/elixir-plug/plug_cowboy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-plug/plug_cowboy/compare/v2.5.2...v2.6.0)

---
updated-dependencies:
- dependency-name: plug_cowboy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 09:55:27 +13:00
github-actions
c28aa29c8a chore: release version v0.3.0 2022-10-31 03:56:53 +00:00
James Harton
8797005175
feat(Ash.PlugHelpers): Support standard actor configuration. (#16)
* improvement(docs): change all references to `actor` to `user`.

The word "actor" has special meaning in the Ash ecosystem.

* chore: format `dev` directory also.

* feat(Ash.PlugHelpers): Support standard actor configuration.

* Adds the `:set_actor` plug which will set the actor to a resource based on the subject name.
* Also includes GraphQL and JSON:API interfaces in the devserver for testing.
2022-10-31 16:43:00 +13:00
github-actions
a432bd5477 chore: release version v0.2.1 2022-10-26 00:01:54 +00:00
aa638e0230 improvement: move subject_name uniqueness validation to compile time. 2022-10-26 12:56:08 +13:00
13d3f0d2ab improvement: remove generated: true from macros.
This is not needed and didn't do what I thought it did.
2022-10-26 11:04:34 +13:00
f0e7768e43 fix: deprecation warnings caused by use of Macro.expand_literal/2. 2022-10-26 11:03:14 +13:00