@daffodil/auth 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/daffodil-auth.d.ts +5 -0
- package/driver/daffodil-auth-driver.d.ts +5 -0
- package/driver/errors/authentication-failed.d.ts +6 -0
- package/driver/errors/codes.enum.d.ts +6 -0
- package/driver/errors/invalid-api-response.d.ts +6 -0
- package/driver/errors/map.d.ts +13 -0
- package/driver/errors/public_api.d.ts +6 -0
- package/driver/errors/registration-failed.d.ts +9 -0
- package/driver/errors/unauthorized.d.ts +6 -0
- package/driver/in-memory/backend/auth.service.d.ts +22 -0
- package/driver/in-memory/daffodil-auth-driver-in-memory.d.ts +5 -0
- package/driver/in-memory/drivers/auth/auth.service.d.ts +15 -0
- package/driver/in-memory/drivers/auth-driver.module.d.ts +9 -0
- package/driver/in-memory/drivers/login/login.service.d.ts +17 -0
- package/driver/in-memory/drivers/public_api.d.ts +4 -0
- package/driver/in-memory/drivers/register/register.service.d.ts +19 -0
- package/driver/in-memory/drivers/reset-password/service.d.ts +20 -0
- package/driver/in-memory/index.d.ts +1 -0
- package/driver/in-memory/models/db-customer.type.d.ts +8 -0
- package/driver/in-memory/package.json +10 -0
- package/driver/in-memory/public_api.d.ts +2 -0
- package/driver/index.d.ts +1 -0
- package/driver/interfaces/auth-service.interface.d.ts +9 -0
- package/driver/interfaces/login-service.interface.d.ts +16 -0
- package/driver/interfaces/public_api.d.ts +4 -0
- package/driver/interfaces/register-service.interface.d.ts +19 -0
- package/driver/interfaces/reset-password-service.interface.d.ts +18 -0
- package/driver/magento/apollo-bearer-token-link-generator.d.ts +16 -0
- package/driver/magento/auth-driver.module.d.ts +9 -0
- package/driver/magento/auth.service.d.ts +14 -0
- package/driver/magento/daffodil-auth-driver-magento.d.ts +5 -0
- package/driver/magento/errors/codes.d.ts +5 -0
- package/driver/magento/errors/map.d.ts +2 -0
- package/driver/magento/errors/transform.d.ts +1 -0
- package/driver/magento/index.d.ts +1 -0
- package/driver/magento/login.service.d.ts +18 -0
- package/driver/magento/models/public_api.d.ts +4 -0
- package/driver/magento/models/response/auth.d.ts +3 -0
- package/driver/magento/models/response/register.type.d.ts +7 -0
- package/driver/magento/models/response/reset-password.type.d.ts +3 -0
- package/driver/magento/models/response/send-reset-email.type.d.ts +3 -0
- package/driver/magento/package.json +10 -0
- package/driver/magento/public_api.d.ts +8 -0
- package/driver/magento/queries/check-token.d.ts +1 -0
- package/driver/magento/queries/create-customer.d.ts +1 -0
- package/driver/magento/queries/generate-token.d.ts +1 -0
- package/driver/magento/queries/public_api.d.ts +7 -0
- package/driver/magento/queries/reset-password.d.ts +1 -0
- package/driver/magento/queries/responses/check-token-response.d.ts +5 -0
- package/driver/magento/queries/responses/generate-token-response.d.ts +4 -0
- package/driver/magento/queries/responses/public_api.d.ts +3 -0
- package/driver/magento/queries/responses/revoke-customer-token-response.d.ts +5 -0
- package/driver/magento/queries/revoke-customer-token.d.ts +1 -0
- package/driver/magento/queries/send-reset-email.d.ts +1 -0
- package/driver/magento/register.service.d.ts +18 -0
- package/driver/magento/reset-password.service.d.ts +19 -0
- package/driver/magento/transforms/auth-transformer.service.d.ts +16 -0
- package/driver/magento/validators/check-token.d.ts +3 -0
- package/driver/magento/validators/generate-token.d.ts +3 -0
- package/driver/magento/validators/public_api.d.ts +5 -0
- package/driver/magento/validators/reset-password.d.ts +3 -0
- package/driver/magento/validators/revoke-token.d.ts +3 -0
- package/driver/magento/validators/send-reset-email.d.ts +3 -0
- package/driver/package.json +10 -0
- package/driver/public_api.d.ts +2 -0
- package/driver/testing/daffodil-auth-driver-testing.d.ts +5 -0
- package/driver/testing/drivers/auth/auth.service.d.ts +11 -0
- package/driver/testing/drivers/auth-driver.module.d.ts +9 -0
- package/driver/testing/drivers/login/login.service.d.ts +16 -0
- package/driver/testing/drivers/public_api.d.ts +4 -0
- package/driver/testing/drivers/register/register.service.d.ts +16 -0
- package/driver/testing/drivers/reset-password/service.d.ts +17 -0
- package/driver/testing/index.d.ts +1 -0
- package/driver/testing/package.json +10 -0
- package/driver/testing/public_api.d.ts +1 -0
- package/esm2020/daffodil-auth.mjs +5 -0
- package/esm2020/driver/daffodil-auth-driver.mjs +5 -0
- package/esm2020/driver/errors/authentication-failed.mjs +10 -0
- package/esm2020/driver/errors/codes.enum.mjs +8 -0
- package/esm2020/driver/errors/invalid-api-response.mjs +10 -0
- package/esm2020/driver/errors/map.mjs +15 -0
- package/esm2020/driver/errors/public_api.mjs +7 -0
- package/esm2020/driver/errors/registration-failed.mjs +13 -0
- package/esm2020/driver/errors/unauthorized.mjs +10 -0
- package/esm2020/driver/in-memory/backend/auth.service.mjs +109 -0
- package/esm2020/driver/in-memory/daffodil-auth-driver-in-memory.mjs +5 -0
- package/esm2020/driver/in-memory/drivers/auth/auth.service.mjs +26 -0
- package/esm2020/driver/in-memory/drivers/auth-driver.module.mjs +47 -0
- package/esm2020/driver/in-memory/drivers/login/login.service.mjs +30 -0
- package/esm2020/driver/in-memory/drivers/public_api.mjs +5 -0
- package/esm2020/driver/in-memory/drivers/register/register.service.mjs +32 -0
- package/esm2020/driver/in-memory/drivers/reset-password/service.mjs +35 -0
- package/esm2020/driver/in-memory/index.mjs +2 -0
- package/esm2020/driver/in-memory/models/db-customer.type.mjs +2 -0
- package/esm2020/driver/in-memory/public_api.mjs +3 -0
- package/esm2020/driver/index.mjs +2 -0
- package/esm2020/driver/interfaces/auth-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/login-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/public_api.mjs +5 -0
- package/esm2020/driver/interfaces/register-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/reset-password-service.interface.mjs +3 -0
- package/esm2020/driver/magento/apollo-bearer-token-link-generator.mjs +38 -0
- package/esm2020/driver/magento/auth-driver.module.mjs +47 -0
- package/esm2020/driver/magento/auth.service.mjs +29 -0
- package/esm2020/driver/magento/daffodil-auth-driver-magento.mjs +5 -0
- package/esm2020/driver/magento/errors/codes.mjs +7 -0
- package/esm2020/driver/magento/errors/map.mjs +9 -0
- package/esm2020/driver/magento/errors/transform.mjs +4 -0
- package/esm2020/driver/magento/index.mjs +2 -0
- package/esm2020/driver/magento/login.service.mjs +41 -0
- package/esm2020/driver/magento/models/public_api.mjs +2 -0
- package/esm2020/driver/magento/models/response/auth.mjs +2 -0
- package/esm2020/driver/magento/models/response/register.type.mjs +2 -0
- package/esm2020/driver/magento/models/response/reset-password.type.mjs +2 -0
- package/esm2020/driver/magento/models/response/send-reset-email.type.mjs +2 -0
- package/esm2020/driver/magento/public_api.mjs +9 -0
- package/esm2020/driver/magento/queries/check-token.mjs +9 -0
- package/esm2020/driver/magento/queries/create-customer.mjs +21 -0
- package/esm2020/driver/magento/queries/generate-token.mjs +12 -0
- package/esm2020/driver/magento/queries/public_api.mjs +8 -0
- package/esm2020/driver/magento/queries/reset-password.mjs +11 -0
- package/esm2020/driver/magento/queries/responses/check-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/generate-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/public_api.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/revoke-customer-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/revoke-customer-token.mjs +9 -0
- package/esm2020/driver/magento/queries/send-reset-email.mjs +9 -0
- package/esm2020/driver/magento/register.service.mjs +48 -0
- package/esm2020/driver/magento/reset-password.service.mjs +50 -0
- package/esm2020/driver/magento/transforms/auth-transformer.service.mjs +26 -0
- package/esm2020/driver/magento/validators/check-token.mjs +10 -0
- package/esm2020/driver/magento/validators/generate-token.mjs +10 -0
- package/esm2020/driver/magento/validators/public_api.mjs +6 -0
- package/esm2020/driver/magento/validators/reset-password.mjs +10 -0
- package/esm2020/driver/magento/validators/revoke-token.mjs +10 -0
- package/esm2020/driver/magento/validators/send-reset-email.mjs +10 -0
- package/esm2020/driver/public_api.mjs +3 -0
- package/esm2020/driver/testing/daffodil-auth-driver-testing.mjs +5 -0
- package/esm2020/driver/testing/drivers/auth/auth.service.mjs +20 -0
- package/esm2020/driver/testing/drivers/auth-driver.module.mjs +47 -0
- package/esm2020/driver/testing/drivers/login/login.service.mjs +28 -0
- package/esm2020/driver/testing/drivers/public_api.mjs +5 -0
- package/esm2020/driver/testing/drivers/register/register.service.mjs +28 -0
- package/esm2020/driver/testing/drivers/reset-password/service.mjs +31 -0
- package/esm2020/driver/testing/index.mjs +2 -0
- package/esm2020/driver/testing/public_api.mjs +2 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/injection-tokens/error-matcher.token.mjs +8 -0
- package/esm2020/injection-tokens/public_api.mjs +2 -0
- package/esm2020/models/account-registration.mjs +2 -0
- package/esm2020/models/auth-token.mjs +2 -0
- package/esm2020/models/login-info.mjs +2 -0
- package/esm2020/models/public_api.mjs +2 -0
- package/esm2020/models/reset-password-info.type.mjs +2 -0
- package/esm2020/public_api.mjs +4 -0
- package/esm2020/routing/config/default.mjs +4 -0
- package/esm2020/routing/config/interface.mjs +2 -0
- package/esm2020/routing/config/public_api.mjs +3 -0
- package/esm2020/routing/config/token.mjs +9 -0
- package/esm2020/routing/daffodil-auth-routing.mjs +5 -0
- package/esm2020/routing/guards/guest-only-guard-redirect.token.mjs +3 -0
- package/esm2020/routing/guards/guest-only.guard.mjs +42 -0
- package/esm2020/routing/guards/member-only-guard-redirect.token.mjs +3 -0
- package/esm2020/routing/guards/member-only.guard.mjs +42 -0
- package/esm2020/routing/guards/public_api.mjs +6 -0
- package/esm2020/routing/guards/reset-password.guard.mjs +32 -0
- package/esm2020/routing/index.mjs +2 -0
- package/esm2020/routing/module.mjs +35 -0
- package/esm2020/routing/public_api.mjs +4 -0
- package/esm2020/state/actions/auth.actions.mjs +75 -0
- package/esm2020/state/actions/login.actions.mjs +70 -0
- package/esm2020/state/actions/public_api.mjs +5 -0
- package/esm2020/state/actions/register.actions.mjs +41 -0
- package/esm2020/state/actions/reset-password.actions.mjs +79 -0
- package/esm2020/state/auth-state.module.mjs +48 -0
- package/esm2020/state/config/default.mjs +5 -0
- package/esm2020/state/config/public_api.mjs +3 -0
- package/esm2020/state/config/token.mjs +8 -0
- package/esm2020/state/config/type.mjs +2 -0
- package/esm2020/state/daffodil-auth-state.mjs +5 -0
- package/esm2020/state/effects/auth.effects.mjs +45 -0
- package/esm2020/state/effects/login.effects.mjs +37 -0
- package/esm2020/state/effects/register.effects.mjs +31 -0
- package/esm2020/state/effects/reset-password.effects.mjs +32 -0
- package/esm2020/state/facades/auth/facade.interface.mjs +2 -0
- package/esm2020/state/facades/auth/facade.mjs +28 -0
- package/esm2020/state/facades/auth/public_api.mjs +2 -0
- package/esm2020/state/facades/login/facade.interface.mjs +2 -0
- package/esm2020/state/facades/login/facade.mjs +28 -0
- package/esm2020/state/facades/login/public_api.mjs +2 -0
- package/esm2020/state/facades/public_api.mjs +5 -0
- package/esm2020/state/facades/register/facade.interface.mjs +2 -0
- package/esm2020/state/facades/register/facade.mjs +28 -0
- package/esm2020/state/facades/register/public_api.mjs +2 -0
- package/esm2020/state/facades/reset-password/facade.interface.mjs +2 -0
- package/esm2020/state/facades/reset-password/facade.mjs +29 -0
- package/esm2020/state/facades/reset-password/public_api.mjs +2 -0
- package/esm2020/state/index.mjs +2 -0
- package/esm2020/state/public_api.mjs +7 -0
- package/esm2020/state/reducers/auth/auth-initial-state.mjs +5 -0
- package/esm2020/state/reducers/auth/auth-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/auth/auth.reducer.mjs +25 -0
- package/esm2020/state/reducers/auth/public_api.mjs +3 -0
- package/esm2020/state/reducers/auth-feature-state.interface.mjs +2 -0
- package/esm2020/state/reducers/auth-reducers.mjs +11 -0
- package/esm2020/state/reducers/auth-store-feature-key.mjs +2 -0
- package/esm2020/state/reducers/login/login-initial-state.mjs +5 -0
- package/esm2020/state/reducers/login/login-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/login/login.reducer.mjs +28 -0
- package/esm2020/state/reducers/login/public_api.mjs +3 -0
- package/esm2020/state/reducers/public_api.mjs +7 -0
- package/esm2020/state/reducers/register/public_api.mjs +3 -0
- package/esm2020/state/reducers/register/register-initial-state.mjs +5 -0
- package/esm2020/state/reducers/register/register-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/register/register.reducer.mjs +25 -0
- package/esm2020/state/reducers/reset-password/initial-state.mjs +6 -0
- package/esm2020/state/reducers/reset-password/public_api.mjs +3 -0
- package/esm2020/state/reducers/reset-password/reducer.mjs +33 -0
- package/esm2020/state/reducers/reset-password/state.interface.mjs +2 -0
- package/esm2020/state/selectors/auth/auth.selector.mjs +17 -0
- package/esm2020/state/selectors/auth-all.selector.mjs +16 -0
- package/esm2020/state/selectors/auth-feature.selector.mjs +10 -0
- package/esm2020/state/selectors/login/login.selector.mjs +17 -0
- package/esm2020/state/selectors/public_api.mjs +2 -0
- package/esm2020/state/selectors/register/register.selector.mjs +17 -0
- package/esm2020/state/selectors/reset-password/selector.mjs +19 -0
- package/esm2020/state/testing/auth-testing.module.mjs +29 -0
- package/esm2020/state/testing/daffodil-auth-state-testing.mjs +5 -0
- package/esm2020/state/testing/index.mjs +2 -0
- package/esm2020/state/testing/mock-auth-facade.mjs +21 -0
- package/esm2020/state/testing/mock-login-facade.mjs +21 -0
- package/esm2020/state/testing/mock-register-facade.mjs +21 -0
- package/esm2020/state/testing/mock-reset-password-facade.mjs +22 -0
- package/esm2020/state/testing/public_api.mjs +6 -0
- package/esm2020/storage/auth-storage.service.mjs +30 -0
- package/esm2020/testing/daffodil-auth-testing.mjs +5 -0
- package/esm2020/testing/factories/account-registration.factory.mjs +25 -0
- package/esm2020/testing/factories/auth-token.factory.mjs +24 -0
- package/esm2020/testing/factories/public_api.mjs +4 -0
- package/esm2020/testing/factories/reset-password-info.factory.mjs +26 -0
- package/esm2020/testing/index.mjs +2 -0
- package/esm2020/testing/public_api.mjs +2 -0
- package/fesm2015/daffodil-auth-driver-in-memory.mjs +258 -0
- package/fesm2015/daffodil-auth-driver-in-memory.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver-magento.mjs +363 -0
- package/fesm2015/daffodil-auth-driver-magento.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver-testing.mjs +141 -0
- package/fesm2015/daffodil-auth-driver-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver.mjs +70 -0
- package/fesm2015/daffodil-auth-driver.mjs.map +1 -0
- package/fesm2015/daffodil-auth-routing.mjs +158 -0
- package/fesm2015/daffodil-auth-routing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-state-testing.mjs +106 -0
- package/fesm2015/daffodil-auth-state-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-state.mjs +700 -0
- package/fesm2015/daffodil-auth-state.mjs.map +1 -0
- package/fesm2015/daffodil-auth-testing.mjs +74 -0
- package/fesm2015/daffodil-auth-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth.mjs +46 -0
- package/fesm2015/daffodil-auth.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-in-memory.mjs +258 -0
- package/fesm2020/daffodil-auth-driver-in-memory.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-magento.mjs +366 -0
- package/fesm2020/daffodil-auth-driver-magento.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-testing.mjs +141 -0
- package/fesm2020/daffodil-auth-driver-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver.mjs +70 -0
- package/fesm2020/daffodil-auth-driver.mjs.map +1 -0
- package/fesm2020/daffodil-auth-routing.mjs +152 -0
- package/fesm2020/daffodil-auth-routing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-state-testing.mjs +106 -0
- package/fesm2020/daffodil-auth-state-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-state.mjs +741 -0
- package/fesm2020/daffodil-auth-state.mjs.map +1 -0
- package/fesm2020/daffodil-auth-testing.mjs +74 -0
- package/fesm2020/daffodil-auth-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth.mjs +44 -0
- package/fesm2020/daffodil-auth.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/injection-tokens/error-matcher.token.d.ts +7 -0
- package/injection-tokens/public_api.d.ts +1 -0
- package/models/account-registration.d.ts +2 -0
- package/models/auth-token.d.ts +3 -0
- package/models/login-info.d.ts +4 -0
- package/models/public_api.d.ts +4 -0
- package/models/reset-password-info.type.d.ts +14 -0
- package/package.json +115 -0
- package/public_api.d.ts +3 -0
- package/routing/config/default.d.ts +2 -0
- package/routing/config/interface.d.ts +9 -0
- package/routing/config/public_api.d.ts +3 -0
- package/routing/config/token.d.ts +6 -0
- package/routing/daffodil-auth-routing.d.ts +5 -0
- package/routing/guards/guest-only-guard-redirect.token.d.ts +2 -0
- package/routing/guards/guest-only.guard.d.ts +16 -0
- package/routing/guards/member-only-guard-redirect.token.d.ts +2 -0
- package/routing/guards/member-only.guard.d.ts +16 -0
- package/routing/guards/public_api.d.ts +5 -0
- package/routing/guards/reset-password.guard.d.ts +13 -0
- package/routing/index.d.ts +1 -0
- package/routing/module.d.ts +9 -0
- package/routing/package.json +10 -0
- package/routing/public_api.d.ts +3 -0
- package/state/actions/auth.actions.d.ts +62 -0
- package/state/actions/login.actions.d.ts +64 -0
- package/state/actions/public_api.d.ts +4 -0
- package/state/actions/register.actions.d.ts +40 -0
- package/state/actions/reset-password.actions.d.ts +72 -0
- package/state/auth-state.module.d.ts +11 -0
- package/state/config/default.d.ts +2 -0
- package/state/config/public_api.d.ts +3 -0
- package/state/config/token.d.ts +4 -0
- package/state/config/type.d.ts +7 -0
- package/state/daffodil-auth-state.d.ts +5 -0
- package/state/effects/auth.effects.d.ts +21 -0
- package/state/effects/login.effects.d.ts +19 -0
- package/state/effects/register.effects.d.ts +16 -0
- package/state/effects/reset-password.effects.d.ts +18 -0
- package/state/facades/auth/facade.d.ts +19 -0
- package/state/facades/auth/facade.interface.d.ts +8 -0
- package/state/facades/auth/public_api.d.ts +2 -0
- package/state/facades/login/facade.d.ts +18 -0
- package/state/facades/login/facade.interface.d.ts +8 -0
- package/state/facades/login/public_api.d.ts +2 -0
- package/state/facades/public_api.d.ts +4 -0
- package/state/facades/register/facade.d.ts +18 -0
- package/state/facades/register/facade.interface.d.ts +8 -0
- package/state/facades/register/public_api.d.ts +2 -0
- package/state/facades/reset-password/facade.d.ts +20 -0
- package/state/facades/reset-password/facade.interface.d.ts +10 -0
- package/state/facades/reset-password/public_api.d.ts +2 -0
- package/state/index.d.ts +1 -0
- package/state/package.json +10 -0
- package/state/public_api.d.ts +6 -0
- package/state/reducers/auth/auth-initial-state.d.ts +2 -0
- package/state/reducers/auth/auth-reducer-state.interface.d.ts +5 -0
- package/state/reducers/auth/auth.reducer.d.ts +3 -0
- package/state/reducers/auth/public_api.d.ts +3 -0
- package/state/reducers/auth-feature-state.interface.d.ts +14 -0
- package/state/reducers/auth-reducers.d.ts +3 -0
- package/state/reducers/auth-store-feature-key.d.ts +1 -0
- package/state/reducers/login/login-initial-state.d.ts +2 -0
- package/state/reducers/login/login-reducer-state.interface.d.ts +5 -0
- package/state/reducers/login/login.reducer.d.ts +4 -0
- package/state/reducers/login/public_api.d.ts +3 -0
- package/state/reducers/public_api.d.ts +7 -0
- package/state/reducers/register/public_api.d.ts +3 -0
- package/state/reducers/register/register-initial-state.d.ts +2 -0
- package/state/reducers/register/register-reducer-state.interface.d.ts +5 -0
- package/state/reducers/register/register.reducer.d.ts +4 -0
- package/state/reducers/reset-password/initial-state.d.ts +2 -0
- package/state/reducers/reset-password/public_api.d.ts +3 -0
- package/state/reducers/reset-password/reducer.d.ts +4 -0
- package/state/reducers/reset-password/state.interface.d.ts +7 -0
- package/state/selectors/auth/auth.selector.d.ts +10 -0
- package/state/selectors/auth-all.selector.d.ts +10 -0
- package/state/selectors/auth-feature.selector.d.ts +6 -0
- package/state/selectors/login/login.selector.d.ts +9 -0
- package/state/selectors/public_api.d.ts +1 -0
- package/state/selectors/register/register.selector.d.ts +10 -0
- package/state/selectors/reset-password/selector.d.ts +11 -0
- package/state/testing/auth-testing.module.d.ts +6 -0
- package/state/testing/daffodil-auth-state-testing.d.ts +5 -0
- package/state/testing/index.d.ts +1 -0
- package/state/testing/mock-auth-facade.d.ts +15 -0
- package/state/testing/mock-login-facade.d.ts +15 -0
- package/state/testing/mock-register-facade.d.ts +15 -0
- package/state/testing/mock-reset-password-facade.d.ts +16 -0
- package/state/testing/package.json +10 -0
- package/state/testing/public_api.d.ts +5 -0
- package/storage/auth-storage.service.d.ts +12 -0
- package/testing/daffodil-auth-testing.d.ts +5 -0
- package/testing/factories/account-registration.factory.d.ts +12 -0
- package/testing/factories/auth-token.factory.d.ts +11 -0
- package/testing/factories/public_api.d.ts +3 -0
- package/testing/factories/reset-password-info.factory.d.ts +13 -0
- package/testing/index.d.ts +1 -0
- package/testing/package.json +10 -0
- package/testing/public_api.d.ts +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { DaffAuthFacade, DaffAuthLoginFacade, DaffAuthRegisterFacade, DaffAuthResetPasswordFacade, } from '@daffodil/auth/state';
|
|
3
|
+
import { MockDaffAuthFacade } from './mock-auth-facade';
|
|
4
|
+
import { MockDaffAuthLoginFacade } from './mock-login-facade';
|
|
5
|
+
import { MockDaffAuthRegisterFacade } from './mock-register-facade';
|
|
6
|
+
import { MockDaffAuthResetPasswordFacade } from './mock-reset-password-facade';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class DaffAuthTestingModule {
|
|
9
|
+
}
|
|
10
|
+
/** @nocollapse */ DaffAuthTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
/** @nocollapse */ DaffAuthTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTestingModule });
|
|
12
|
+
/** @nocollapse */ DaffAuthTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTestingModule, providers: [
|
|
13
|
+
{ provide: DaffAuthFacade, useExisting: MockDaffAuthFacade },
|
|
14
|
+
{ provide: DaffAuthLoginFacade, useExisting: MockDaffAuthLoginFacade },
|
|
15
|
+
{ provide: DaffAuthRegisterFacade, useExisting: MockDaffAuthRegisterFacade },
|
|
16
|
+
{ provide: DaffAuthResetPasswordFacade, useExisting: MockDaffAuthResetPasswordFacade },
|
|
17
|
+
] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTestingModule, decorators: [{
|
|
19
|
+
type: NgModule,
|
|
20
|
+
args: [{
|
|
21
|
+
providers: [
|
|
22
|
+
{ provide: DaffAuthFacade, useExisting: MockDaffAuthFacade },
|
|
23
|
+
{ provide: DaffAuthLoginFacade, useExisting: MockDaffAuthLoginFacade },
|
|
24
|
+
{ provide: DaffAuthRegisterFacade, useExisting: MockDaffAuthRegisterFacade },
|
|
25
|
+
{ provide: DaffAuthResetPasswordFacade, useExisting: MockDaffAuthResetPasswordFacade },
|
|
26
|
+
],
|
|
27
|
+
}]
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC10ZXN0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXV0aC9zdGF0ZS90ZXN0aW5nL3NyYy9hdXRoLXRlc3RpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUNMLGNBQWMsRUFDZCxtQkFBbUIsRUFDbkIsc0JBQXNCLEVB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dGluZzogTW9ja0RhZmZBdXRoUmVzZXRQYXNzd29yZEZhY2FkZSB9LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmQXV0aFRlc3RpbmdNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFmZm9kaWwtYXV0aC1zdGF0ZS10ZXN0aW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9hdXRoL3N0YXRlL3Rlc3Rpbmcvc3JjL2RhZmZvZGlsLWF1dGgtc3RhdGUtdGVzdGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './public_api';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2F1dGgvc3RhdGUvdGVzdGluZy9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @inheritdoc
|
|
6
|
+
*/
|
|
7
|
+
export class MockDaffAuthFacade {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.loading$ = new BehaviorSubject(false);
|
|
10
|
+
this.errors$ = new BehaviorSubject([]);
|
|
11
|
+
}
|
|
12
|
+
dispatch(action) { }
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
/** @nocollapse */ MockDaffAuthFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
/** @nocollapse */ MockDaffAuthFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthFacade, providedIn: 'root' });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthFacade, decorators: [{
|
|
18
|
+
type: Injectable,
|
|
19
|
+
args: [{ providedIn: 'root' }]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1hdXRoLWZhY2FkZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXV0aC9zdGF0ZS90ZXN0aW5nL3NyYy9tb2NrLWF1dGgtZmFjYWRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFLdkM7O0dBRUc7QUFFSCxNQUFNLE9BQ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|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @inheritdoc
|
|
6
|
+
*/
|
|
7
|
+
export class MockDaffAuthLoginFacade {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.loading$ = new BehaviorSubject(false);
|
|
10
|
+
this.errors$ = new BehaviorSubject([]);
|
|
11
|
+
}
|
|
12
|
+
dispatch(action) { }
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
/** @nocollapse */ MockDaffAuthLoginFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthLoginFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
/** @nocollapse */ MockDaffAuthLoginFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthLoginFacade, providedIn: 'root' });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthLoginFacade, decorators: [{
|
|
18
|
+
type: Injectable,
|
|
19
|
+
args: [{ providedIn: 'root' }]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1sb2dpbi1mYWNhZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2F1dGgvc3RhdGUvdGVzdGluZy9zcmMvbW9jay1sb2dpbi1mYWNhZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0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RXJyb3JbXT4oW10pO1xuXG4gIGRpc3BhdGNoKGFjdGlvbjogQWN0aW9uKSB7fTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @inheritdoc
|
|
6
|
+
*/
|
|
7
|
+
export class MockDaffAuthRegisterFacade {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.loading$ = new BehaviorSubject(false);
|
|
10
|
+
this.errors$ = new BehaviorSubject([]);
|
|
11
|
+
}
|
|
12
|
+
dispatch(action) { }
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
/** @nocollapse */ MockDaffAuthRegisterFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthRegisterFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
/** @nocollapse */ MockDaffAuthRegisterFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthRegisterFacade, providedIn: 'root' });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthRegisterFacade, decorators: [{
|
|
18
|
+
type: Injectable,
|
|
19
|
+
args: [{ providedIn: 'root' }]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1yZWdpc3Rlci1mYWNhZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2F1dGgvc3RhdGUvdGVzdGluZy9zcmMvbW9jay1yZWdpc3Rlci1mYWNhZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFB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SBuZXcgQmVoYXZpb3JTdWJqZWN0PGJvb2xlYW4+KGZhbHNlKTtcbiAgZXJyb3JzJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8RGFmZlN0YXRlRXJyb3JbXT4oW10pO1xuXG4gIGRpc3BhdGNoKGFjdGlvbjogQWN0aW9uKSB7fTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @inheritdoc
|
|
6
|
+
*/
|
|
7
|
+
export class MockDaffAuthResetPasswordFacade {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.token$ = new BehaviorSubject('');
|
|
10
|
+
this.loading$ = new BehaviorSubject(false);
|
|
11
|
+
this.errors$ = new BehaviorSubject([]);
|
|
12
|
+
}
|
|
13
|
+
dispatch(action) { }
|
|
14
|
+
;
|
|
15
|
+
}
|
|
16
|
+
/** @nocollapse */ MockDaffAuthResetPasswordFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthResetPasswordFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
/** @nocollapse */ MockDaffAuthResetPasswordFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthResetPasswordFacade, providedIn: 'root' });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffAuthResetPasswordFacade, decorators: [{
|
|
19
|
+
type: Injectable,
|
|
20
|
+
args: [{ providedIn: 'root' }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1yZXNldC1wYXNzd29yZC1mYWNhZGUuanMiL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N0YXRlJztcblxuLyoqXG4gKiBAaW5oZXJpdGRvY1xuICovXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9KVxuZXhwb3J0IGNsYXNzIE1vY2tEYWZmQXV0aFJlc2V0UGFzc3dvcmRGYWNhZGUgaW1wbGVtZW50cyBEYWZmQXV0aFJlc2V0UGFzc3dvcmRGYWNhZGVJbnRlcmZhY2Uge1xuICB0b2tlbiQgPSBuZXcgQmVoYXZpb3JTdWJqZWN0PHN0cmluZz4oJycpO1xuICBsb2FkaW5nJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8Ym9vbGVhbj4oZmFsc2UpO1xuICBlcnJvcnMkID0gbmV3IEJlaGF2aW9yU3ViamVjdDxEYWZmU3RhdGVFcnJvcltdPihbXSk7XG5cbiAgZGlzcGF0Y2goYWN0aW9uOiBBY3Rpb24pIHt9O1xufVxuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { DaffAuthTestingModule } from './auth-testing.module';
|
|
2
|
+
export { MockDaffAuthFacade } from './mock-auth-facade';
|
|
3
|
+
export { MockDaffAuthLoginFacade } from './mock-login-facade';
|
|
4
|
+
export { MockDaffAuthRegisterFacade } from './mock-register-facade';
|
|
5
|
+
export { MockDaffAuthResetPasswordFacade } from './mock-reset-password-facade';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXV0aC9zdGF0ZS90ZXN0aW5nL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzlELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3hELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzlELE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3BFLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRGFmZkF1dGhUZXN0aW5nTW9kdWxlIH0gZnJvbSAnLi9hdXRoLXRlc3RpbmcubW9kdWxlJztcbmV4cG9ydCB7IE1vY2tEYWZmQXV0aEZhY2FkZSB9IGZyb20gJy4vbW9jay1hdXRoLWZhY2FkZSc7XG5leHBvcnQgeyBNb2NrRGFmZkF1dGhMb2dpbkZhY2FkZSB9IGZyb20gJy4vbW9jay1sb2dpbi1mYWNhZGUnO1xuZXhwb3J0IHsgTW9ja0RhZmZBdXRoUmVnaXN0ZXJGYWNhZGUgfSBmcm9tICcuL21vY2stcmVnaXN0ZXItZmFjYWRlJztcbmV4cG9ydCB7IE1vY2tEYWZmQXV0aFJlc2V0UGFzc3dvcmRGYWNhZGUgfSBmcm9tICcuL21vY2stcmVzZXQtcGFzc3dvcmQtZmFjYWRlJztcbiJdfQ==
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Injectable, Inject, } from '@angular/core';
|
|
2
|
+
import { DaffPersistenceServiceToken, } from '@daffodil/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class DaffAuthStorageService {
|
|
5
|
+
constructor(storageService) {
|
|
6
|
+
this.storageService = storageService;
|
|
7
|
+
this.AUTH_STORAGE_TOKEN = 'DAFF_AUTH_TOKEN';
|
|
8
|
+
}
|
|
9
|
+
getAuthToken() {
|
|
10
|
+
return this.storageService.getItem(this.AUTH_STORAGE_TOKEN);
|
|
11
|
+
}
|
|
12
|
+
setAuthToken(value) {
|
|
13
|
+
this.storageService.setItem(this.AUTH_STORAGE_TOKEN, value);
|
|
14
|
+
}
|
|
15
|
+
removeAuthToken() {
|
|
16
|
+
this.storageService.removeItem(this.AUTH_STORAGE_TOKEN);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/** @nocollapse */ DaffAuthStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, deps: [{ token: DaffPersistenceServiceToken }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
/** @nocollapse */ DaffAuthStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, providedIn: 'root' });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, decorators: [{
|
|
22
|
+
type: Injectable,
|
|
23
|
+
args: [{
|
|
24
|
+
providedIn: 'root',
|
|
25
|
+
}]
|
|
26
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
27
|
+
type: Inject,
|
|
28
|
+
args: [DaffPersistenceServiceToken]
|
|
29
|
+
}] }]; } });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC1zdG9yYWdlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2F1dGgvc3JjL3N0b3JhZ2UvYXV0aC1zdG9yYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFVBQVUsRUFDVixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUVMLDJCQUEyQixHQUM1QixNQUFNLGdCQUFnQixDQUFDOztBQUt4QixNQUFNLE9BQU8sc0JBQXNCO0lBR2pDLFlBQXlELGNBQXNDO1FBQXRDLG1CQUFjLEdBQWQsY0FBYyxD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Q==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
3
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class MockAccountRegistration {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.email = faker.internet.email();
|
|
8
|
+
this.password = faker.random.alphaNumeric(16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
;
|
|
12
|
+
export class DaffAccountRegistrationFactory extends DaffModelFactory {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(MockAccountRegistration);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** @nocollapse */ DaffAccountRegistrationFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
+
/** @nocollapse */ DaffAccountRegistrationFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, providedIn: 'root' });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, decorators: [{
|
|
20
|
+
type: Injectable,
|
|
21
|
+
args: [{
|
|
22
|
+
providedIn: 'root',
|
|
23
|
+
}]
|
|
24
|
+
}], ctorParameters: function () { return []; } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1yZWdpc3RyYXRpb24uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXV0aC90ZXN0aW5nL3NyYy9mYWN0b3JpZXMvYWNjb3VudC1yZWdpc3RyY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lvbiBpbXBsZW1lbnRzIERhZmZBY2NvdW50UmVnaXN0cmF0aW9uIHtcbiAgZW1haWwgPSBmYWtlci5pbnRlcm5ldC5lbWFpbCgpO1xuICBwYXNzd29yZCA9IGZha2VyLnJhbmRvbS5hbHBoYU51bWVyaWMoMTYpO1xufTtcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZBY2NvdW50UmVnaXN0cmF0aW9uRmFjdG9yeSBleHRlbmRzIERhZmZNb2RlbEZhY3Rvcnk8RGFmZkFjY291bnRSZWdpc3RyYXRpb24+IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoTW9ja0FjY291bnRSZWdpc3RyYXRpb24pO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
3
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class MockAuthToken {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.token = faker.random.alphaNumeric(16);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
;
|
|
11
|
+
export class DaffAuthTokenFactory extends DaffModelFactory {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(MockAuthToken);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** @nocollapse */ DaffAuthTokenFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
/** @nocollapse */ DaffAuthTokenFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, providedIn: 'root' });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, decorators: [{
|
|
19
|
+
type: Injectable,
|
|
20
|
+
args: [{
|
|
21
|
+
providedIn: 'root',
|
|
22
|
+
}]
|
|
23
|
+
}], ctorParameters: function () { return []; } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC10b2tlbi5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9hdXRoL3Rlc3Rpbmcvc3JjL2ZhY3Rvcmllcy9hdXRoLXRva2VuLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEtBQUssS0FBSyxNQUFNLDhCQUE4QixDQUFDO0FBR3RELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQUUxRCxNQUFNLE9BQU8sYUFBYTtJQUExQjtRQUNFLFVBQUssR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN4QyxDQUFDO0NBQUE7QUFBQSxDQUFDO0FBS0YsTUFBTSxPQUFPLG9CQUFxQixTQUFRLGdCQUErQjtJQUN2RTtRQUNFLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQztJQUN2QixDQUFDOztvSUFIVSxvQkFBb0I7d0lBQXBCLG9CQUFvQixjQUZuQixNQUFNOzJGQUVQLG9CQUFvQjtrQkFIaEMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgKiBhcyBmYWtlciBmcm9tICdAZmFrZXItanMvZmFrZXIvbG9jYWxlL2VuX1VTJztcblxuaW1wb3J0IHsgRGFmZkF1dGhUb2tlbiB9IGZyb20gJ0BkYWZmb2RpbC9hdXRoJztcbmltcG9ydCB7IERhZmZNb2RlbEZhY3RvcnkgfSBmcm9tICdAZGFmZm9kaWwvY29yZS90ZXN0aW5nJztcblxuZXhwb3J0IGNsYXNzIE1vY2tBdXRoVG9rZW4gaW1wbGVtZW50cyBEYWZmQXV0aFRva2VuIHtcbiAgdG9rZW4gPSBmYWtlci5yYW5kb20uYWxwaGFOdW1lcmljKDE2KTtcbn07XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmQXV0aFRva2VuRmFjdG9yeSBleHRlbmRzIERhZmZNb2RlbEZhY3Rvcnk8RGFmZkF1dGhUb2tlbj4ge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcihNb2NrQXV0aFRva2VuKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './account-registration.factory';
|
|
2
|
+
export * from './auth-token.factory';
|
|
3
|
+
export * from './reset-password-info.factory';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXV0aC90ZXN0aW5nL3NyYy9mYWN0b3JpZXMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWNjb3VudC1yZWdpc3RyYXRpb24uZmFjdG9yeSc7XG5leHBvcnQgKiBmcm9tICcuL2F1dGgtdG9rZW4uZmFjdG9yeSc7XG5leHBvcnQgKiBmcm9tICcuL3Jlc2V0LXBhc3N3b3JkLWluZm8uZmFjdG9yeSc7XG4iXX0=
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
3
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class MockAuthResetPasswordInfo {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.email = faker.internet.email();
|
|
8
|
+
this.password = faker.random.alphaNumeric(16);
|
|
9
|
+
this.token = faker.random.alphaNumeric(16);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
export class DaffAuthResetPasswordInfoFactory extends DaffModelFactory {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(MockAuthResetPasswordInfo);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/** @nocollapse */ DaffAuthResetPasswordInfoFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
/** @nocollapse */ DaffAuthResetPasswordInfoFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, providedIn: 'root' });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, decorators: [{
|
|
21
|
+
type: Injectable,
|
|
22
|
+
args: [{
|
|
23
|
+
providedIn: 'root',
|
|
24
|
+
}]
|
|
25
|
+
}], ctorParameters: function () { return []; } });
|
|
26
|
+
//#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ENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './factories/public_api';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvYXV0aC90ZXN0aW5nL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZhY3Rvcmllcy9wdWJsaWNfYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, NgModule } from '@angular/core';
|
|
4
|
+
import { DaffLoginDriver, DaffRegisterDriver, DaffAuthDriver, DaffResetPasswordDriver } from '@daffodil/auth/driver';
|
|
5
|
+
import { map, switchMap } from 'rxjs/operators';
|
|
6
|
+
import * as i1 from '@angular/common/http';
|
|
7
|
+
import { of, throwError } from 'rxjs';
|
|
8
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
9
|
+
import { STATUS } from 'angular-in-memory-web-api';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @inheritdoc
|
|
13
|
+
*/
|
|
14
|
+
class DaffInMemoryAuthService {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this.http = http;
|
|
17
|
+
this.url = '/api/auth/';
|
|
18
|
+
}
|
|
19
|
+
check() {
|
|
20
|
+
return this.http.post(`${this.url}check`, {}).pipe(map(() => undefined));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** @nocollapse */ DaffInMemoryAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
/** @nocollapse */ DaffInMemoryAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, providedIn: 'root' });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, decorators: [{
|
|
26
|
+
type: Injectable,
|
|
27
|
+
args: [{
|
|
28
|
+
providedIn: 'root',
|
|
29
|
+
}]
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @inheritdoc
|
|
34
|
+
*/
|
|
35
|
+
class DaffInMemoryLoginService {
|
|
36
|
+
constructor(http) {
|
|
37
|
+
this.http = http;
|
|
38
|
+
this.url = '/api/auth/';
|
|
39
|
+
}
|
|
40
|
+
login(request) {
|
|
41
|
+
return this.http.post(`${this.url}login`, request);
|
|
42
|
+
}
|
|
43
|
+
logout() {
|
|
44
|
+
return this.http.post(`${this.url}logout`, {}).pipe(switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** @nocollapse */ DaffInMemoryLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
/** @nocollapse */ DaffInMemoryLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, providedIn: 'root' });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, decorators: [{
|
|
50
|
+
type: Injectable,
|
|
51
|
+
args: [{
|
|
52
|
+
providedIn: 'root',
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @inheritdoc
|
|
58
|
+
*/
|
|
59
|
+
class DaffInMemoryRegisterService {
|
|
60
|
+
constructor(http, loginService) {
|
|
61
|
+
this.http = http;
|
|
62
|
+
this.loginService = loginService;
|
|
63
|
+
this.url = '/api/auth/';
|
|
64
|
+
}
|
|
65
|
+
register(registration) {
|
|
66
|
+
return this.registerOnly(registration).pipe(switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })), map(({ token }) => token));
|
|
67
|
+
}
|
|
68
|
+
registerOnly(registration) {
|
|
69
|
+
return this.http.post(`${this.url}register`, registration);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/** @nocollapse */ DaffInMemoryRegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
73
|
+
/** @nocollapse */ DaffInMemoryRegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, providedIn: 'root' });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, decorators: [{
|
|
75
|
+
type: Injectable,
|
|
76
|
+
args: [{
|
|
77
|
+
providedIn: 'root',
|
|
78
|
+
}]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @inheritdoc
|
|
83
|
+
*/
|
|
84
|
+
class DaffInMemoryResetPasswordService {
|
|
85
|
+
constructor(http, loginService) {
|
|
86
|
+
this.http = http;
|
|
87
|
+
this.loginService = loginService;
|
|
88
|
+
this.url = '/api/auth/';
|
|
89
|
+
}
|
|
90
|
+
resetPassword(info) {
|
|
91
|
+
return this.resetPasswordOnly(info).pipe(switchMap(() => this.loginService.login({ email: info.email, password: info.password })), map(({ token }) => token));
|
|
92
|
+
}
|
|
93
|
+
resetPasswordOnly(info) {
|
|
94
|
+
return this.http.post(`${this.url}resetPassword`, info);
|
|
95
|
+
}
|
|
96
|
+
sendResetEmail(email) {
|
|
97
|
+
return this.http.post(`${this.url}sendResetEmail`, { email });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/** @nocollapse */ DaffInMemoryResetPasswordService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
101
|
+
/** @nocollapse */ DaffInMemoryResetPasswordService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, providedIn: 'root' });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, decorators: [{
|
|
103
|
+
type: Injectable,
|
|
104
|
+
args: [{
|
|
105
|
+
providedIn: 'root',
|
|
106
|
+
}]
|
|
107
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
|
|
108
|
+
|
|
109
|
+
class DaffAuthInMemoryDriverModule {
|
|
110
|
+
static forRoot() {
|
|
111
|
+
return {
|
|
112
|
+
ngModule: DaffAuthInMemoryDriverModule,
|
|
113
|
+
providers: [
|
|
114
|
+
{
|
|
115
|
+
provide: DaffLoginDriver,
|
|
116
|
+
useExisting: DaffInMemoryLoginService,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
provide: DaffRegisterDriver,
|
|
120
|
+
useExisting: DaffInMemoryRegisterService,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
provide: DaffAuthDriver,
|
|
124
|
+
useExisting: DaffInMemoryAuthService,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
provide: DaffResetPasswordDriver,
|
|
128
|
+
useExisting: DaffInMemoryResetPasswordService,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
135
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] });
|
|
136
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [[
|
|
137
|
+
CommonModule,
|
|
138
|
+
]] });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, decorators: [{
|
|
140
|
+
type: NgModule,
|
|
141
|
+
args: [{
|
|
142
|
+
imports: [
|
|
143
|
+
CommonModule,
|
|
144
|
+
],
|
|
145
|
+
}]
|
|
146
|
+
}] });
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @inheritdoc
|
|
150
|
+
*/
|
|
151
|
+
class DaffInMemoryBackendAuthService {
|
|
152
|
+
constructor() {
|
|
153
|
+
this.customers = {};
|
|
154
|
+
}
|
|
155
|
+
generateToken() {
|
|
156
|
+
return faker.random.alphaNumeric(16);
|
|
157
|
+
}
|
|
158
|
+
createDb() {
|
|
159
|
+
return {
|
|
160
|
+
auth: this.customers,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
post(reqInfo) {
|
|
164
|
+
if (reqInfo.id === 'login') {
|
|
165
|
+
return this.login(reqInfo);
|
|
166
|
+
}
|
|
167
|
+
else if (reqInfo.id === 'register') {
|
|
168
|
+
return this.register(reqInfo);
|
|
169
|
+
}
|
|
170
|
+
else if (reqInfo.id === 'logout') {
|
|
171
|
+
return this.logout(reqInfo);
|
|
172
|
+
}
|
|
173
|
+
else if (reqInfo.id === 'check') {
|
|
174
|
+
return this.check(reqInfo);
|
|
175
|
+
}
|
|
176
|
+
else if (reqInfo.id === 'resetPassword') {
|
|
177
|
+
return this.resetPassword(reqInfo);
|
|
178
|
+
}
|
|
179
|
+
else if (reqInfo.id === 'sendResetEmail') {
|
|
180
|
+
return this.sendResetEmail(reqInfo);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
login(reqInfo) {
|
|
184
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
185
|
+
const customer = this.customers[email];
|
|
186
|
+
if (password && (customer === null || customer === void 0 ? void 0 : customer.password) === password) {
|
|
187
|
+
this.customers[email].token = this.generateToken();
|
|
188
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
189
|
+
body: {
|
|
190
|
+
token: customer.token,
|
|
191
|
+
},
|
|
192
|
+
status: STATUS.OK,
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
196
|
+
status: STATUS.UNAUTHORIZED,
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
register(reqInfo) {
|
|
200
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
201
|
+
this.customers[email] = {
|
|
202
|
+
email,
|
|
203
|
+
password,
|
|
204
|
+
};
|
|
205
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
206
|
+
status: STATUS.CREATED,
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
logout(reqInfo) {
|
|
210
|
+
const { email, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
211
|
+
if (this.customers[email]) {
|
|
212
|
+
this.customers[email].token = null;
|
|
213
|
+
}
|
|
214
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
215
|
+
body: { success: true },
|
|
216
|
+
status: STATUS.OK,
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
check(reqInfo) {
|
|
220
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
221
|
+
body: {},
|
|
222
|
+
status: STATUS.OK,
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
resetPassword(reqInfo) {
|
|
226
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
227
|
+
if (this.customers[email]) {
|
|
228
|
+
this.customers[email].password = password;
|
|
229
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
230
|
+
status: STATUS.OK,
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
234
|
+
status: STATUS.UNAUTHORIZED,
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
sendResetEmail(reqInfo) {
|
|
238
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
239
|
+
body: {},
|
|
240
|
+
status: STATUS.OK,
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/** @nocollapse */ DaffInMemoryBackendAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
245
|
+
/** @nocollapse */ DaffInMemoryBackendAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, providedIn: 'root' });
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, decorators: [{
|
|
247
|
+
type: Injectable,
|
|
248
|
+
args: [{
|
|
249
|
+
providedIn: 'root',
|
|
250
|
+
}]
|
|
251
|
+
}] });
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generated bundle index. Do not edit.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
export { DaffAuthInMemoryDriverModule, DaffInMemoryAuthService, DaffInMemoryBackendAuthService, DaffInMemoryLoginService, DaffInMemoryRegisterService };
|
|
258
|
+
//# sourceMappingURL=daffodil-auth-driver-in-memory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-auth-driver-in-memory.mjs","sources":["../../../libs/auth/driver/in-memory/src/drivers/auth/auth.service.ts","../../../libs/auth/driver/in-memory/src/drivers/login/login.service.ts","../../../libs/auth/driver/in-memory/src/drivers/register/register.service.ts","../../../libs/auth/driver/in-memory/src/drivers/reset-password/service.ts","../../../libs/auth/driver/in-memory/src/drivers/auth-driver.module.ts","../../../libs/auth/driver/in-memory/src/backend/auth.service.ts","../../../libs/auth/driver/in-memory/src/daffodil-auth-driver-in-memory.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryAuthService implements DaffAuthServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n check(): Observable<void> {\n return this.http.post(`${this.url}check`, {}).pipe(\n map(() => undefined),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n Observable,\n of,\n throwError,\n} from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryLoginService implements DaffLoginServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n login(request: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.http.post<DaffAuthToken>(`${this.url}login`, request);\n }\n\n logout(): Observable<void> {\n return this.http.post<{success: boolean}>(`${this.url}logout`, {}).pipe(\n switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffRegisterServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryRegisterService implements DaffRegisterServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly(registration: DaffAccountRegistration): Observable<void> {\n return this.http.post<void>(`${this.url}register`, registration);\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryResetPasswordService implements DaffResetPasswordServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly(info: DaffAuthResetPasswordInfo): Observable<void> {\n return this.http.post<void>(`${this.url}resetPassword`, info);\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.http.post<void>(`${this.url}sendResetEmail`, { email });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffLoginDriver,\n DaffRegisterDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffInMemoryAuthService } from './auth/auth.service';\nimport { DaffInMemoryLoginService } from './login/login.service';\nimport { DaffInMemoryRegisterService } from './register/register.service';\nimport { DaffInMemoryResetPasswordService } from './reset-password/service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthInMemoryDriverModule> {\n return {\n ngModule: DaffAuthInMemoryDriverModule,\n providers: [\n {\n provide: DaffLoginDriver,\n useExisting: DaffInMemoryLoginService,\n },\n {\n provide: DaffRegisterDriver,\n useExisting: DaffInMemoryRegisterService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffInMemoryAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffInMemoryResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\nimport {\n InMemoryDbService,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemoryDbCustomer } from '../models/db-customer.type';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendAuthService implements InMemoryDbService {\n customers: Record<DaffInMemoryDbCustomer['email'], DaffInMemoryDbCustomer> = {};\n\n private generateToken(): string {\n return faker.random.alphaNumeric(16);\n }\n\n createDb() {\n return {\n auth: this.customers,\n };\n }\n\n post(reqInfo) {\n if (reqInfo.id === 'login') {\n return this.login(reqInfo);\n } else if (reqInfo.id === 'register') {\n return this.register(reqInfo);\n } else if (reqInfo.id === 'logout') {\n return this.logout(reqInfo);\n } else if (reqInfo.id === 'check') {\n return this.check(reqInfo);\n } else if (reqInfo.id === 'resetPassword') {\n return this.resetPassword(reqInfo);\n } else if (reqInfo.id === 'sendResetEmail') {\n return this.sendResetEmail(reqInfo);\n }\n }\n\n private login(reqInfo: any) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n const customer = this.customers[email];\n\n if (password && customer?.password === password) {\n this.customers[email].token = this.generateToken();\n\n return reqInfo.utils.createResponse$(() => ({\n body: {\n token: customer.token,\n },\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private register(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n this.customers[email] = {\n email,\n password,\n };\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.CREATED,\n }));\n }\n\n private logout(reqInfo) {\n const {\n email,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].token = null;\n }\n\n return reqInfo.utils.createResponse$(() => ({\n body: { success: true },\n status: STATUS.OK,\n }));\n }\n\n private check(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n\n private resetPassword(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].password = password;\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private sendResetEmail(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.DaffInMemoryLoginService"],"mappings":";;;;;;;;;;AAOA;;AAEG;MAIU,uBAAuB,CAAA;AAGlC,IAAA,WAAA,CAAoB,IAAgB,EAAA;AAAhB,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAFpC,QAAA,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;KAEqB;IAExC,KAAK,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAG,EAAA,IAAI,CAAC,GAAG,CAAO,KAAA,CAAA,EAAE,EAAE,CAAC,CAAC,IAAI,CAChD,GAAG,CAAC,MAAM,SAAS,CAAC,CACrB,CAAC;KACH;;uIATU,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,mBAAA,uBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU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