@descope/angular-sdk 0.5.9 → 0.5.11
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/.eslintrc.json +41 -0
- package/.prettierrc +7 -0
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +647 -11
- package/angular.json +154 -0
- package/{esm2022 → dist/esm2022}/environment.mjs +2 -2
- package/dist/esm2022/lib/components/access-key-management/access-key-management.component.mjs +61 -0
- package/dist/esm2022/lib/components/audit-management/audit-management.component.mjs +61 -0
- package/dist/esm2022/lib/components/descope/descope.component.mjs +156 -0
- package/dist/esm2022/lib/components/role-management/role-management.component.mjs +61 -0
- package/dist/esm2022/lib/components/sign-in-flow/sign-in-flow.component.mjs +44 -0
- package/dist/esm2022/lib/components/sign-up-flow/sign-up-flow.component.mjs +44 -0
- package/dist/esm2022/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.mjs +44 -0
- package/dist/esm2022/lib/components/user-management/user-management.component.mjs +61 -0
- package/dist/esm2022/lib/components/user-profile/user-profile.component.mjs +66 -0
- package/{esm2022 → dist/esm2022}/lib/descope-auth.module.mjs +5 -5
- package/{esm2022 → dist/esm2022}/lib/services/descope-auth.guard.mjs +1 -1
- package/dist/esm2022/lib/services/descope-auth.service.mjs +154 -0
- package/dist/esm2022/lib/services/descope.interceptor.mjs +51 -0
- package/dist/esm2022/lib/types/types.mjs +6 -0
- package/{esm2022 → dist/esm2022}/lib/utils/constants.mjs +1 -1
- package/dist/esm2022/lib/utils/helpers.mjs +27 -0
- package/{fesm2022 → dist/fesm2022}/descope-angular-sdk.mjs +62 -38
- package/dist/fesm2022/descope-angular-sdk.mjs.map +1 -0
- package/{lib → dist/lib}/components/access-key-management/access-key-management.component.d.ts +1 -0
- package/{lib → dist/lib}/components/audit-management/audit-management.component.d.ts +1 -0
- package/{lib → dist/lib}/components/descope/descope.component.d.ts +1 -0
- package/{lib → dist/lib}/components/role-management/role-management.component.d.ts +1 -0
- package/{lib → dist/lib}/components/user-management/user-management.component.d.ts +1 -0
- package/{lib → dist/lib}/components/user-profile/user-profile.component.d.ts +1 -0
- package/{lib → dist/lib}/services/descope-auth.service.d.ts +3 -2
- package/{lib → dist/lib}/types/types.d.ts +1 -0
- package/jest.config.js +17 -0
- package/package.json +62 -19
- package/project.json +17 -0
- package/projects/angular-sdk/.eslintrc.json +32 -0
- package/projects/angular-sdk/ng-package.json +17 -0
- package/projects/angular-sdk/package.json +87 -0
- package/projects/angular-sdk/src/environment.ts +3 -0
- package/projects/angular-sdk/src/lib/components/access-key-management/access-key-management.component.spec.ts +84 -0
- package/projects/angular-sdk/src/lib/components/access-key-management/access-key-management.component.ts +63 -0
- package/projects/angular-sdk/src/lib/components/audit-management/audit-management.component.spec.ts +84 -0
- package/projects/angular-sdk/src/lib/components/audit-management/audit-management.component.ts +63 -0
- package/projects/angular-sdk/src/lib/components/descope/descope.component.spec.ts +142 -0
- package/projects/angular-sdk/src/lib/components/descope/descope.component.ts +171 -0
- package/projects/angular-sdk/src/lib/components/role-management/role-management.component.spec.ts +84 -0
- package/projects/angular-sdk/src/lib/components/role-management/role-management.component.ts +63 -0
- package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.html +17 -0
- package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.spec.ts +53 -0
- package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.ts +35 -0
- package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.html +17 -0
- package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.spec.ts +51 -0
- package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.ts +35 -0
- package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.html +17 -0
- package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.spec.ts +53 -0
- package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.ts +35 -0
- package/projects/angular-sdk/src/lib/components/user-management/user-management.component.spec.ts +84 -0
- package/projects/angular-sdk/src/lib/components/user-management/user-management.component.ts +64 -0
- package/projects/angular-sdk/src/lib/components/user-profile/user-profile.component.spec.ts +93 -0
- package/projects/angular-sdk/src/lib/components/user-profile/user-profile.component.ts +77 -0
- package/projects/angular-sdk/src/lib/descope-auth.module.ts +61 -0
- package/projects/angular-sdk/src/lib/services/descope-auth.guard.spec.ts +76 -0
- package/projects/angular-sdk/src/lib/services/descope-auth.guard.ts +16 -0
- package/projects/angular-sdk/src/lib/services/descope-auth.service.spec.ts +309 -0
- package/projects/angular-sdk/src/lib/services/descope-auth.service.ts +200 -0
- package/projects/angular-sdk/src/lib/services/descope.interceptor.spec.ts +102 -0
- package/projects/angular-sdk/src/lib/services/descope.interceptor.ts +76 -0
- package/projects/angular-sdk/src/lib/types/types.ts +15 -0
- package/projects/angular-sdk/src/lib/utils/constants.ts +8 -0
- package/projects/angular-sdk/src/lib/utils/helpers.spec.ts +103 -0
- package/projects/angular-sdk/src/lib/utils/helpers.ts +36 -0
- package/projects/angular-sdk/src/public-api.ts +18 -0
- package/projects/angular-sdk/tsconfig.lib.json +12 -0
- package/projects/angular-sdk/tsconfig.lib.prod.json +10 -0
- package/projects/angular-sdk/tsconfig.spec.json +11 -0
- package/projects/demo-app/.eslintrc.json +31 -0
- package/projects/demo-app/src/app/app-routing.module.ts +33 -0
- package/projects/demo-app/src/app/app.component.html +3 -0
- package/projects/demo-app/src/app/app.component.scss +18 -0
- package/projects/demo-app/src/app/app.component.spec.ts +37 -0
- package/projects/demo-app/src/app/app.component.ts +8 -0
- package/projects/demo-app/src/app/app.module.ts +63 -0
- package/projects/demo-app/src/app/home/home.component.html +32 -0
- package/projects/demo-app/src/app/home/home.component.scss +15 -0
- package/projects/demo-app/src/app/home/home.component.spec.ts +44 -0
- package/projects/demo-app/src/app/home/home.component.ts +85 -0
- package/projects/demo-app/src/app/interceptor/auth.interceptor.ts +20 -0
- package/projects/demo-app/src/app/login/login.component.html +20 -0
- package/projects/demo-app/src/app/login/login.component.spec.ts +42 -0
- package/projects/demo-app/src/app/login/login.component.ts +41 -0
- package/projects/demo-app/src/app/manage-access-keys/manage-access-keys.component.html +12 -0
- package/projects/demo-app/src/app/manage-access-keys/manage-access-keys.component.spec.ts +36 -0
- package/projects/demo-app/src/app/manage-access-keys/manage-access-keys.component.ts +15 -0
- package/projects/demo-app/src/app/manage-audit/manage-audit.component.html +6 -0
- package/projects/demo-app/src/app/manage-audit/manage-audit.component.spec.ts +36 -0
- package/projects/demo-app/src/app/manage-audit/manage-audit.component.ts +15 -0
- package/projects/demo-app/src/app/manage-roles/manage-roles.component.html +6 -0
- package/projects/demo-app/src/app/manage-roles/manage-roles.component.spec.ts +36 -0
- package/projects/demo-app/src/app/manage-roles/manage-roles.component.ts +15 -0
- package/projects/demo-app/src/app/manage-users/manage-users.component.html +6 -0
- package/projects/demo-app/src/app/manage-users/manage-users.component.spec.ts +36 -0
- package/projects/demo-app/src/app/manage-users/manage-users.component.ts +15 -0
- package/projects/demo-app/src/app/my-user-profile/my-user-profile.component.html +6 -0
- package/projects/demo-app/src/app/my-user-profile/my-user-profile.component.spec.ts +36 -0
- package/projects/demo-app/src/app/my-user-profile/my-user-profile.component.ts +20 -0
- package/projects/demo-app/src/app/my-user-profile/my-user-profile.scss +18 -0
- package/projects/demo-app/src/app/protected/protected.component.html +18 -0
- package/projects/demo-app/src/app/protected/protected.component.scss +8 -0
- package/projects/demo-app/src/app/protected/protected.component.spec.ts +42 -0
- package/projects/demo-app/src/app/protected/protected.component.ts +41 -0
- package/projects/demo-app/src/assets/.gitkeep +0 -0
- package/projects/demo-app/src/environments/conifg.ts +14 -0
- package/projects/demo-app/src/environments/environment.ts +20 -0
- package/projects/demo-app/src/favicon.ico +0 -0
- package/projects/demo-app/src/index.html +17 -0
- package/projects/demo-app/src/main.ts +7 -0
- package/projects/demo-app/src/styles.scss +21 -0
- package/projects/demo-app/tsconfig.app.json +11 -0
- package/projects/demo-app/tsconfig.spec.json +10 -0
- package/scripts/setversion/setversion.js +20 -0
- package/setup-jest.ts +1 -0
- package/tsconfig.json +36 -0
- package/esm2022/lib/components/access-key-management/access-key-management.component.mjs +0 -57
- package/esm2022/lib/components/audit-management/audit-management.component.mjs +0 -57
- package/esm2022/lib/components/descope/descope.component.mjs +0 -152
- package/esm2022/lib/components/role-management/role-management.component.mjs +0 -57
- package/esm2022/lib/components/sign-in-flow/sign-in-flow.component.mjs +0 -44
- package/esm2022/lib/components/sign-up-flow/sign-up-flow.component.mjs +0 -44
- package/esm2022/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.mjs +0 -44
- package/esm2022/lib/components/user-management/user-management.component.mjs +0 -57
- package/esm2022/lib/components/user-profile/user-profile.component.mjs +0 -62
- package/esm2022/lib/services/descope-auth.service.mjs +0 -154
- package/esm2022/lib/services/descope.interceptor.mjs +0 -51
- package/esm2022/lib/types/types.mjs +0 -6
- package/esm2022/lib/utils/helpers.mjs +0 -27
- package/fesm2022/descope-angular-sdk.mjs.map +0 -1
- /package/{environment.d.ts → dist/environment.d.ts} +0 -0
- /package/{esm2022 → dist/esm2022}/descope-angular-sdk.mjs +0 -0
- /package/{esm2022 → dist/esm2022}/public-api.mjs +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{lib → dist/lib}/components/sign-in-flow/sign-in-flow.component.d.ts +0 -0
- /package/{lib → dist/lib}/components/sign-up-flow/sign-up-flow.component.d.ts +0 -0
- /package/{lib → dist/lib}/components/sign-up-or-in-flow/sign-up-or-in-flow.component.d.ts +0 -0
- /package/{lib → dist/lib}/descope-auth.module.d.ts +0 -0
- /package/{lib → dist/lib}/services/descope-auth.guard.d.ts +0 -0
- /package/{lib → dist/lib}/services/descope.interceptor.d.ts +0 -0
- /package/{lib → dist/lib}/utils/constants.d.ts +0 -0
- /package/{lib → dist/lib}/utils/helpers.d.ts +0 -0
- /package/{public-api.d.ts → dist/public-api.d.ts} +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": ["projects/**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"extends": [
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"plugin:@typescript-eslint/recommended",
|
|
10
|
+
"plugin:@angular-eslint/recommended",
|
|
11
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
12
|
+
],
|
|
13
|
+
"rules": {
|
|
14
|
+
"@angular-eslint/directive-selector": [
|
|
15
|
+
"error",
|
|
16
|
+
{
|
|
17
|
+
"type": "attribute",
|
|
18
|
+
"prefix": "lib",
|
|
19
|
+
"style": "camelCase"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"@angular-eslint/component-selector": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
"type": "element",
|
|
26
|
+
"style": "kebab-case"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"@typescript-eslint/no-explicit-any": "off"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"files": ["*.html"],
|
|
34
|
+
"extends": [
|
|
35
|
+
"plugin:@angular-eslint/template/recommended",
|
|
36
|
+
"plugin:@angular-eslint/template/accessibility"
|
|
37
|
+
],
|
|
38
|
+
"rules": {}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
package/.prettierrc
ADDED
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Descope <help@descope.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|