Commit graph

177 commits

Author SHA1 Message Date
github-actions
6c0a11cea7 chore: release version v3.7.3 2023-01-18 23:08:08 +00:00
James Harton
c1561e7747
fix(Password): validate fields using both methods of allowing nil input. (#151)
Closes #150.
2023-01-19 12:02:19 +13:00
github-actions
d6bfedfec2 chore: release version v3.7.2 2023-01-18 22:39:07 +00:00
James Harton
62cf54d85e
improvement(AuthenticationFailed): store a caused_by value in authentication failures. (#145)
This allows for a better debugging experience when trying to understand why an authentication action is failing.

Closes #128.
2023-01-19 11:32:37 +13:00
dependabot[bot]
b0dd8d55cd
chore(deps-dev): bump ash_graphql from 0.22.3 to 0.22.4 (#148)
Bumps [ash_graphql](https://github.com/ash-project/ash_graphql) from 0.22.3 to 0.22.4.
- [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.3...v0.22.4)

---
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>
2023-01-19 11:14:00 +13:00
dependabot[bot]
7cd55aef61
chore(deps-dev): bump ash_postgres from 1.3.2 to 1.3.3 (#147)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.3.2 to 1.3.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.3.2...v1.3.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>
2023-01-19 11:13:43 +13:00
dependabot[bot]
c9fb5a73b9
chore(deps-dev): bump ash_json_api from 0.31.0 to 0.31.1 (#149)
Bumps [ash_json_api](https://github.com/ash-project/ash_json_api) from 0.31.0 to 0.31.1.
- [Release notes](https://github.com/ash-project/ash_json_api/releases)
- [Changelog](https://github.com/ash-project/ash_json_api/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_json_api/compare/v0.31.0...v0.31.1)

---
updated-dependencies:
- dependency-name: ash_json_api
  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>
2023-01-19 10:50:26 +13:00
github-actions
5631b376da chore: release version v3.7.1 2023-01-18 07:27:37 +00:00
Zach Daniel
6321a9baa6
improvement: update ash & switch to new docs patterns (#146) 2023-01-18 02:13:30 -05:00
github-actions
00f082cc8d chore: release version v3.7.0 2023-01-18 01:52:26 +00:00
James Harton
d4f3bec947
feat(PasswordValidation): Add a validation which can check a password. (#144) 2023-01-18 14:46:22 +13:00
2a10e2da6a docs: small documentation improvements. 2023-01-18 12:04:03 +13:00
James Harton
7c71e1f219
docs: Add GitHub quick start guide. (#143) 2023-01-18 11:33:08 +13:00
James Harton
fec1060a15
docs: Add Auth0 quickstart guide. (#142) 2023-01-18 11:16:20 +13:00
dependabot[bot]
814928a65b
chore(deps-dev): bump ash_postgres from 1.3.1 to 1.3.2 (#141)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.3.1 to 1.3.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.3.1...v1.3.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>
2023-01-18 09:26:20 +13:00
Zach Daniel
8f208264e0
Update README.md 2023-01-17 08:51:25 -05:00
Zach Daniel
15b46bb1e8
Update README.md 2023-01-17 08:51:10 -05:00
Zach Daniel
5f8f6e07b0
update README.md 2023-01-17 08:50:55 -05:00
Darren Black
a5a1c2cdc3
docs: improve getting started guides (#140) 2023-01-17 17:05:19 +13:00
bc42cc7396 chore(README): Add logo and badges. 2023-01-16 18:03:21 +13:00
83793beb8d chore(CI): fix typo on release configuration. 2023-01-16 08:58:11 +13:00
github-actions
d8bd7030bb chore: release version v3.6.1 2023-01-15 07:34:35 +00:00
Zach Daniel
ec8e1eb979
improvement: set confirmed field to nil, for reconfirmation (#136)
* improvement: set confirmed field to `nil`, for reconfirmation

* chore: format

* improvement: only change `confirmed_at_field` if its not changing, and only on updates
2023-01-15 20:28:13 +13:00
github-actions
161c8ab7e8 chore: release version v3.6.0 2023-01-13 04:28:27 +00:00
Zach Daniel
f0aa2e7a93
fix: don't call hash_provider.valid? on nil values (#135)
fix: use configured hashed_password_field
2023-01-13 17:22:40 +13:00
James Harton
948298ac1c
improvement(TokenResource)!: Store the token subject in the token resource. (#133)
* improvement(TokenResource)!: Store the token subject in the token resource.

This is a breaking change because you may have to delete tokens in your database so that you can avoid the non-null constraint on subject.

* docs: Add upgrading documentation.
2023-01-13 17:21:57 +13:00
James Harton
53d221aa6f
docs: Add a small warning about defining the failure template. (#134)
* docs: Add a small warning about defining the failure template.

Closes #118.

* Update documentation/tutorials/integrating-ash-authentication-and-phoenix.md

Co-authored-by: Zach Daniel <zach@zachdaniel.dev>

Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2023-01-13 17:21:37 +13:00
github-actions
f16960f018 chore: release version v3.5.3 2023-01-13 00:48:41 +00:00
James Harton
085d640c44
fix(Confirmation): send the original changeset to confirmation senders. (#132)
Changes the behaviour of the `ConfirmationHookChange` to pass the original, unmodified changeset in the sender options so that senders can account for inhibited changes.
2023-01-13 13:30:58 +13:00
dependabot[bot]
0bc98800c0
chore(deps): bump spark from 0.3.4 to 0.3.5 (#131)
Bumps [spark](https://github.com/ash-project/spark) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/ash-project/spark/releases)
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v0.3.4...v0.3.5)

---
updated-dependencies:
- dependency-name: spark
  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>
2023-01-13 13:26:56 +13:00
github-actions
4b1da2fe73 chore: release version v3.5.2 2023-01-12 22:33:22 +00:00
Zach Daniel
3413260659
improvement: add user context when creating tokens (#129) 2023-01-13 11:26:39 +13:00
dependabot[bot]
a4d272718d
chore(deps): bump ash from 2.5.1 to 2.5.2 (#127)
Bumps [ash](https://github.com/ash-project/ash) from 2.5.1 to 2.5.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.5.1...v2.5.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>
2023-01-13 08:52:34 +13:00
github-actions
cce4d87995 chore: release version v3.5.1 2023-01-12 05:02:37 +00:00
James Harton
63aaea6871
fix: missing icons in OAuth2 strategies. (#126) 2023-01-12 17:55:40 +13:00
github-actions
6c093788b8 chore: release version v3.5.0 2023-01-12 04:29:57 +00:00
James Harton
4129aa969a
feat(GitHub)!: Add GitHub authentication strategy. (#125) 2023-01-12 17:23:40 +13:00
github-actions
3885ab609f chore: release version v3.4.2 2023-01-12 02:40:38 +00:00
Zach Daniel
999bec00ee
improvement: add policy utilities and accompanying guide (#119)
* improvement: add policy utilities and accompanying guide
fix: improve some error message/validation logic

* chore: update castore & fix check definition

* improvement: fix build/warnings/dialyzer/format

* chore: add private context to new `get_token` action.

* chore: fix build.

I'd rather have the warning than a build failure.

Co-authored-by: James Harton <james@harton.nz>
2023-01-12 15:34:41 +13:00
github-actions
178867852a chore: release version v3.4.1 2023-01-12 00:55:55 +00:00
James Harton
500ea353a8
fix(Confirmation): correctly generate confirmation token subjects. (#124) 2023-01-12 13:49:48 +13:00
dependabot[bot]
947a4c7283
chore(deps-dev): bump ash_postgres from 1.2.6 to 1.3.1 (#121)
Bumps [ash_postgres](https://github.com/ash-project/ash_postgres) from 1.2.6 to 1.3.1.
- [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.2.6...v1.3.1)

---
updated-dependencies:
- dependency-name: ash_postgres
  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>
2023-01-12 10:12:07 +13:00
dependabot[bot]
226568cc0b
chore(deps): bump ash from 2.4.30 to 2.5.1 (#123)
Bumps [ash](https://github.com/ash-project/ash) from 2.4.30 to 2.5.1.
- [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.30...v2.5.1)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  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>
2023-01-12 09:57:37 +13:00
9caeae6943 chore(deps): Update castore to 0.1.22 to fix the build. 2023-01-12 09:42:46 +13:00
github-actions
0ee896829e chore: release version v3.4.0 2023-01-11 02:19:36 +00:00
James Harton
d5c5d6b6c5
feat: Add token-required-for-authentication feature. (#116)
* Adds the `require_token_presence_for_authentication?` DSL option to the Authentication extension which when enabled changes the following behaviour:
  1. The `store_in_session` plug will store the user's token rather than their subject in the session.
  2. The `retrieve_from_session` plug will look for a stored token in the session rather than a subject and ensure that it's present in the `TokenResource`.
  3. The `retrieve_from_bearer` plug will ensure that the token is present in the `TokenResource`.
* Adds the `get_token` action to the `TokenResource`.
2023-01-11 15:12:53 +13:00
github-actions
c444f4583e chore: release version v3.3.1 2023-01-09 03:36:05 +00:00
James Harton
34b9d94f51
improvement: Set Ash actor and tenant when executing internal plugs. (#115)
Closes #114.
2023-01-09 16:30:00 +13:00
github-actions
757290f508 chore: release version v3.3.0 2023-01-09 02:19:16 +00:00
James Harton
792ec056b8
feat: Make strategy names optional where possible. (#113) 2023-01-09 15:02:48 +13:00