Zach Daniel
669e696b94
fix: ensure that params are sent when using route helpers
2024-09-03 10:12:03 -04:00
087afc0a15
chore: remove redundant override in banner.ex
.
...
Closes #460 .
2024-09-02 09:08:43 +12:00
Miguel Serrano
e95d7535c6
improvement: add button for the Apple strategy ( #482 )
...
* improvement: add apple component
* fix: check strategy module instead of name
2024-09-02 08:39:51 +12:00
Zach Daniel
1b392d5fe3
chore: get build passing
2024-08-14 12:24:35 -04:00
Andrew Hacking
7c90908ad9
test: dynamic router - some additional tests, fixes and failures ( #493 )
...
* test: Scoped router tests
* test: Initial controller tests
* docs: Router helper docs, including :unscoped
* chore: Code formatting
* fix: ensure path params are processed on strategy router
* test: Working controller tests for register, sign-in, sign-out
---------
Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-08-14 11:48:18 -04:00
Rebecca Le
7960763bfc
fix: Re-link form labels and form inputs on Password strategy forms ( #494 )
...
* fix: Restore linkage between form inputs and form fields on Password strategy form
This will allow clicking the label to focus the field
* fix: Use separate override labels for Password and Password Confirmation fields
2024-08-13 10:13:39 -04:00
Zach Daniel
a51bab698f
improvement: pass context down to all actions
2024-08-09 09:39:28 -04:00
Zach Daniel
9f5feedc7d
feat: Dynamic Router + compile time dependency fixes ( #487 )
...
* improvement: create a new dynamic router, and avoid other compile time dependencies
* chore: "fix" credo
2024-08-08 20:03:48 -04:00
Zach Daniel
ccad725c9e
chore: format
2024-08-07 23:09:01 -04:00
Zach Daniel
661712de6e
fix: only scope reset/register paths if they are set
2024-08-07 23:02:41 -04:00
Andrew Hacking
e30be539b0
fix: Ensure session respects router scope when using sign_in_route helper ( #490 )
2024-08-07 10:06:24 -04:00
Zach Daniel
bcad5366a4
chore: format/clean deps
2024-07-18 09:40:21 -04:00
maxmannen
2e4bcaccae
improvement: Added overrides for identity (email) and password fields. ( #477 )
2024-07-16 15:32:43 -04:00
Zach Daniel
8a1fe30d7b
fix: use any overridden value, including nil
or false
( #476 )
...
fixes #475
2024-07-16 15:32:07 -04:00
Zach Daniel
ef856bf14e
fix: set tenant in sign_in and reset_route ( #478 )
2024-07-16 15:31:48 -04:00
425980157d
improvement: fix deprecation warnings about live_flash/2.
2024-07-10 14:01:19 +12:00
Zach Daniel
7430ab7d67
fix: set tenant on form creation
...
fixes #425
2024-04-17 00:44:04 +01:00
Zach Daniel
7d74d73e5e
chore: format
2024-04-13 17:58:42 -04:00
Zach Daniel
ee7347d9f0
fix: show password strategy message if field
is nil
...
at some point this must have changed where `field` is not being set,
and so `Invalid email or password` stoppped showing as the form error
2024-04-13 17:55:39 -04:00
e106c9996d
improvement!: Update to support Ash 3.0, et al.
2024-04-02 09:46:05 +13:00
Rebecca Le
3581b6c954
fix: Fix typos in override class names
...
`mx-auth` isn't a valid Tailwind class name, but `mx-auto` is!
2024-03-05 11:45:07 +08:00
82c4788962
fix: honour the error field in AuthenticationFailed errors in forms. ( #368 )
...
When the field being validated is not the strategy's password field then don't show the normal validation message.
2024-02-07 09:08:36 +13:00
James Harton
0fb9dae4e9
fix: Ensure that sign_in_route
and reset_route
correctly initialise session. ( #369 )
...
Ensure that `AshAuthentication.Phoenix.LiveSession` is included in the `on_mount` of the generated live sessions.
2024-02-02 15:30:04 +13:00
Minsub Kim
78c7237a33
build: update phoenix_html to 4.0.0 ( #360 )
2024-01-19 00:18:38 -05:00
Rebecca Le
cdd99fa159
chore: Appease mix doctor
2023-11-13 11:16:17 +08:00
Rebecca Le
04e8053f75
chore: Add some nice styles for default flash messages
2023-11-13 11:12:19 +08:00
Rebecca Le
67f794bf41
feat: Add rendering of flash messages from live components
...
This includes unstyled flash messages for now
2023-11-13 11:03:58 +08:00
Bryan Bryce
25b424c637
fix: Pass tenant to generated Live View forms ( #310 )
...
* tenant -> socket.assigns -> component -> changeset
* Include current_tenant in prop spec for register, reset, and signin forms
* Use assign instead of assign_new
* debug: adds debug inspects
* debug: adds debug inspects
* debug: removes debug inspects
* Accept tenant for sign in route
* conn as parameter for sign in route, remove as opt
* Support passing the tenant to the magic link
* Remove changes to CustomSignInLive as it's not a multitenancy example
* Remove uncessessary change
* Remove uncessessary change
* fix: pull assign out of other flow
* fix: sets a nil value in assigns for :current_tenant in subcomponents if not already set
2023-10-27 08:48:42 +13:00
James Harton
b5bd8b9271
fix: incorrect introspection target in password strategy. ( #317 )
...
We were using the `get_by_subject_action_name` instead of the `subject_name`. Oops.
Fixes #108 .
2023-10-26 10:36:53 +13:00
Zach Daniel
18305841b6
fix: properly navigate back to root component when routes are not set ( #296 )
...
fixes : #295
2023-10-06 16:48:05 -04:00
Andreas Donig
59fd882dc4
docs: Fix some copypasta in the sign_in_route/1 docstring ( #293 )
...
Co-authored-by: Andreas Donig <git@innwiese.de>
2023-10-05 09:15:55 -04:00
Zach Daniel
50f7147d26
improvement: optional support for routing to register & reset links ( #281 )
2023-09-25 10:26:49 -04:00
Zach Daniel
6886f3aae6
chore: format
2023-09-23 16:42:29 -04:00
Zach Daniel
c37c441032
fix: resettable is no longer a list
2023-09-23 15:22:03 -04:00
Zach Daniel
693a41f95e
fix: handle change from ash_authentication where resettable is no lon… ( #279 )
2023-09-22 12:13:16 -04:00
Zach Daniel
91df24ff32
improvement: submit form in-line when sign_in_tokens_enabled ( #274 )
...
* improvement: submit form in-line when sign_in_tokens_enabled
* chore: update ash_authentication dependency for new feature
2023-09-17 20:42:14 -04:00
c54f2bd7b8
chore: bypass credo failure.
2023-09-15 08:58:41 +12:00
Dmitry Maganov
0efbf4a01b
feat: change ash_authentication_live_session
to use assign_new
( #270 )
2023-09-13 10:29:35 +12:00
45fdb16bd3
chore: remove spurious IO.inspect
calls.
2023-09-06 13:39:10 +12:00
Zach Daniel
50c2aef27a
docs: remove registries from guides & examples
2023-09-04 18:25:11 -04:00
skanderm
2640f97823
fix: Overrides in reset route ( #250 )
...
* Pass overrides to the banner in Reset component
* Match reset_route macro live_options with sign_in macro
2023-08-10 09:43:46 +12:00
e7288a2ff8
improvement: Add OIDC and generic "lock" icons.
2023-04-17 10:11:33 +12:00
Zach Daniel
fc74f54433
fix: backwards compat with sign_in_tokens_enabled?
...
This was meant to be backwards compatible, but dot access
made it not so
2023-04-11 21:28:38 -04:00
Zach Daniel
d9a3503430
docs: add liveview specific guide
2023-04-06 08:54:19 -04:00
Zach Daniel
903f3a386e
feat: support new sign in tokens feature on password strategy ( #176 )
...
As of version `3.10.5` `ash_authentication` now supports generating and validating short-lived sign in tokens as part of the password sign in flow. This feature seamlessly enables this flow simply by turning on `sign_in_tokens_enabled?` in the password strategy DSL.
---------
Co-authored-by: James Harton <james@harton.nz>
2023-04-06 15:59:52 +12:00
Zach Daniel
936929ae69
fix: better behavior when password registration disabled
2023-03-27 10:43:48 +13:00
Zach Daniel
34001f367f
fix: only show register page if register is enabled
2023-03-27 10:43:48 +13:00
Zach Daniel
baaf12bc1c
fix: resolve issues w/ assigning socket & test helper flash
2023-03-27 10:43:48 +13:00
dependabot[bot]
178654e1f7
chore(deps-dev): bump credo from 1.6.7 to 1.7.0 ( #169 )
...
* chore(deps-dev): bump credo from 1.6.7 to 1.7.0
Bumps [credo](https://github.com/rrrene/credo ) from 1.6.7 to 1.7.0.
- [Release notes](https://github.com/rrrene/credo/releases )
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rrrene/credo/compare/v1.6.7...v1.7.0 )
---
updated-dependencies:
- dependency-name: credo
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: disable credo nesting check in overrides macro
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Harton <james@harton.nz>
2023-03-23 15:16:00 +13:00
James Harton
7f792990f0
improvement: Add slots to password-related forms. ( #168 )
...
Allows the sign in, register and reset forms to be customised by way of a named slot.
2023-03-23 15:05:42 +13:00