Commit graph

47 commits

Author SHA1 Message Date
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
Zach Daniel
9a5a41ef93
improvement: add some dark mode fixes (#51)
* improvement: add some dark mode fixes

likely more will be necessary, but these make the login page look better

* chore: fix warning about missing `dark_image_class` override.

Co-authored-by: James Harton <james@harton.nz>
2023-01-12 10:06:18 +13:00
Zach Daniel
cc55a47ab7
docs: add spark doc index (#43) 2023-01-09 15:56:11 -05:00
5a76ce5783 feat: Add Auth0 icon. 2022-12-16 15:36:51 +13:00
James Harton
432f056905
feat(PasswordReset): Add a generic password reset form (#37)
* feat(PasswordReset): Add a generic password reset form

* improvement(Input.submit): trim trailing "with password" from submit buttons.
2022-12-15 16:31:52 +13:00
James Harton
bb241ad95c
feat(Overrides): Move overrides from application environment to the sign_in_route macro. (#36)
This causes two small changes in behaviour:

  1. If you are currently customising the default components you can remove the configuration from your `config.exs` and instead move it to your router.  This allows you to have multiple sign-in routes with different "themes" should that be necessary.
  2. If you are using the components directly you need to pass the `overrides` array into each component.
2022-12-15 14:52:11 +13:00
James Harton
eddfba35ee
improvement(Components.Banner): Allow image, text and hrefs to be disabled with nil. (#35) 2022-12-15 07:43:07 +13:00
James Harton
1d3e4e4641
improvement!: Update to support AshAuthentication 3.x (#27) 2022-12-08 14:32:26 +13:00
James Harton
5cf8e0d8af
feat(OAuth2): Add OAuth2 link component. (#12) 2022-11-15 11:52:13 +13:00
8e0905d837 feat(Confirmation): Add confirmation support. 2022-11-10 15:06:17 +13:00
James Harton
47f191b42e
feat(PasswordReset): Add password reset support to the UI. (#10) 2022-11-03 16:07:25 +13:00
James Harton
e25a8bf397
feat: UI refresh. (#3)
* Redesign the overrides system to be easier to reason about.
* Redesign the password UI to be fancier.
2022-10-28 20:13:48 +13:00
c56a9b61aa chore(docs): fix small documentation mistake. 2022-10-26 16:48:25 +13:00
05ab4f438b feat: Add support for PasswordAuthentication. 2022-10-25 17:02:56 +13:00
63c0064fba chore: set up dev Phoenix server. 2022-10-25 11:23:05 +13:00
de3ecd611f chore: empty mix application. 2022-10-25 10:39:57 +13:00