Commit graph

85 commits

Author SHA1 Message Date
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