Philip Korsholm
efd9204e26
Feat(medusa-test-utils, authentication, customer, cart, payment, pricing, product, promotion): Add initModule util ( #6200 )
...
* use initModules instead of initialize when runnning auth module integration tests
* rm unused module-config
* correct db schema fix
* update authentication integration tests w/ initModule
* update cart integration tests w/ initModule
* update customer integration tests w/ initModule
* update payment integration tests w/ initModule
* update pricing integration tests w/ initModule
* update product integration tests w/ initModule
* update promotion integration tests w/ initModule
* add initModule to more product tests and return medusaApp from initModule
* align moduleOptions naming
* update dependencies
2024-01-25 10:37:38 +08:00
Philip Korsholm
b3d013940f
feat(authentication): Google authentication provider ( #6104 )
...
* init
* add entity_id and update provider
* initial implementation
* update lockfile
* fix conflicts
* add config variables
* update types
* refactor google provider
* re-order methods
* fix pr feedback p. 1
* add initial type and update callback authorization
* add google provider to integration test
* fix feedback
* initial implementation (#6171 )
* initial implementation
* remove oauth lib
* move abstract authentication provider
* shuffle files around
* Update packages/authentication/src/migrations/Migration20240122041959.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* call verify with token
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-01-24 09:57:58 +08:00
Carlos R. L. Rodrigues
d85fee42ee
chore: use loaded module reference ( #5763 )
2024-01-23 08:31:02 -03:00
Philip Korsholm
24bb26b81a
Feat(authentication): username password provider ( #6052 )
2024-01-23 09:04:22 +00:00
Adrien de Peretti
5e655dd59b
chore: Hide repository creation if they are not custom + add upsert support by default ( #6127 )
2024-01-19 15:09:38 +01:00
Adrien de Peretti
130c641e5c
chore: Abstract module services ( #6087 )
...
**What**
Create a service abstraction for the modules internal service layer. The objective is to reduce the effort of building new modules when the logic is the same or otherwise allow to override the default behavior.
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-01-18 09:20:08 +00:00
Adrien de Peretti
72bc52231c
chore(utils): Update base repository to infer primary keys and support composite ( #6062 )
2024-01-14 17:13:25 +01:00
Adrien de Peretti
b6ac768698
chore: abstract the modules repository ( #6035 )
...
**What**
Reduce the work effort to create repositories when building new modules by abstracting the most common cases into the base class default implementation returned by a factory
- [x] Migrate all modules
Co-authored-by: Riqwan Thamir <5105988+riqwan@users.noreply.github.com >
2024-01-10 13:12:02 +00:00
Philip Korsholm
f065581736
Feat(authentication): Load auth providers ( #6023 )
...
* initial providers loader implementation
* registerAdd providers
* remove comment
* remove comment
2024-01-09 10:02:02 +01:00
Philip Korsholm
479a8b82a9
feat(authentication, types): Create authentication entities and services ( #5979 )
...
* create authentication entities
* ensure hashes are not returned
* re-add integration test argument
* update filterableprops
* update type
* pr feedback
* update serialization
* move finding existing entities and validation to service layer
* update types
* update models
* update user model
* pr feedback
* fix build
* pr feedback
* update integration test fixtures
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-01-08 09:50:12 +01:00
Philip Korsholm
d16d10619d
Feat(medusa-test-utils, utils, pricing, product, link-modules): upgrade mikro orm version to latest ( #5985 )
...
* update mikro-orm version
* add changeset
* update product tests
* add optional number serializer util
* upgrade cart mikro-orm versions
* clean up test
2024-01-02 17:11:55 +01:00
Philip Korsholm
6d1e3cc028
feat(types,module-sdk): setup authentication module skeleton ( #5943 )
...
**What**
- add authentication module skeleton
2023-12-21 06:56:20 +00:00