@rxap/oauth 12.0.9-next.2 → 12.0.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/bundles/rxap-oauth-single-sign-on.umd.js +29 -31
- package/bundles/rxap-oauth-single-sign-on.umd.js.map +1 -1
- package/bundles/rxap-oauth.umd.js +74 -58
- package/bundles/rxap-oauth.umd.js.map +1 -1
- package/esm2015/lib/container/container.component.js +3 -3
- package/esm2015/lib/container/container.component.js.map +1 -1
- package/esm2015/lib/container/container.component.module.js +4 -4
- package/esm2015/lib/container/container.component.module.js.map +1 -1
- package/esm2015/lib/get-o-auth-profile.method.js +3 -3
- package/esm2015/lib/get-o-auth-profile.method.js.map +1 -1
- package/esm2015/lib/loading/loading.component.js +3 -3
- package/esm2015/lib/loading/loading.component.js.map +1 -1
- package/esm2015/lib/loading/loading.component.module.js +4 -4
- package/esm2015/lib/loading/loading.component.module.js.map +1 -1
- package/esm2015/lib/o-auth-extract.guard.js +3 -3
- package/esm2015/lib/o-auth-extract.guard.js.map +1 -1
- package/esm2015/lib/o-auth-redirect.guard.js +3 -3
- package/esm2015/lib/o-auth-redirect.guard.js.map +1 -1
- package/esm2015/lib/o-auth-routing.module.js +4 -4
- package/esm2015/lib/o-auth-routing.module.js.map +1 -1
- package/esm2015/lib/o-auth.method.js +12 -7
- package/esm2015/lib/o-auth.method.js.map +1 -1
- package/esm2015/lib/o-auth.module.js +4 -4
- package/esm2015/lib/o-auth.module.js.map +1 -1
- package/esm2015/lib/o-auth.service.js +15 -4
- package/esm2015/lib/o-auth.service.js.map +1 -1
- package/esm2015/lib/profile.resolve.js +3 -3
- package/esm2015/lib/profile.resolve.js.map +1 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js +3 -3
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js.map +1 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js +4 -4
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.js +3 -3
- package/esm2015/single-sign-on/lib/continue/continue.component.js.map +1 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js +4 -4
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/error/error.component.js +3 -3
- package/esm2015/single-sign-on/lib/error/error.component.js.map +1 -1
- package/esm2015/single-sign-on/lib/error/error.component.module.js +4 -4
- package/esm2015/single-sign-on/lib/error/error.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js +4 -4
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js +3 -3
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js +3 -3
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js.map +1 -1
- package/fesm2015/rxap-oauth-single-sign-on.js +24 -24
- package/fesm2015/rxap-oauth-single-sign-on.js.map +1 -1
- package/fesm2015/rxap-oauth.js +69 -53
- package/fesm2015/rxap-oauth.js.map +1 -1
- package/lib/o-auth.method.d.ts +2 -0
- package/lib/o-auth.service.d.ts +4 -2
- package/package.json +5 -5
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
package/lib/o-auth.method.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ export interface OAuthMethodWithUsernamePasswordParameters {
|
|
|
6
6
|
username: string;
|
|
7
7
|
password: string;
|
|
8
8
|
secret: string;
|
|
9
|
+
clientId?: string;
|
|
9
10
|
authEndpoint: string;
|
|
10
11
|
}
|
|
11
12
|
export interface OAuthMethodWithRefreshTokenParameters {
|
|
12
13
|
grantType?: string;
|
|
13
14
|
refreshToken: string;
|
|
14
15
|
secret: string;
|
|
16
|
+
clientId?: string;
|
|
15
17
|
authEndpoint: string;
|
|
16
18
|
}
|
|
17
19
|
export declare type OAuthMethodParameters = (OAuthMethodWithUsernamePasswordParameters | OAuthMethodWithRefreshTokenParameters) & {
|
package/lib/o-auth.service.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare const OAUTH_SECRET: InjectionToken<unknown>;
|
|
7
7
|
export declare const OAUTH_AUTH_ENDPOINT: InjectionToken<unknown>;
|
|
8
8
|
export declare const OAUTH_SSO_URL: InjectionToken<unknown>;
|
|
9
|
+
export declare const OAUTH_CLIENT_ID: InjectionToken<unknown>;
|
|
9
10
|
export declare const ACCESS_TOKEN_LOCAL_STORAGE_KEY = "access_token";
|
|
10
11
|
export declare const REFRESH_TOKEN_LOCAL_STORAGE_KEY = "refresh_token";
|
|
11
12
|
export declare const EXPIRES_AT_LOCAL_STORAGE_KEY = "expires_at";
|
|
@@ -26,6 +27,7 @@ export declare class OAuthService<Profile = any> {
|
|
|
26
27
|
private readonly ssoUrl;
|
|
27
28
|
private readonly redirectSignOut;
|
|
28
29
|
private readonly redirectUrl;
|
|
30
|
+
clientId: string | null;
|
|
29
31
|
get expiresAt(): Date | null;
|
|
30
32
|
set expiresAt(value: Date | null);
|
|
31
33
|
get refreshToken(): string | null;
|
|
@@ -41,7 +43,7 @@ export declare class OAuthService<Profile = any> {
|
|
|
41
43
|
private _profile?;
|
|
42
44
|
protected _isAuthenticated: boolean | null;
|
|
43
45
|
get profile(): Profile | null | undefined;
|
|
44
|
-
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);
|
|
46
|
+
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, clientId?: string | null);
|
|
45
47
|
signInWithRedirect(lastUrl?: string): void;
|
|
46
48
|
isAuthenticated(): Promise<boolean>;
|
|
47
49
|
signInWithEmailAndPassword(email: string, password: string, remember: boolean): Promise<OAuthMethodResponse>;
|
|
@@ -54,6 +56,6 @@ export declare class OAuthService<Profile = any> {
|
|
|
54
56
|
private removeItem;
|
|
55
57
|
protected clearStorage(): void;
|
|
56
58
|
private signInWithRefreshToken;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OAuthService<any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OAuthService<any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
58
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<OAuthService<any>>;
|
|
59
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/oauth",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular-devkit/schematics": "^12.2.9",
|
|
6
6
|
"@angular/animations": "^12.0.1",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"@angular/flex-layout": "^12.0.0-beta.34",
|
|
11
11
|
"@angular/material": "^12.0.1",
|
|
12
12
|
"@angular/router": "^12.0.1",
|
|
13
|
-
"@rxap/directives": "^12.1
|
|
14
|
-
"@rxap/services": "^12.0.8
|
|
15
|
-
"@rxap/utilities": "^12.2.
|
|
13
|
+
"@rxap/directives": "^12.3.1",
|
|
14
|
+
"@rxap/services": "^12.0.8",
|
|
15
|
+
"@rxap/utilities": "^12.2.3",
|
|
16
16
|
"reflect-metadata": "^0.1.13",
|
|
17
17
|
"rxjs": "^6.5.5"
|
|
18
18
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"save": "dependencies"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@rxap/schematics-utilities": "^12.
|
|
50
|
+
"@rxap/schematics-utilities": "^12.7.0",
|
|
51
51
|
"tslib": "^2.2.0"
|
|
52
52
|
},
|
|
53
53
|
"main": "bundles/rxap-oauth.umd.js",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
4
4
|
function default_1() {
|
|
5
|
-
return schematics_utilities_1.InstallPeerDependencies();
|
|
5
|
+
return (0, schematics_utilities_1.InstallPeerDependencies)();
|
|
6
6
|
}
|
|
7
7
|
exports.default = default_1;
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/oauth/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,8CAAuB,
|
|
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"}
|