Commit graph

121 commits

Author SHA1 Message Date
dan-klasson
baade967ae
docs: Update docs to account for unconfirmed users (#775)
Ensure oauth users cannot login with unconfirmed account https://github.com/team-alembic/ash_authentication/issues/443
2024-09-02 08:58:52 +12:00
Zach Daniel
c4f570380f
fix: allow overriding strategy defaults (#766) 2024-08-18 18:16:28 -04:00
59d143583f
docs: Update DSL cheat sheets. 2024-08-19 09:01:06 +12:00
Sylvester
36afc2b083
docs: fix mistakes in the 'Confirmation' guide (#772) 2024-08-17 11:44:14 -04:00
Zach Daniel
652983be5a chore: fix errors from previous commit 2024-08-09 09:37:42 -04:00
dependabot[bot]
9b9f11c3f0
chore(deps): Bump the production-dependencies group across 1 directory with 4 updates (#755)
* chore(deps): Bump the production-dependencies group across 1 directory with 4 updates

Bumps the production-dependencies group with 2 updates in the / directory: [ash](https://github.com/ash-project/ash) and [ash_postgres](https://github.com/ash-project/ash_postgres).


Updates `ash` from 3.0.16 to 3.3.2
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.16...v3.3.2)

Updates `ash_postgres` from 2.0.12 to 2.1.17
- [Changelog](https://github.com/ash-project/ash_postgres/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_postgres/compare/v2.0.12...v2.1.17)

Updates `jason` from 1.4.3 to 1.4.4
- [Release notes](https://github.com/michalmuskala/jason/releases)
- [Changelog](https://github.com/michalmuskala/jason/blob/v1.4.4/CHANGELOG.md)
- [Commits](https://github.com/michalmuskala/jason/compare/v1.4.3...v1.4.4)

Updates `spark` from 2.2.7 to 2.2.11
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v2.2.7...v2.2.11)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: ash_postgres
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: jason
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix formatting, etc.

---------

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>
2024-08-05 15:19:10 +12:00
dan-klasson
f6c2ae6267
docs: Update Confirmation Tutorial docs (#741)
* Add missing Swoosh imports

* Cast email to string

* Fix token vars

* Add missing require_atomic

* Fix copy & paste naming mistake

* Change token to confirm for confirm new user url
2024-07-14 18:02:39 -04:00
dan-klasson
58ee13adaf
docs: Update oauth docs (#745) 2024-07-11 15:14:03 -04:00
Manoj Sonawane
5d4f20be17
docs: Update confirmation.md to add missing migration steps (#736)
* Update confirmation.md to add missing migration steps

* Update confirmation.md

---------

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-07-10 12:06:03 -04:00
Joseph Lozano
fa8dd219de
docs: Update Google OAuth Tutorial (#693) 2024-06-12 08:42:09 +12:00
Alan Heywood
52f6a44b0b
docs: fix typo in the custom strategy guide (#687) 2024-05-15 07:14:45 -04:00
b9a81770f3
docs: you have to explicitly turn on token generation. 2024-05-14 15:04:45 +12:00
Nicholas Moen
331261f05e docs: change 'Get Started' guide for Ash 3.0 compatibility
- Use newer `ash_authentication` version since old version had
dependency resolution errors

- Add `ash-functions` to the extensions list
  - Fixes compiler warning when the item is missing
2024-05-14 10:04:55 +12:00
Nicholas Moen
7d838980f5
docs: improve security in the 'Get Started' guide (#681)
* docs: improve security in the 'Get Started' guide

- Use a bang function to ensure that the `signing_secret` will raise an
exception if it is absent from the config (instead of just silently
evaluating to `nil`)

- Add config example for the secret signing token

- Add warning so that users are informed about the security implications
of using the basic configuration provided by the tutorial

- Rearrange the sections a bit so the `Token Generation` section comes
after the relevant code example

* docs: use correct function and modify secrets warning
2024-05-13 13:13:57 -04:00
Nicholas Moen
4abbf7c0f5
docs: add snippet to help enable policy authorizers (#683) 2024-05-13 12:38:07 -04:00
Sucipto
ca57510c90
doc: fix code example on docs (#676) 2024-05-12 10:09:45 -04:00
4e66a402fe
improvement: Only require tokens to be enabled when using a strategy which needs them. 2024-05-10 14:38:09 +12:00
bc1e590bca
docs: Documentation refresh for Ash 3.0. (#665)
* docs: Update README to new format.

* docs: tidy up docus some more.

* docs: More documentation tweaks.

* docs: Tweak readme.
2024-05-08 11:50:57 +12:00
Martin Schut
8721c01b4c
improvement(OIDC): Adjust dsl of OIDC reflect assent requirements (#538)
The OIDC implementation of assent requires the base_url to be set and ignores the different *_url attributes. At favours the returned configuration from the openid_configuration_uri. To not configure some unused attributes they're removed.
2024-04-12 09:22:58 +12:00
85700b37d8 feat!: Sign in tokens are enabled by default for the password strategy. 2024-04-10 12:08:54 +12:00
03b38bdcb4 feat!: Tokens are now enabled by default. 2024-04-10 12:08:54 +12:00
George
02eabdd155
docs: remove 'resources' dir from guides and fix grammar (#617) 2024-04-07 08:03:01 -04:00
f0075e2cd3
improvement!: Update to support Ash 3.0. (#599) 2024-03-28 14:44:23 +13:00
79bc19944c docs: Update DSL documentation. 2024-03-11 16:07:24 +13:00
Rebecca Le
b1861249b5
docs: Add policies to the sample User resource, so that data is protected by default (#579) 2024-02-29 23:27:10 -05:00
Rebecca Le
5023f381b5 docs: Mark the hashed_password field as private so it does not appear in any API responses
As the API extensions grab all public attributes by default - this is one that really should not be included!
2024-02-26 21:38:00 +13:00
StephanH90
be3e352271
docs: add notice about minimum ash_postgres version (#517) 2024-01-29 14:23:25 +13:00
Zach Daniel
ba44d56820 docs: update ex_doc, overhaul underlying doc structure
docs: make all DSL docs one liners (now required by spark)
2024-01-12 16:30:27 -05:00
dependabot[bot]
99c20cce76
chore(deps): Bump ash from 2.17.10 to 2.17.12 (#524)
* chore(deps): Bump ash from 2.17.10 to 2.17.12

Bumps [ash](https://github.com/ash-project/ash) from 2.17.10 to 2.17.12.
- [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.17.10...v2.17.12)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs: Update Spark DSL docs.

---------

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-12-15 09:07:32 +13:00
Rebecca Le
d360117c2a
docs: Fix broken link to Auth0 quick-start guide 2023-12-06 11:02:04 +08:00
Rebecca Le
739a544651
docs: Add new Testing guide
It's pretty bare-bones at the moment, but does close #476 by mentioning
that `bcrypt_elixir` can be tweaked for faster tests
2023-12-06 10:47:07 +08:00
7319d29442
docs: Reflect assent's site -> base_url change. 2023-11-22 10:58:06 +13:00
dependabot[bot]
408a28ccf4
chore(deps): Bump assent from 0.2.7 to 0.2.8 (#506)
* chore(deps): Bump assent from 0.2.7 to 0.2.8

Bumps [assent](https://github.com/pow-auth/assent) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/pow-auth/assent/releases)
- [Changelog](https://github.com/pow-auth/assent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pow-auth/assent/compare/v0.2.7...v0.2.8)

---
updated-dependencies:
- dependency-name: assent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(OAuth2): Reflect `assent` `site` -> `base_url` change.

I considered just rewriting it behind the scenes, but I think it's probably better in the long run if we just emit a deprecation.

---------

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-11-22 10:49:07 +13:00
Rebecca Le
03b3a75e4e
docs: Update Spark cheat sheets after updating Oauth2 module docs 2023-11-13 14:09:24 +08:00
James Harton
0f6e677e4b
docs: fix incorrect username in example. (#496)
Closes #460.
2023-10-30 09:54:33 +13:00
fd474af867
chore: update DSL cheat sheets. 2023-10-30 09:30:42 +13:00
Lars Wikman
a4f68eb9e0
feat: Add Google strategy (#474)
* feat: Add Google strategy

* fix: include Google strategy cheat sheet

* fix: Add documentation grouping for Google strategy

* chore: update formatter.

---------

Co-authored-by: James Harton <james@harton.nz>
2023-10-26 12:44:56 +13:00
Lars Wikman
8a623ff6b0
improvement: Change redirect_uri secret to be more flexible (#473)
Applies to both OAuth2 and OpenID Connect.

With this the developer can provide either the full
URL or the URL up to the AuthPlug path. If the suffix
is already there we won't add it again.

Should make it easier to get it on the first try.
2023-10-26 11:48:23 +13:00
Arthur Clemens
c214067a18
docs: Fix typos 2023-10-26 11:30:46 +13:00
github-actions
d5be39f1fd chore: release version v3.11.16 2023-10-25 22:19:16 +00:00
Samuel Blanco
5476653580
docs: adds guide for oauth2 strategy with google (#484) 2023-10-26 11:08:25 +13:00
dependabot[bot]
11564ef016
chore(deps): Bump spark from 1.1.46 to 1.1.47 (#478)
* chore(deps): Bump spark from 1.1.46 to 1.1.47

Bumps [spark](https://github.com/ash-project/spark) from 1.1.46 to 1.1.47.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v1.1.46...v1.1.47)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs: Update cheat sheets.

---------

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-10-20 08:26:59 +10:00
dependabot[bot]
98ee7a341b
chore(deps): bump spark from 1.1.43 to 1.1.44 (#466)
* chore(deps): bump spark from 1.1.43 to 1.1.44

Bumps [spark](https://github.com/ash-project/spark) from 1.1.43 to 1.1.44.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v1.1.43...v1.1.44)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs: Update DSL cheat sheets.

---------

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-10-12 09:49:40 +13:00
scubass
b986e3c10e
docs: Update getting-started-with-authentication.md (#455)
add postgres extension
2023-10-06 10:08:21 +13:00
Zach Daniel
bb9b3d7655 chore: analytics in hexdocs
chore: update cheat sheets
2023-10-02 08:38:58 -04:00
De Wet Blomerus
857aaa3f1e
Fail fast when misconfigured 🧨 (#442) 2023-09-28 10:27:22 -04:00
De Wet Blomerus
04a773ec27
docs: Clarify starting position 🏎️ (#441)
docs: Match the identity from the AshAuthenticationPhoenix guide 
2023-09-28 10:26:42 -04:00
Zach Daniel
581ea6ce07 docs: generate cheat sheets 2023-09-26 23:42:46 -04:00
Zach Daniel
c8b13f8aac docs: update spark/ex_doc for improved docs 2023-09-26 23:26:44 -04:00
github-actions
5f08be13e2 chore: release version v3.11.15 2023-09-22 11:42:24 +00:00