@rxap/oauth 16.0.0-dev.2 → 16.0.0-dev.20

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +468 -0
  2. package/LICENSE +621 -27
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +6 -13
  6. package/esm2022/lib/authentication-guard.mjs +15 -0
  7. package/esm2022/lib/authentication.service.mjs +83 -0
  8. package/esm2022/lib/provide-auth.mjs +20 -0
  9. package/esm2022/rxap-oauth.mjs +1 -1
  10. package/fesm2022/rxap-oauth.mjs +94 -703
  11. package/fesm2022/rxap-oauth.mjs.map +1 -1
  12. package/index.d.ts +3 -12
  13. package/lib/authentication-guard.d.ts +2 -0
  14. package/lib/authentication.service.d.ts +16 -0
  15. package/lib/provide-auth.d.ts +4 -0
  16. package/package.json +56 -63
  17. package/theme.css +1 -0
  18. package/collection.json +0 -10
  19. package/esm2022/lib/container/container.component.mjs +0 -39
  20. package/esm2022/lib/get-o-auth-profile.method.mjs +0 -41
  21. package/esm2022/lib/loading/loading.component.mjs +0 -14
  22. package/esm2022/lib/o-auth-extract.guard.mjs +0 -56
  23. package/esm2022/lib/o-auth-redirect.guard.mjs +0 -32
  24. package/esm2022/lib/o-auth.method.mjs +0 -117
  25. package/esm2022/lib/o-auth.module.mjs +0 -28
  26. package/esm2022/lib/o-auth.service.mjs +0 -321
  27. package/esm2022/lib/profile.resolve.mjs +0 -38
  28. package/esm2022/lib/routes.mjs +0 -26
  29. package/esm2022/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +0 -51
  30. package/esm2022/lib/tokens.mjs +0 -17
  31. package/esm2022/single-sign-on/lib/continue/continue.component.mjs +0 -79
  32. package/esm2022/single-sign-on/lib/error/error.component.mjs +0 -47
  33. package/esm2022/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +0 -37
  34. package/esm2022/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +0 -70
  35. package/esm2022/single-sign-on/lib/o-auth-single-sign-on.service.mjs +0 -78
  36. package/esm2022/single-sign-on/lib/routes.mjs +0 -33
  37. package/esm2022/single-sign-on/lib/tokens.mjs +0 -10
  38. package/esm2022/single-sign-on/public_api.mjs +0 -8
  39. package/esm2022/single-sign-on/rxap-oauth-single-sign-on.mjs +0 -5
  40. package/fesm2022/rxap-oauth-single-sign-on.mjs +0 -325
  41. package/fesm2022/rxap-oauth-single-sign-on.mjs.map +0 -1
  42. package/lib/container/container.component.d.ts +0 -7
  43. package/lib/get-o-auth-profile.method.d.ts +0 -18
  44. package/lib/loading/loading.component.d.ts +0 -5
  45. package/lib/o-auth-extract.guard.d.ts +0 -11
  46. package/lib/o-auth-redirect.guard.d.ts +0 -11
  47. package/lib/o-auth.method.d.ts +0 -45
  48. package/lib/o-auth.module.d.ts +0 -12
  49. package/lib/o-auth.service.d.ts +0 -64
  50. package/lib/profile.resolve.d.ts +0 -12
  51. package/lib/routes.d.ts +0 -2
  52. package/lib/sign-in-with-redirect/sign-in-with-redirect.component.d.ts +0 -9
  53. package/lib/tokens.d.ts +0 -6
  54. package/migration.json +0 -4
  55. package/single-sign-on/index.d.ts +0 -5
  56. package/single-sign-on/lib/continue/continue.component.d.ts +0 -17
  57. package/single-sign-on/lib/error/error.component.d.ts +0 -7
  58. package/single-sign-on/lib/o-auth-single-sign-on-routing.module.d.ts +0 -11
  59. package/single-sign-on/lib/o-auth-single-sign-on.guard.d.ts +0 -14
  60. package/single-sign-on/lib/o-auth-single-sign-on.service.d.ts +0 -13
  61. package/single-sign-on/lib/routes.d.ts +0 -2
  62. package/single-sign-on/lib/tokens.d.ts +0 -4
  63. package/single-sign-on/public_api.d.ts +0 -7
  64. package/src/schematics/ng-add/index.d.ts +0 -2
  65. package/src/schematics/ng-add/index.js +0 -8
  66. package/src/schematics/ng-add/index.js.map +0 -1
  67. package/src/schematics/ng-add/schema.json +0 -7
package/migration.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "schematics": {},
3
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
4
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rxap/oauth/single-sign-on" />
5
- export * from './public_api';
@@ -1,17 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { OAuthSingleSignOnService } from '../o-auth-single-sign-on.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ContinueComponent<Profile extends Record<string, any> = Record<string, any>> implements OnInit {
6
- private readonly route;
7
- private readonly router;
8
- private readonly oAuthService;
9
- private readonly redirectLogin;
10
- profile: Promise<Profile>;
11
- constructor(route: ActivatedRoute, router: Router, oAuthService: OAuthSingleSignOnService, redirectLogin: string[]);
12
- ngOnInit(): void;
13
- signOut(): Promise<boolean>;
14
- redirect(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ContinueComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ContinueComponent<any>, "rxap-continue", never, {}, {}, never, never, true, never>;
17
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ErrorComponent {
3
- get topLevelDomain(): string;
4
- get mainApplicationUrl(): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "rxap-error", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export interface OAuthSingleSignOnOptions {
4
- redirectContinueDisabled?: boolean;
5
- }
6
- export declare class OAuthSingleSignOnRoutingModule {
7
- static forRouting(options?: OAuthSingleSignOnOptions): ModuleWithProviders<OAuthSingleSignOnRoutingModule>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<OAuthSingleSignOnRoutingModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<OAuthSingleSignOnRoutingModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<OAuthSingleSignOnRoutingModule>;
11
- }
@@ -1,14 +0,0 @@
1
- import { ActivatedRouteSnapshot, Router, UrlTree } from '@angular/router';
2
- import { OAuthSingleSignOnService } from './o-auth-single-sign-on.service';
3
- import * as i0 from "@angular/core";
4
- export declare class OAuthSingleSignOnGuard {
5
- private readonly authentication;
6
- private readonly router;
7
- private readonly redirectContinue;
8
- private readonly redirectLogin;
9
- private readonly redirectContinueDisabled;
10
- constructor(authentication: OAuthSingleSignOnService, router: Router, redirectContinue: string[], redirectLogin: string[], redirectContinueDisabled: boolean | null);
11
- canActivate(route: ActivatedRouteSnapshot): Promise<boolean | UrlTree>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<OAuthSingleSignOnGuard, [null, null, null, null, { optional: true; }]>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<OAuthSingleSignOnGuard>;
14
- }
@@ -1,13 +0,0 @@
1
- import { OAuthService, OAuthMethodResponse, OAuthMethod, GetOAuthProfileMethod } from '@rxap/oauth';
2
- import { Router } from '@angular/router';
3
- import * as i0 from "@angular/core";
4
- export declare class OAuthSingleSignOnService extends OAuthService {
5
- payload: string | null;
6
- redirect: string | null;
7
- constructor(oAuthMethod: OAuthMethod, getOAuthProfileMethod: GetOAuthProfileMethod, router: Router, profileEndpoint?: string | null, authEndpoint?: string | null, secret?: string | null, ssoUrl?: string | null, redirectSignOut?: string[] | null, redirectUrl?: string | null);
8
- signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<OAuthMethodResponse>;
9
- redirectToClient(): void;
10
- signOut(): Promise<void>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<OAuthSingleSignOnService, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<OAuthSingleSignOnService>;
13
- }
@@ -1,2 +0,0 @@
1
- import { Routes } from '@angular/router';
2
- export declare const RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES: Routes;
@@ -1,4 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare function DefaultRedirectContinueFactory(): string[];
3
- export declare const RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE: InjectionToken<string[]>;
4
- export declare const RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED: InjectionToken<unknown>;
@@ -1,7 +0,0 @@
1
- export * from './lib/continue/continue.component';
2
- export * from './lib/o-auth-single-sign-on.guard';
3
- export * from './lib/o-auth-single-sign-on-routing.module';
4
- export * from './lib/o-auth-single-sign-on.service';
5
- export * from './lib/routes';
6
- export * from './lib/tokens';
7
- export * from './lib/error/error.component';
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
- function default_1() {
5
- return (0, schematics_utilities_1.InstallPeerDependencies)();
6
- }
7
- exports.default = default_1;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/oauth/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "oauth-ng-add",
4
- "type": "object",
5
- "properties": {},
6
- "required": []
7
- }