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
Zach Daniel
4dbb564b1b
fix: always set tenant
session
2023-03-13 12:04:30 -04:00
Zach Daniel
30017b7684
improvement: use tenant in ash_authentication_live_session ( #160 )
2023-03-13 10:33:16 +13:00
0fa34dfb9e
improvement: allow folks to disable togglers by setting their text to nil
.
2023-03-02 12:33:49 +13:00
7bf772799f
docs: fix typos in SignIn
component.
2023-03-02 12:33:49 +13:00
dependabot[bot]
80922c7ab9
chore(deps): bump phoenix_html from 3.3.0 to 3.3.1 ( #143 )
...
* chore(deps): bump phoenix_html from 3.3.0 to 3.3.1
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html ) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/phoenixframework/phoenix_html/releases )
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md )
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v3.3.0...v3.3.1 )
---
updated-dependencies:
- dependency-name: phoenix_html
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: fix router formatting.
---------
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-02-28 09:23:51 +13:00
Britton Broderick
75b2e62858
feat: Allow on_mount for reset_routes for browser testing ( #139 )
2023-02-27 09:22:40 +13:00
Zach Daniel
51d5251cd5
improvement: configurable otp app ( #135 )
2023-02-23 22:12:16 -05:00
James Harton
2a5789870e
feat(MagicLink): Add the UI for requesting a magic link. ( #121 )
2023-02-13 11:52:10 +13:00
b61e4c119c
docs: fix tiny but important issue in live session docs.
2023-02-13 10:45:50 +13:00
Axel Baudot
c320014930
improvement: Autofocus identity field in password component ( #105 )
...
Resolves https://github.com/team-alembic/ash_authentication_phoenix/issues/97
2023-02-07 08:09:03 -05:00
Zach Daniel
deb9be0ef5
improvement: ensure horizontal rules get a unique id ( #99 )
2023-01-31 11:12:37 +13:00
James Harton
32a6446add
improvement: improve default theme on dark mode. ( #87 )
2023-01-30 09:51:53 +13:00
cbb52d11cd
improvement: Add override introspection and tidy up docs.
...
You can now introspect all known customisable modules using `AshAuthentication.Phoenix.Overrides.Info.all_overridable_modules/0` - I tried to use this to generate a single doc containing all the overrides in the release, but ran into compile time vs runtime issues. This is at least a start.
2023-01-27 10:22:51 +13:00
5298adcb09
docs: include all components in component docs.
2023-01-27 09:42:08 +13:00
Zach Daniel
2533a19289
improvement: make ash_authentication_live_session
support opts ( #74 )
2023-01-19 18:07:54 -05:00
Zach Daniel
b8a5310b74
improvement: remove spark doc index ( #63 )
2023-01-18 02:14:14 -05:00
Zach Daniel
f8c26bba33
fix: set ash_authentication? context on forms ( #56 )
2023-01-13 11:27:06 +13:00
James Harton
dbc9fcc5a8
improvement: Add Github icon. ( #55 )
2023-01-12 19:16:23 +13:00
James Harton
d92d7853df
feat(LiveSession): Add ash_authentication_live_session
macro to router. ( #54 )
2023-01-12 15:54:23 +13:00