@kolektor/nucleus-identity 0.0.8-pre.5331 → 0.0.8-pre.5674
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/kolektor-nucleus-identity.umd.js +37 -28
- package/bundles/kolektor-nucleus-identity.umd.js.map +1 -1
- package/esm2015/lib/nucleus-identity-config.js +1 -1
- package/esm2015/lib/nucleus-identity.module.js +4 -4
- package/esm2015/lib/nucleus-identity.service.js +11 -9
- package/esm2015/lib/nucleus-token-interceptor.service.js +3 -3
- package/esm2015/lib/utils/angular-requestor.js +3 -3
- package/esm2015/lib/utils/location.service.js +3 -3
- package/esm2015/lib/utils/oidc-configuration.service.js +7 -4
- package/esm2015/lib/utils/token-client.js +3 -3
- package/fesm2015/kolektor-nucleus-identity.js +32 -27
- package/fesm2015/kolektor-nucleus-identity.js.map +1 -1
- package/lib/nucleus-identity-config.d.ts +1 -0
- package/lib/utils/oidc-configuration.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
ar[i] = from[i];
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return to.concat(ar || from);
|
|
267
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
268
268
|
}
|
|
269
269
|
function __await(v) {
|
|
270
270
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -765,9 +765,9 @@
|
|
|
765
765
|
};
|
|
766
766
|
return LocationService;
|
|
767
767
|
}());
|
|
768
|
-
LocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
769
|
-
LocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
770
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
768
|
+
LocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: LocationService, deps: [{ token: i1__namespace.NucleusAppService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
769
|
+
LocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: LocationService, providedIn: 'root' });
|
|
770
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: LocationService, decorators: [{
|
|
771
771
|
type: i0.Injectable,
|
|
772
772
|
args: [{
|
|
773
773
|
providedIn: 'root'
|
|
@@ -828,9 +828,9 @@
|
|
|
828
828
|
};
|
|
829
829
|
return AngularRequestor;
|
|
830
830
|
}(appauth.Requestor));
|
|
831
|
-
AngularRequestor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
832
|
-
AngularRequestor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
833
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
831
|
+
AngularRequestor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: AngularRequestor, deps: [{ token: i1__namespace$1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
832
|
+
AngularRequestor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: AngularRequestor, providedIn: 'root' });
|
|
833
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: AngularRequestor, decorators: [{
|
|
834
834
|
type: i0.Injectable,
|
|
835
835
|
args: [{
|
|
836
836
|
providedIn: 'root'
|
|
@@ -886,6 +886,13 @@
|
|
|
886
886
|
enumerable: false,
|
|
887
887
|
configurable: true
|
|
888
888
|
});
|
|
889
|
+
Object.defineProperty(OidcConfigurationService.prototype, "authProviderHint", {
|
|
890
|
+
get: function () {
|
|
891
|
+
return this.config.authProviderHint;
|
|
892
|
+
},
|
|
893
|
+
enumerable: false,
|
|
894
|
+
configurable: true
|
|
895
|
+
});
|
|
889
896
|
Object.defineProperty(OidcConfigurationService.prototype, "redirectUrl", {
|
|
890
897
|
get: function () {
|
|
891
898
|
var uri = window.location.href;
|
|
@@ -955,9 +962,9 @@
|
|
|
955
962
|
};
|
|
956
963
|
return OidcConfigurationService;
|
|
957
964
|
}());
|
|
958
|
-
OidcConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
959
|
-
OidcConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
960
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
965
|
+
OidcConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: OidcConfigurationService, deps: [{ token: AngularRequestor }, { token: NucleusIdentityConfig }, { token: i1__namespace.NucleusAppService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
966
|
+
OidcConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: OidcConfigurationService, providedIn: 'root' });
|
|
967
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: OidcConfigurationService, decorators: [{
|
|
961
968
|
type: i0.Injectable,
|
|
962
969
|
args: [{
|
|
963
970
|
providedIn: 'root'
|
|
@@ -1202,9 +1209,9 @@
|
|
|
1202
1209
|
};
|
|
1203
1210
|
return TokenClient;
|
|
1204
1211
|
}());
|
|
1205
|
-
TokenClient.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1206
|
-
TokenClient.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
1207
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1212
|
+
TokenClient.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: TokenClient, deps: [{ token: AngularRequestor }, { token: OidcConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1213
|
+
TokenClient.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: TokenClient, providedIn: 'root' });
|
|
1214
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: TokenClient, decorators: [{
|
|
1208
1215
|
type: i0.Injectable,
|
|
1209
1216
|
args: [{
|
|
1210
1217
|
providedIn: 'root'
|
|
@@ -1603,16 +1610,18 @@
|
|
|
1603
1610
|
};
|
|
1604
1611
|
NucleusIdentityService.prototype.prepareAuthorizationRequest = function () {
|
|
1605
1612
|
var redirectUri = this.config.redirectUrl;
|
|
1613
|
+
var params = {
|
|
1614
|
+
response_mode: 'fragment',
|
|
1615
|
+
prompt: 'consent',
|
|
1616
|
+
access_type: 'offline',
|
|
1617
|
+
auth_provider_hint: this.config.authProviderHint
|
|
1618
|
+
};
|
|
1606
1619
|
return new appauth.AuthorizationRequest({
|
|
1607
1620
|
client_id: this.config.clientId,
|
|
1608
1621
|
redirect_uri: redirectUri,
|
|
1609
1622
|
response_type: appauth.AuthorizationRequest.RESPONSE_TYPE_CODE,
|
|
1610
1623
|
scope: this.prepareScope(true, this.config.requestedScopes),
|
|
1611
|
-
extras:
|
|
1612
|
-
response_mode: 'fragment',
|
|
1613
|
-
prompt: 'consent',
|
|
1614
|
-
access_type: 'offline'
|
|
1615
|
-
}
|
|
1624
|
+
extras: params,
|
|
1616
1625
|
}, this._crypto, true);
|
|
1617
1626
|
};
|
|
1618
1627
|
NucleusIdentityService.prototype.loginServicePrincipalInternal = function () {
|
|
@@ -1767,9 +1776,9 @@
|
|
|
1767
1776
|
};
|
|
1768
1777
|
return NucleusIdentityService;
|
|
1769
1778
|
}());
|
|
1770
|
-
NucleusIdentityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1771
|
-
NucleusIdentityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
1772
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1779
|
+
NucleusIdentityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityService, deps: [{ token: i1__namespace.NucleusAppService }, { token: LocationService }, { token: i1__namespace$1.HttpClient }, { token: OidcConfigurationService }, { token: TokenClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1780
|
+
NucleusIdentityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityService, providedIn: 'root' });
|
|
1781
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityService, decorators: [{
|
|
1773
1782
|
type: i0.Injectable,
|
|
1774
1783
|
args: [{
|
|
1775
1784
|
providedIn: 'root'
|
|
@@ -1826,9 +1835,9 @@
|
|
|
1826
1835
|
};
|
|
1827
1836
|
return NucleusTokenInterceptor;
|
|
1828
1837
|
}());
|
|
1829
|
-
NucleusTokenInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1830
|
-
NucleusTokenInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
1831
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1838
|
+
NucleusTokenInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusTokenInterceptor, deps: [{ token: NucleusIdentityService }, { token: NucleusIdentityConfig }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1839
|
+
NucleusTokenInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusTokenInterceptor, providedIn: 'root' });
|
|
1840
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusTokenInterceptor, decorators: [{
|
|
1832
1841
|
type: i0.Injectable,
|
|
1833
1842
|
args: [{
|
|
1834
1843
|
providedIn: 'root'
|
|
@@ -1849,10 +1858,10 @@
|
|
|
1849
1858
|
};
|
|
1850
1859
|
return NucleusIdentityModule;
|
|
1851
1860
|
}());
|
|
1852
|
-
NucleusIdentityModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1853
|
-
NucleusIdentityModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1854
|
-
NucleusIdentityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1855
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1861
|
+
NucleusIdentityModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1862
|
+
NucleusIdentityModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityModule });
|
|
1863
|
+
NucleusIdentityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityModule, imports: [[]] });
|
|
1864
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.3", ngImport: i0__namespace, type: NucleusIdentityModule, decorators: [{
|
|
1856
1865
|
type: i0.NgModule,
|
|
1857
1866
|
args: [{
|
|
1858
1867
|
imports: [],
|