Commit graph

795 commits

Author SHA1 Message Date
Zach Daniel
39099a0b1c improvement: add transaction reason 2022-12-12 10:46:04 +13:00
371a6ad821 improvement(Jwt)!: Use token signing secret into the DSL.
Use the `AshAuthentication.Secret` behaviour, rather than asking the user to explicitly set it in their application environment.

This is a breaking change that will require folks to change their resource config to look up the signing secret.

Closes #79.
Closes #77.
2022-12-12 10:45:28 +13:00
6977c39990 chore: use the --no-major git_ops flag to inhibit major releases. 2022-12-12 10:45:28 +13:00
e4fe4a2ee4 chore: remove unused function. 2022-12-12 09:24:10 +13:00
Zach Daniel
8a87d2dba8 chore: fix syntax error 2022-12-12 09:24:10 +13:00
Zach Daniel
dc33b04b08 improvement: try a simpler way of ensuring module is compiled 2022-12-12 09:24:10 +13:00
dependabot[bot]
6ad7dd6a65 chore(deps): bump ash from 2.4.21 to 2.4.23
Bumps [ash](https://github.com/ash-project/ash) from 2.4.21 to 2.4.23.
- [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.21...v2.4.23)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-10 07:03:03 +13:00
268a6ef685 chore(docs): Add tailwind configuration to phoenix guide.
Closes https://github.com/team-alembic/ash_authentication_phoenix/issues/31
2022-12-09 13:06:18 +13:00
Egor Kislitsyn
395388f91e
chore(docs): Fix code examples in the documentation (#74)
* Fix typo

* Password strategy requires a name

* Update documentation/getting_started/getting_started_01_basic_setup.md

Co-authored-by: James Harton <59449+jimsynz@users.noreply.github.com>

Co-authored-by: James Harton <59449+jimsynz@users.noreply.github.com>
2022-12-09 09:51:10 +13:00
Zach Daniel
3ba1d81975
improvement: use Code.ensure_compiled! which "demands" that the com… (#75)
* improvement: use `Code.ensure_compiled!` which "demands" that the compiler wait for X module

* chore: format
2022-12-09 09:47:16 +13:00
dependabot[bot]
99b20e6f6c
chore(deps): bump ash from 2.4.20 to 2.4.21 (#71) 2022-12-09 06:09:12 +13:00
github-actions
520fc012dc chore: release version v3.0.4 2022-12-08 06:31:38 +00:00
James Harton
3c997ec5ae
Merge pull request #69 from team-alembic/small-docs-tweaks
docs: use ash docs replacements for hex versions
2022-12-08 19:16:23 +13:00
Zach Daniel
69652e58a9 improvement: update to latest ash version
docs: use spark doc link replacements to render on hex & ash_hq
2022-12-08 00:39:22 -05:00
eb9fa5da22 chore: add beta warning to readme. 2022-12-08 16:52:23 +13:00
Zach Daniel
d781b78d5b
docs: use ash docs replacements for hex versions (#67) 2022-12-08 16:09:48 +13:00
Zach Daniel
1f09f4ae66 docs: use ash docs replacements for hex versions 2022-12-07 22:02:14 -05:00
8b94e5413b chore: include documentation in package contents. 2022-12-08 15:52:36 +13:00
James Harton
d8e1281c9b
chore: add automatic publishing of new releases to hex. (#66) 2022-12-08 15:35:53 +13:00
James Harton
afe6779b2a
chore: Add a basic getting started guide. (#13) 2022-12-08 15:23:47 +13:00
dependabot[bot]
2fe0351fdb
chore(deps-dev): bump elixir_sense from ef2401b to af9cb57 (#65)
Bumps [elixir_sense](https://github.com/elixir-lsp/elixir_sense) from `ef2401b` to `af9cb57`.
- [Release notes](https://github.com/elixir-lsp/elixir_sense/releases)
- [Commits](ef2401be49...af9cb576d6)

---
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-12-08 13:49:26 +13:00
dependabot[bot]
4d1c46cf2c
chore(deps): bump ash from 2.4.19 to 2.4.20 (#63)
Bumps [ash](https://github.com/ash-project/ash) from 2.4.19 to 2.4.20.
- [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.19...v2.4.20)

---
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-08 12:24:59 +13:00
github-actions
20c7c20b10 chore: release version v3.0.3 2022-12-07 22:56:45 +00:00
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