@rxap/oauth 16.0.0-dev.14 → 16.0.0-dev.16
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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/esm2022/index.mjs +6 -13
- package/esm2022/lib/authentication-guard.mjs +15 -0
- package/esm2022/lib/authentication.service.mjs +90 -0
- package/esm2022/lib/provide-auth.mjs +12 -0
- package/fesm2022/rxap-oauth.mjs +96 -707
- package/fesm2022/rxap-oauth.mjs.map +1 -1
- package/index.d.ts +3 -12
- package/lib/authentication-guard.d.ts +2 -0
- package/lib/authentication.service.d.ts +16 -0
- package/lib/provide-auth.d.ts +2 -0
- package/package.json +8 -17
- package/theme.css +1 -1
- package/esm2022/lib/container/container.component.mjs +0 -38
- package/esm2022/lib/get-o-auth-profile.method.mjs +0 -40
- package/esm2022/lib/loading/loading.component.mjs +0 -13
- package/esm2022/lib/o-auth-extract.guard.mjs +0 -57
- package/esm2022/lib/o-auth-redirect.guard.mjs +0 -31
- package/esm2022/lib/o-auth.method.mjs +0 -116
- package/esm2022/lib/o-auth.module.mjs +0 -28
- package/esm2022/lib/o-auth.service.mjs +0 -320
- package/esm2022/lib/profile.resolve.mjs +0 -37
- package/esm2022/lib/routes.mjs +0 -26
- package/esm2022/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +0 -50
- package/esm2022/lib/tokens.mjs +0 -17
- package/esm2022/single-sign-on/index.mjs +0 -8
- package/esm2022/single-sign-on/lib/continue/continue.component.mjs +0 -78
- package/esm2022/single-sign-on/lib/error/error.component.mjs +0 -46
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +0 -36
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +0 -69
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on.service.mjs +0 -77
- package/esm2022/single-sign-on/lib/routes.mjs +0 -33
- package/esm2022/single-sign-on/lib/tokens.mjs +0 -10
- package/esm2022/single-sign-on/rxap-oauth-single-sign-on.mjs +0 -5
- package/fesm2022/rxap-oauth-single-sign-on.mjs +0 -325
- package/fesm2022/rxap-oauth-single-sign-on.mjs.map +0 -1
- package/lib/container/container.component.d.ts +0 -7
- package/lib/get-o-auth-profile.method.d.ts +0 -18
- package/lib/loading/loading.component.d.ts +0 -5
- package/lib/o-auth-extract.guard.d.ts +0 -11
- package/lib/o-auth-redirect.guard.d.ts +0 -11
- package/lib/o-auth.method.d.ts +0 -45
- package/lib/o-auth.module.d.ts +0 -12
- package/lib/o-auth.service.d.ts +0 -64
- package/lib/profile.resolve.d.ts +0 -12
- package/lib/routes.d.ts +0 -2
- package/lib/sign-in-with-redirect/sign-in-with-redirect.component.d.ts +0 -9
- package/lib/tokens.d.ts +0 -6
- package/single-sign-on/index.d.ts +0 -7
- package/single-sign-on/lib/continue/continue.component.d.ts +0 -17
- package/single-sign-on/lib/error/error.component.d.ts +0 -7
- package/single-sign-on/lib/o-auth-single-sign-on-routing.module.d.ts +0 -11
- package/single-sign-on/lib/o-auth-single-sign-on.guard.d.ts +0 -14
- package/single-sign-on/lib/o-auth-single-sign-on.service.d.ts +0 -13
- package/single-sign-on/lib/routes.d.ts +0 -2
- package/single-sign-on/lib/tokens.d.ts +0 -4
- package/single-sign-on/src/lib/continue/_continue.component.theme.scss +0 -39
- package/single-sign-on/src/lib/error/_error.component.theme.scss +0 -34
- package/src/lib/container/_container.component.theme.scss +0 -28
- package/src/lib/sign-in-with-redirect/_sign-in-with-redirect.component.theme.scss +0 -31
|
@@ -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,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 { GetOAuthProfileMethod, OAuthMethod, OAuthMethodResponse, OAuthService } 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,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,39 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin rxap-continue-theme($theme) {
|
|
4
|
-
$foreground: map-get($theme, foreground);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$accent: map-get($theme, accent);
|
|
7
|
-
$primary: map-get($theme, primary);
|
|
8
|
-
$warn: map-get($theme, warn);
|
|
9
|
-
$isDark: map-get($theme, is-dark);
|
|
10
|
-
|
|
11
|
-
.rxap-continue {
|
|
12
|
-
|
|
13
|
-
.inner {
|
|
14
|
-
background-color: mat.get-color-from-palette($background, card);
|
|
15
|
-
|
|
16
|
-
@if $isDark {
|
|
17
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
18
|
-
.mat-form-field-prefix, .mat-form-field-suffix {
|
|
19
|
-
color: mat.get-color-from-palette($foreground, hint-text);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin rxap-continue-typography($config) {
|
|
32
|
-
.rxap-continue {
|
|
33
|
-
|
|
34
|
-
.username {
|
|
35
|
-
font-weight: bold;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin rxap-error-theme($theme) {
|
|
4
|
-
$foreground: map-get($theme, foreground);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$accent: map-get($theme, accent);
|
|
7
|
-
$primary: map-get($theme, primary);
|
|
8
|
-
$warn: map-get($theme, warn);
|
|
9
|
-
$isDark: map-get($theme, is-dark);
|
|
10
|
-
|
|
11
|
-
.rxap-error {
|
|
12
|
-
|
|
13
|
-
.inner {
|
|
14
|
-
background-color: mat.get-color-from-palette($background, card);
|
|
15
|
-
|
|
16
|
-
@if $isDark {
|
|
17
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
18
|
-
.mat-form-field-prefix, .mat-form-field-suffix {
|
|
19
|
-
color: mat.get-color-from-palette($foreground, hint-text);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin rxap-error-typography($config) {
|
|
32
|
-
.rxap-error {
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin rxap-container-theme($theme) {
|
|
4
|
-
$foreground: map-get($theme, foreground);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$accent: map-get($theme, accent);
|
|
7
|
-
$primary: map-get($theme, primary);
|
|
8
|
-
$warn: map-get($theme, warn);
|
|
9
|
-
$isDark: map-get($theme, is-dark);
|
|
10
|
-
|
|
11
|
-
.rxap-container {
|
|
12
|
-
|
|
13
|
-
.container {
|
|
14
|
-
|
|
15
|
-
.split {
|
|
16
|
-
background-color: mat.get-color-from-palette($accent);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin rxap-container-typography($config) {
|
|
26
|
-
.rxap-container {
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin rxap-sign-in-with-redirect-theme($theme) {
|
|
4
|
-
$foreground: map-get($theme, foreground);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$accent: map-get($theme, accent);
|
|
7
|
-
$primary: map-get($theme, primary);
|
|
8
|
-
$warn: map-get($theme, warn);
|
|
9
|
-
$isDark: map-get($theme, is-dark);
|
|
10
|
-
|
|
11
|
-
.rxap-sign-in-with-redirect {
|
|
12
|
-
.inner {
|
|
13
|
-
background-color: mat.get-color-from-palette($background, background);
|
|
14
|
-
|
|
15
|
-
@if $isDark {
|
|
16
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
17
|
-
.mat-form-field-prefix, .mat-form-field-suffix {
|
|
18
|
-
color: mat.get-color-from-palette($foreground, hint-text);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin rxap-sign-in-with-redirect-typography($config) {
|
|
29
|
-
.rxap-sign-in-with-redirect {
|
|
30
|
-
}
|
|
31
|
-
}
|