@acorex-platform/extension-microsoft-client 0.0.32 → 0.0.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-microsoft-client-contracts.mjs","sources":["../../../../libs/extensions/microsoft/contracts/src/root-config.ts","../../../../libs/extensions/microsoft/contracts/src/acorex-platform-extension-microsoft-client-contracts.ts"],"sourcesContent":["//#region ---- Module Config ----\n\nconst config = {\n i18n: 'extensions-microsoft',\n module: 'microsoft-extension',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n icon: 'fa-brands fa-microsoft',\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;CAC9B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,IAAI,EAAE,wBAAwB;AAC/B,KAAA;;AAGH;;ACfA;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-extension-microsoft-client-contracts.mjs","sources":["../../../../libs/extensions/microsoft/contracts/src/root-config.ts","../../../../libs/extensions/microsoft/contracts/src/acorex-platform-extension-microsoft-client-contracts.ts"],"sourcesContent":["//#region ---- Module Config ----\n\nconst config = {\n i18n: 'extensions-microsoft',\n module: 'microsoft-extension',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n icon: 'fa-brands fa-microsoft',\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;CAC9B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,IAAI,EAAE,wBAAwB;AAC/B,KAAA;;AAGH;;ACfA;;AAEG;;"}
@@ -43,7 +43,7 @@ class AXEMicrosoftPlatformLoginSlotComponent {
43
43
  }
44
44
  }
45
45
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEMicrosoftPlatformLoginSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
46
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXEMicrosoftPlatformLoginSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button\n class=\"w-full mt-2\"\n text=\"{{ '@auth:authentication.with-microsoft' | translate | async }}\"\n [color]=\"'default'\"\n id=\"microsoft-platform-login\"\n (onClick)=\"handleMicrosoftSignIn()\"\n [disabled]=\"isLoading()\"\n>\n <ax-prefix>\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" />\n </ax-prefix>\n @if (isLoading()) {\n <ax-loading></ax-loading>\n }\n</ax-button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
46
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXEMicrosoftPlatformLoginSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button\n class=\"w-full mt-2\"\n text=\"{{ '@auth:authentication.with-microsoft' | translate | async }}\"\n [color]=\"'default'\"\n id=\"microsoft-platform-login\"\n (onClick)=\"handleMicrosoftSignIn()\"\n [disabled]=\"isLoading()\"\n>\n <ax-prefix>\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" />\n </ax-prefix>\n @if (isLoading()) {\n <ax-loading></ax-loading>\n }\n</ax-button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
47
47
  }
48
48
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEMicrosoftPlatformLoginSlotComponent, decorators: [{
49
49
  type: Component,
@@ -51,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
51
51
  }] });
52
52
 
53
53
  export { AXEMicrosoftPlatformLoginSlotComponent };
54
- //# sourceMappingURL=acorex-platform-extension-microsoft-client-microsoft-platform-login-slot.component-CPNPmuXR.mjs.map
54
+ //# sourceMappingURL=acorex-platform-extension-microsoft-client-microsoft-platform-login-slot.component-CrA_cpaW.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-microsoft-client-microsoft-platform-login-slot.component-CPNPmuXR.mjs","sources":["../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-slot.component.ts","../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-slot.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { axpMicrosoftLogoKey } from '../brand/microsoft-logo-key';\n\n//#region ---- Microsoft platform login slot ----\n\n@Component({\n templateUrl: './microsoft-platform-login-slot.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, AXPLogoComponent],\n})\nexport class AXEMicrosoftPlatformLoginSlotComponent {\n protected readonly logoKey = axpMicrosoftLogoKey;\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly toastService = inject(AXToastService);\n protected isLoading = signal(false);\n\n protected async handleMicrosoftSignIn(): Promise<void> {\n this.isLoading.set(true);\n try {\n this.sessionService.setStrategy('microsoft');\n await this.sessionService.signin({ strategy: 'microsoft' });\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Microsoft sign-in failed.';\n this.toastService.show({\n color: 'danger',\n content: message,\n timeOut: 6000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n}\n\n//#endregion\n","<ax-button\n class=\"w-full mt-2\"\n text=\"{{ '@auth:authentication.with-microsoft' | translate | async }}\"\n [color]=\"'default'\"\n id=\"microsoft-platform-login\"\n (onClick)=\"handleMicrosoftSignIn()\"\n [disabled]=\"isLoading()\"\n>\n <ax-prefix>\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" />\n </ax-prefix>\n @if (isLoading()) {\n <ax-loading></ax-loading>\n }\n</ax-button>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAWA;MAOa,sCAAsC,CAAA;AALnD,IAAA,WAAA,GAAA;QAMqB,IAAA,CAAA,OAAO,GAAG,mBAAmB;AAE/B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,KAAK;sFAAC;AAkBpC,IAAA;AAhBW,IAAA,MAAM,qBAAqB,GAAA;AACnC,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AACxB,QAAA,IAAI;AACF,YAAA,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,WAAW,CAAC;AAC5C,YAAA,MAAM,IAAI,CAAC,cAAc,CAAC,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-CrA_cpaW.mjs","sources":["../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-slot.component.ts","../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-slot.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { axpMicrosoftLogoKey } from '../brand/microsoft-logo-key';\n\n//#region ---- Microsoft platform login slot ----\n\n@Component({\n templateUrl: './microsoft-platform-login-slot.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, AXPLogoComponent],\n})\nexport class AXEMicrosoftPlatformLoginSlotComponent {\n protected readonly logoKey = axpMicrosoftLogoKey;\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly toastService = inject(AXToastService);\n protected isLoading = signal(false);\n\n protected async handleMicrosoftSignIn(): Promise<void> {\n this.isLoading.set(true);\n try {\n this.sessionService.setStrategy('microsoft');\n await this.sessionService.signin({ strategy: 'microsoft' });\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Microsoft sign-in failed.';\n this.toastService.show({\n color: 'danger',\n content: message,\n timeOut: 6000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n}\n\n//#endregion\n","<ax-button\n class=\"w-full mt-2\"\n text=\"{{ '@auth:authentication.with-microsoft' | translate | async }}\"\n [color]=\"'default'\"\n id=\"microsoft-platform-login\"\n (onClick)=\"handleMicrosoftSignIn()\"\n [disabled]=\"isLoading()\"\n>\n <ax-prefix>\n <axp-logo [logoKey]=\"logoKey\"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A,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAEtG,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBALlD,SAAS;AAES,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,8aAAA,EAAA;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i3 from '@acorex-platform/framework-client/auth';
2
- import { AXPAuthStrategy, AXPSessionService, AXPPlatformAuthRuntimeService, resolvePlatformOAuthIssuer, resolvePlatformOAuthClientConfig, PkceUtil, toPlatformOAuthSignInResult, shouldPlatformOAuthBindSession, platformOAuthSessionUpdateParams, resolvePlatformOAuthTokenEndpoint, JwtUtil, TimeUtil, resolvePlatformOAuthAuthorizeEndpoint, AXPAuthModule } from '@acorex-platform/framework-client/auth';
2
+ import { AXPAuthStrategy, AXPSessionService, AXPPlatformAuthRuntimeService, resolvePlatformOAuthIssuer, resolvePlatformOAuthClientConfig, initPlatformOAuthAuthorization, toPlatformOAuthSignInResult, shouldPlatformOAuthBindSession, platformOAuthSessionUpdateParams, exchangePlatformOAuthAuthorizationCode, JwtUtil, TimeUtil, AXPAuthModule } from '@acorex-platform/framework-client/auth';
3
3
  import * as i1 from '@acorex-platform/framework-client/core';
4
4
  import { AXP_LOGO_PROVIDER } from '@acorex-platform/framework-client/core';
5
5
  import { AXM_AUTH_CONFIG_TOKEN, AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT } from '@acorex-platform/module-auth-client';
@@ -29,25 +29,18 @@ class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {
29
29
  async redirectToMicrosoftPlatformAuthorize() {
30
30
  const issuer = this.resolveIssuer();
31
31
  const { clientId, redirectUri, scope } = this.resolveClientConfig();
32
- const codeVerifier = PkceUtil.generateRandomString(128);
33
- localStorage.setItem('pkce_code_verifier', codeVerifier);
34
- const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);
35
32
  this.sessionService.setStrategy('microsoft');
36
- const params = new URLSearchParams({
37
- response_type: 'code',
38
- client_id: clientId,
39
- redirect_uri: redirectUri,
33
+ const { authorizeUrl } = await initPlatformOAuthAuthorization({
34
+ issuer,
35
+ clientId,
36
+ redirectUri,
40
37
  scope,
41
- code_challenge: codeChallenge,
42
- code_challenge_method: 'S256',
43
- prompt: 'login',
44
- acr_values: 'microsoft',
38
+ provider: 'microsoft',
45
39
  });
46
- window.location.assign(`${issuer}/connect/authorize?${params.toString()}`);
40
+ window.location.assign(authorizeUrl);
47
41
  await this.waitForOAuthRedirect();
48
42
  }
49
43
  async signout() {
50
- localStorage.removeItem('pkce_code_verifier');
51
44
  localStorage.removeItem('oauth_provider');
52
45
  await this.platformAuthRuntime.logout();
53
46
  }
@@ -98,31 +91,14 @@ class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {
98
91
  const { clientId, redirectUri } = this.resolveClientConfig();
99
92
  const resolvedRedirectUri = params['redirectUri'] || redirectUri;
100
93
  const resolvedClientId = params['clientId'] || clientId;
101
- const tokenEndpoint = resolvePlatformOAuthTokenEndpoint(issuer);
102
- const codeVerifier = localStorage.getItem('pkce_code_verifier');
103
- if (!codeVerifier) {
104
- throw new Error('Code verifier not found. Please try signing in again.');
105
- }
106
- const body = new URLSearchParams({
107
- grant_type: 'authorization_code',
108
- client_id: resolvedClientId,
109
- code_verifier: codeVerifier,
94
+ const tokenData = await exchangePlatformOAuthAuthorizationCode({
95
+ issuer,
96
+ clientId: resolvedClientId,
97
+ redirectUri: resolvedRedirectUri,
110
98
  code,
111
- redirect_uri: resolvedRedirectUri,
112
- });
113
- const response = await fetch(tokenEndpoint, {
114
- method: 'POST',
115
- credentials: 'include',
116
- headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
117
- body: body.toString(),
118
99
  });
119
- if (!response.ok) {
120
- const detail = await response.text().catch(() => '');
121
- throw new Error(`Token exchange failed: ${response.status} ${response.statusText}${detail ? ` — ${detail}` : ''}`);
122
- }
123
- localStorage.removeItem('pkce_code_verifier');
124
- const tokenData = await response.json();
125
- const payload = JwtUtil.parseJwt(tokenData.id_token);
100
+ const idToken = tokenData['id_token'] ?? null;
101
+ const payload = idToken ? JwtUtil.parseJwt(idToken) : null;
126
102
  if (!payload) {
127
103
  throw new Error('Payload not found');
128
104
  }
@@ -135,10 +111,10 @@ class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {
135
111
  return {
136
112
  succeed: true,
137
113
  data: {
138
- accessToken: tokenData.access_token ?? tokenData.accessToken,
139
- refreshToken: tokenData.refresh_token ?? tokenData.refreshToken,
140
- idToken: tokenData.id_token ?? null,
141
- expiresIn: TimeUtil.calculateExpireInDate(tokenData.expires_in || 0),
114
+ accessToken: tokenData['access_token'] ?? '',
115
+ refreshToken: tokenData['refresh_token'] ?? '',
116
+ idToken,
117
+ expiresIn: TimeUtil.calculateExpireInDate(Number(tokenData['expires_in'] ?? 0)),
142
118
  user,
143
119
  tenant: null,
144
120
  application: null,
@@ -147,31 +123,17 @@ class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {
147
123
  }
148
124
  async beginAuthorizationCodeFlow(params) {
149
125
  const issuer = this.resolveIssuer();
150
- const tenantId = params['tenantId'] ?? params['tenant']?.id ?? null;
151
- const applicationId = params['applicationId'] ?? params['application']?.id ?? null;
152
126
  const { clientId, redirectUri, scope } = this.resolveClientConfig();
153
127
  const resolvedRedirectUri = params['redirectUri'] || redirectUri;
154
128
  const resolvedScope = params['scope'] || scope;
155
- const codeVerifier = PkceUtil.generateRandomString(128);
156
- localStorage.setItem('pkce_code_verifier', codeVerifier);
157
- const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);
158
- const authorizeEndpoint = resolvePlatformOAuthAuthorizeEndpoint(issuer);
159
- const state = Math.random().toString(36).substring(2);
160
- const queryParams = [
161
- `response_type=code`,
162
- `client_id=${encodeURIComponent(clientId)}`,
163
- `redirect_uri=${encodeURIComponent(resolvedRedirectUri)}`,
164
- `scope=${encodeURIComponent(resolvedScope)}`,
165
- `state=${encodeURIComponent(state)}`,
166
- tenantId ? `tenant_id=${encodeURIComponent(tenantId)}` : null,
167
- applicationId ? `application_id=${encodeURIComponent(applicationId)}` : null,
168
- `code_challenge=${encodeURIComponent(codeChallenge)}`,
169
- `code_challenge_method=S256`,
170
- `acr_values=microsoft`,
171
- ]
172
- .filter(Boolean)
173
- .join('&');
174
- window.location.href = `${authorizeEndpoint}?${queryParams}`;
129
+ const { authorizeUrl } = await initPlatformOAuthAuthorization({
130
+ issuer,
131
+ clientId,
132
+ redirectUri: resolvedRedirectUri,
133
+ scope: resolvedScope,
134
+ provider: 'microsoft',
135
+ });
136
+ window.location.href = authorizeUrl;
175
137
  await this.waitForOAuthRedirect();
176
138
  return undefined;
177
139
  }
@@ -248,7 +210,7 @@ class AXEMicrosoftExtensionModule {
248
210
  registry.register(AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, {
249
211
  name: 'microsoft-platform-login',
250
212
  priority: 15,
251
- loadComponent: () => import('./acorex-platform-extension-microsoft-client-microsoft-platform-login-slot.component-CPNPmuXR.mjs').then((component) => component.AXEMicrosoftPlatformLoginSlotComponent),
213
+ loadComponent: () => import('./acorex-platform-extension-microsoft-client-microsoft-platform-login-slot.component-CrA_cpaW.mjs').then((component) => component.AXEMicrosoftPlatformLoginSlotComponent),
252
214
  condition: () => microsoftPlatformLogin.isEnabled(),
253
215
  });
254
216
  }
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-extension-microsoft-client.mjs","sources":["../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-auth.strategy.ts","../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-availability.service.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo-key.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo.provider.ts","../../../../libs/extensions/microsoft/client/src/lib/microsoft-extension.module.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo.component.ts","../../../../libs/extensions/microsoft/client/src/acorex-platform-extension-microsoft-client.ts"],"sourcesContent":["import { AXM_AUTH_CONFIG_TOKEN, AXMAuthConfigs } from '@acorex-platform/module-auth-client';\nimport {\n AXPAuthStrategy,\n AXPBaseCredentials,\n AXPPlatformAuthRuntimeService,\n AXPSessionContext,\n AXPSessionData,\n AXPSessionService,\n AXPSignInResult,\n AXPUser,\n JwtUtil,\n PkceUtil,\n platformOAuthSessionUpdateParams,\n resolvePlatformOAuthAuthorizeEndpoint,\n resolvePlatformOAuthClientConfig,\n resolvePlatformOAuthIssuer,\n resolvePlatformOAuthTokenEndpoint,\n shouldPlatformOAuthBindSession,\n TimeUtil,\n toPlatformOAuthSignInResult,\n} from '@acorex-platform/framework-client/auth';\nimport { inject, Injectable } from '@angular/core';\n\n//#region ---- Microsoft platform auth strategy ----\n\n@Injectable()\nexport class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {\n private readonly authConfigs: AXMAuthConfigs = inject(AXM_AUTH_CONFIG_TOKEN);\n private readonly sessionService = inject(AXPSessionService);\n private readonly platformAuthRuntime = inject(AXPPlatformAuthRuntimeService);\n\n get name(): string {\n return 'microsoft';\n }\n\n private resolveIssuer(): string {\n return resolvePlatformOAuthIssuer(this.authConfigs.baseUrl);\n }\n\n private resolveClientConfig() {\n return resolvePlatformOAuthClientConfig(this.authConfigs.authConfig);\n }\n\n override async signin(_credentials: AXPBaseCredentials): Promise<void> {\n await this.redirectToMicrosoftPlatformAuthorize();\n }\n\n private async redirectToMicrosoftPlatformAuthorize(): Promise<void> {\n const issuer = this.resolveIssuer();\n const { clientId, redirectUri, scope } = this.resolveClientConfig();\n\n const codeVerifier = PkceUtil.generateRandomString(128);\n localStorage.setItem('pkce_code_verifier', codeVerifier);\n const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);\n\n this.sessionService.setStrategy('microsoft');\n\n const params = new URLSearchParams({\n response_type: 'code',\n client_id: clientId,\n redirect_uri: redirectUri,\n scope,\n code_challenge: codeChallenge,\n code_challenge_method: 'S256',\n prompt: 'login',\n acr_values: 'microsoft',\n });\n\n window.location.assign(`${issuer}/connect/authorize?${params.toString()}`);\n await this.waitForOAuthRedirect();\n }\n\n async signout(): Promise<void> {\n localStorage.removeItem('pkce_code_verifier');\n localStorage.removeItem('oauth_provider');\n await this.platformAuthRuntime.logout();\n }\n\n async refreshToken(_context: AXPSessionContext): Promise<AXPSignInResult> {\n try {\n const authData = this.loadAuthData();\n const tokenData = await this.platformAuthRuntime.refresh();\n return toPlatformOAuthSignInResult(tokenData, {\n user: tokenData.user,\n tenant: authData?.tenant ?? null,\n application: authData?.application ?? null,\n });\n } catch (error) {\n console.error('Error refreshing token', error);\n return { succeed: false };\n }\n }\n\n override async updateToken(params: { [key: string]: any }): Promise<AXPSignInResult | undefined> {\n try {\n if (params['code']) {\n return this.exchangeAuthorizationCode(params);\n }\n\n if (shouldPlatformOAuthBindSession(this.sessionService.hasSessionCredentials(), params)) {\n const { tenant, application, tenantId, applicationId } = platformOAuthSessionUpdateParams(params);\n const result = await this.platformAuthRuntime.updateSession({\n tenantId,\n applicationId,\n tenant,\n application,\n });\n return toPlatformOAuthSignInResult(result, {\n user: (params['user'] as AXPUser) ?? null,\n tenant: tenant ?? null,\n application: application ?? null,\n });\n }\n\n return this.beginAuthorizationCodeFlow(params);\n } catch (error) {\n console.error('Error in updateToken:', error);\n throw error;\n }\n }\n\n private async exchangeAuthorizationCode(params: { [key: string]: any }): Promise<AXPSignInResult> {\n const code = params['code'];\n const issuer = this.resolveIssuer();\n const { clientId, redirectUri } = this.resolveClientConfig();\n const resolvedRedirectUri = params['redirectUri'] || redirectUri;\n const resolvedClientId = params['clientId'] || clientId;\n const tokenEndpoint = resolvePlatformOAuthTokenEndpoint(issuer);\n\n const codeVerifier = localStorage.getItem('pkce_code_verifier');\n if (!codeVerifier) {\n throw new Error('Code verifier not found. Please try signing in again.');\n }\n\n const body = new URLSearchParams({\n grant_type: 'authorization_code',\n client_id: resolvedClientId,\n code_verifier: codeVerifier,\n code,\n redirect_uri: resolvedRedirectUri,\n });\n\n const response = await fetch(tokenEndpoint, {\n method: 'POST',\n credentials: 'include',\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n body: body.toString(),\n });\n\n if (!response.ok) {\n const detail = await response.text().catch(() => '');\n throw new Error(\n `Token exchange failed: ${response.status} ${response.statusText}${detail ? ` — ${detail}` : ''}`,\n );\n }\n\n localStorage.removeItem('pkce_code_verifier');\n\n const tokenData = await response.json();\n const payload = JwtUtil.parseJwt(tokenData.id_token);\n if (!payload) {\n throw new Error('Payload not found');\n }\n\n const user = {\n id: payload['sub'] || '',\n title: payload['name'] || payload['email'] || '',\n name: payload['name'] || payload['email'] || '',\n avatar: payload['picture'] || '',\n } as AXPUser;\n\n return {\n succeed: true,\n data: {\n accessToken: tokenData.access_token ?? tokenData.accessToken,\n refreshToken: tokenData.refresh_token ?? tokenData.refreshToken,\n idToken: tokenData.id_token ?? null,\n expiresIn: TimeUtil.calculateExpireInDate(tokenData.expires_in || 0),\n user,\n tenant: null,\n application: null,\n },\n };\n }\n\n private async beginAuthorizationCodeFlow(params: { [key: string]: any }): Promise<undefined> {\n const issuer = this.resolveIssuer();\n const tenantId = params['tenantId'] ?? params['tenant']?.id ?? null;\n const applicationId = params['applicationId'] ?? params['application']?.id ?? null;\n const { clientId, redirectUri, scope } = this.resolveClientConfig();\n const resolvedRedirectUri = params['redirectUri'] || redirectUri;\n const resolvedScope = params['scope'] || scope;\n\n const codeVerifier = PkceUtil.generateRandomString(128);\n localStorage.setItem('pkce_code_verifier', codeVerifier);\n const codeChallenge = await PkceUtil.generateCodeChallenge(codeVerifier);\n\n const authorizeEndpoint = resolvePlatformOAuthAuthorizeEndpoint(issuer);\n const state = Math.random().toString(36).substring(2);\n\n const queryParams = [\n `response_type=code`,\n `client_id=${encodeURIComponent(clientId)}`,\n `redirect_uri=${encodeURIComponent(resolvedRedirectUri)}`,\n `scope=${encodeURIComponent(resolvedScope)}`,\n `state=${encodeURIComponent(state)}`,\n tenantId ? `tenant_id=${encodeURIComponent(tenantId)}` : null,\n applicationId ? `application_id=${encodeURIComponent(applicationId)}` : null,\n `code_challenge=${encodeURIComponent(codeChallenge)}`,\n `code_challenge_method=S256`,\n `acr_values=microsoft`,\n ]\n .filter(Boolean)\n .join('&');\n\n window.location.href = `${authorizeEndpoint}?${queryParams}`;\n await this.waitForOAuthRedirect();\n\n return undefined;\n }\n\n private waitForOAuthRedirect(): Promise<void> {\n return new Promise<void>(() => {});\n }\n\n private loadAuthData(): AXPSessionData | undefined {\n return this.sessionService.getSessionData() || undefined;\n }\n}\n\n//#endregion\n","import { AXPPlatformAuthRuntimeService } from '@acorex-platform/framework-client/auth';\nimport { Injectable, inject } from '@angular/core';\n\n//#region ---- Microsoft platform login availability ----\n\n@Injectable()\nexport class AXEMicrosoftPlatformLoginAvailabilityService {\n private readonly platformAuthRuntime = inject(AXPPlatformAuthRuntimeService);\n private cachedEnabled: boolean | null = null;\n\n async isEnabled(): Promise<boolean> {\n if (this.cachedEnabled !== null) {\n return this.cachedEnabled;\n }\n\n try {\n const providers = await this.platformAuthRuntime.listProviders();\n this.cachedEnabled = providers.identityProviders.some((p) => p.id === 'microsoft');\n return this.cachedEnabled;\n } catch {\n this.cachedEnabled = false;\n return false;\n }\n }\n}\n\n//#endregion\n","//#region ---- Microsoft logo registry key ----\n\nexport const axpMicrosoftLogoKey = 'microsoft' as const;\n\n//#endregion\n","import {\n AXP_LOGO_PROVIDER,\n type AXPLogoProvider,\n type AXPLogoRequest,\n type AXPLogoView,\n} from '@acorex-platform/framework-client/core';\nimport { axpMicrosoftLogoKey } from './microsoft-logo-key';\n\nconst microsoftLogoProvider: AXPLogoProvider = {\n key: axpMicrosoftLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'component',\n load: () =>\n import('./microsoft-logo.component').then((module) => module.AXEMicrosoftLogoComponent),\n inputs: {\n appearance: request.appearance,\n size: request.size,\n },\n }),\n};\n\nexport const AXE_MICROSOFT_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: microsoftLogoProvider,\n multi: true,\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPAuthModule } from '@acorex-platform/framework-client/auth';\nimport { AXPComponentSlotRegistryService } from '@acorex-platform/framework-client/core';\nimport { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT } from '@acorex-platform/module-auth-client';\nimport { NgModule } from '@angular/core';\nimport { AXEMicrosoftPlatformAuthStrategy } from './platform-auth/microsoft-platform-auth.strategy';\nimport { AXEMicrosoftPlatformLoginAvailabilityService } from './platform-auth/microsoft-platform-login-availability.service';\nimport { AXE_MICROSOFT_LOGO_PROVIDER } from './brand/microsoft-logo.provider';\n\n//#endregion\n\n//#region ---- Module ----\n\n/**\n * Microsoft platform login via OAuth.\n * Future: Outlook, OneDrive, Teams integrations can register here.\n */\n@NgModule({\n imports: [AXPAuthModule.forChild({ strategies: [AXEMicrosoftPlatformAuthStrategy] })],\n providers: [AXEMicrosoftPlatformLoginAvailabilityService, AXE_MICROSOFT_LOGO_PROVIDER],\n})\nexport class AXEMicrosoftExtensionModule {\n constructor(\n registry: AXPComponentSlotRegistryService,\n microsoftPlatformLogin: AXEMicrosoftPlatformLoginAvailabilityService,\n ) {\n registry.register(AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, {\n name: 'microsoft-platform-login',\n priority: 15,\n loadComponent: () =>\n import('./platform-auth/microsoft-platform-login-slot.component').then(\n (component) => component.AXEMicrosoftPlatformLoginSlotComponent,\n ),\n condition: () => microsoftPlatformLogin.isEnabled(),\n });\n }\n}\n\n//#endregion\n","import type { AXPLogoAppearance } from '@acorex-platform/framework-client/core';\nimport { Component, computed, input, ChangeDetectionStrategy } from '@angular/core';\n\n//#region ---- Microsoft brand logo (owned by Microsoft extension) ----\n\n@Component({\n selector: 'axe-microsoft-logo',\n host: { class: 'inline-flex items-center justify-center' },\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n @switch (resolvedAppearance()) {\n @case ('monochrome') {\n <svg [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 23 23\" aria-hidden=\"true\">\n <path fill=\"currentColor\" d=\"M1 1h10v10H1zm11 0h10v10H12zM1 12h10v10H1zm11 0h10v10H12z\" />\n </svg>\n }\n @default {\n <svg [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 23 23\" aria-hidden=\"true\">\n <path fill=\"#F35325\" d=\"M1 1h10v10H1z\" />\n <path fill=\"#81BC06\" d=\"M12 1h10v10H12z\" />\n <path fill=\"#05A6F0\" d=\"M1 12h10v10H1z\" />\n <path fill=\"#FFBA08\" d=\"M12 12h10v10H12z\" />\n </svg>\n }\n }\n `,\n})\nexport class AXEMicrosoftLogoComponent {\n appearance = input<AXPLogoAppearance>('colored');\n size = input(20);\n\n protected readonly resolvedAppearance = computed(() => {\n const value = this.appearance();\n return value === 'monochrome' ? 'monochrome' : 'colored';\n });\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.AXEMicrosoftPlatformLoginAvailabilityService"],"mappings":";;;;;;;;AAuBA;AAGM,MAAO,gCAAiC,SAAQ,eAAe,CAAA;AADrE,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,WAAW,GAAmB,MAAM,CAAC,qBAAqB,CAAC;AAC3D,QAAA,IAA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AAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,yCAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAlB1B;;;;;;;;;;;;;;;;AAgBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAEU,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAtBrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,yCAAyC,EAAE;oBAC1D,eAAe,EAAE,uBAAuB,CAAC,KAAK;AAC9C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;AAgBT,EAAA,CAAA;AACF,iBAAA;;;;;;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-extension-microsoft-client.mjs","sources":["../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-auth.strategy.ts","../../../../libs/extensions/microsoft/client/src/lib/platform-auth/microsoft-platform-login-availability.service.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo-key.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo.provider.ts","../../../../libs/extensions/microsoft/client/src/lib/microsoft-extension.module.ts","../../../../libs/extensions/microsoft/client/src/lib/brand/microsoft-logo.component.ts","../../../../libs/extensions/microsoft/client/src/acorex-platform-extension-microsoft-client.ts"],"sourcesContent":["import { AXM_AUTH_CONFIG_TOKEN, AXMAuthConfigs } from '@acorex-platform/module-auth-client';\nimport {\n AXPAuthStrategy,\n AXPBaseCredentials,\n AXPPlatformAuthRuntimeService,\n AXPSessionContext,\n AXPSessionData,\n AXPSessionService,\n AXPSignInResult,\n AXPUser,\n JwtUtil,\n exchangePlatformOAuthAuthorizationCode,\n initPlatformOAuthAuthorization,\n platformOAuthSessionUpdateParams,\n resolvePlatformOAuthClientConfig,\n resolvePlatformOAuthIssuer,\n shouldPlatformOAuthBindSession,\n TimeUtil,\n toPlatformOAuthSignInResult,\n} from '@acorex-platform/framework-client/auth';\nimport { inject, Injectable } from '@angular/core';\n\n//#region ---- Microsoft platform auth strategy ----\n\n@Injectable()\nexport class AXEMicrosoftPlatformAuthStrategy extends AXPAuthStrategy {\n private readonly authConfigs: AXMAuthConfigs = inject(AXM_AUTH_CONFIG_TOKEN);\n private readonly sessionService = inject(AXPSessionService);\n private readonly platformAuthRuntime = inject(AXPPlatformAuthRuntimeService);\n\n get name(): string {\n return 'microsoft';\n }\n\n private resolveIssuer(): string {\n return resolvePlatformOAuthIssuer(this.authConfigs.baseUrl);\n }\n\n private resolveClientConfig() {\n return resolvePlatformOAuthClientConfig(this.authConfigs.authConfig);\n }\n\n override async signin(_credentials: AXPBaseCredentials): Promise<void> {\n await this.redirectToMicrosoftPlatformAuthorize();\n }\n\n private async redirectToMicrosoftPlatformAuthorize(): Promise<void> {\n const issuer = this.resolveIssuer();\n const { clientId, redirectUri, scope } = this.resolveClientConfig();\n\n this.sessionService.setStrategy('microsoft');\n\n const { authorizeUrl } = await initPlatformOAuthAuthorization({\n issuer,\n clientId,\n redirectUri,\n scope,\n provider: 'microsoft',\n });\n\n window.location.assign(authorizeUrl);\n await this.waitForOAuthRedirect();\n }\n\n async signout(): Promise<void> {\n localStorage.removeItem('oauth_provider');\n await this.platformAuthRuntime.logout();\n }\n\n async refreshToken(_context: AXPSessionContext): Promise<AXPSignInResult> {\n try {\n const authData = this.loadAuthData();\n const tokenData = await this.platformAuthRuntime.refresh();\n return toPlatformOAuthSignInResult(tokenData, {\n user: tokenData.user,\n tenant: authData?.tenant ?? null,\n application: authData?.application ?? null,\n });\n } catch (error) {\n console.error('Error refreshing token', error);\n return { succeed: false };\n }\n }\n\n override async updateToken(params: { [key: string]: any }): Promise<AXPSignInResult | undefined> {\n try {\n if (params['code']) {\n return this.exchangeAuthorizationCode(params);\n }\n\n if (shouldPlatformOAuthBindSession(this.sessionService.hasSessionCredentials(), params)) {\n const { tenant, application, tenantId, applicationId } = platformOAuthSessionUpdateParams(params);\n const result = await this.platformAuthRuntime.updateSession({\n tenantId,\n applicationId,\n tenant,\n application,\n });\n return toPlatformOAuthSignInResult(result, {\n user: (params['user'] as AXPUser) ?? null,\n tenant: tenant ?? null,\n application: application ?? null,\n });\n }\n\n return this.beginAuthorizationCodeFlow(params);\n } catch (error) {\n console.error('Error in updateToken:', error);\n throw error;\n }\n }\n\n private async exchangeAuthorizationCode(params: { [key: string]: any }): Promise<AXPSignInResult> {\n const code = params['code'];\n const issuer = this.resolveIssuer();\n const { clientId, redirectUri } = this.resolveClientConfig();\n const resolvedRedirectUri = params['redirectUri'] || redirectUri;\n const resolvedClientId = params['clientId'] || clientId;\n\n const tokenData = await exchangePlatformOAuthAuthorizationCode({\n issuer,\n clientId: resolvedClientId,\n redirectUri: resolvedRedirectUri,\n code,\n });\n\n const idToken = (tokenData['id_token'] as string | undefined) ?? null;\n const payload = idToken ? JwtUtil.parseJwt(idToken) : null;\n if (!payload) {\n throw new Error('Payload not found');\n }\n\n const user = {\n id: payload['sub'] || '',\n title: payload['name'] || payload['email'] || '',\n name: payload['name'] || payload['email'] || '',\n avatar: payload['picture'] || '',\n } as AXPUser;\n\n return {\n succeed: true,\n data: {\n accessToken: (tokenData['access_token'] as string | undefined) ?? '',\n refreshToken: (tokenData['refresh_token'] as string | undefined) ?? '',\n idToken,\n expiresIn: TimeUtil.calculateExpireInDate(Number(tokenData['expires_in'] ?? 0)),\n user,\n tenant: null,\n application: null,\n },\n };\n }\n\n private async beginAuthorizationCodeFlow(params: { [key: string]: any }): Promise<undefined> {\n const issuer = this.resolveIssuer();\n const { clientId, redirectUri, scope } = this.resolveClientConfig();\n const resolvedRedirectUri = params['redirectUri'] || redirectUri;\n const resolvedScope = params['scope'] || scope;\n\n const { authorizeUrl } = await initPlatformOAuthAuthorization({\n issuer,\n clientId,\n redirectUri: resolvedRedirectUri,\n scope: resolvedScope,\n provider: 'microsoft',\n });\n\n window.location.href = authorizeUrl;\n await this.waitForOAuthRedirect();\n\n return undefined;\n }\n\n private waitForOAuthRedirect(): Promise<void> {\n return new Promise<void>(() => {});\n }\n\n private loadAuthData(): AXPSessionData | undefined {\n return this.sessionService.getSessionData() || undefined;\n }\n}\n\n//#endregion\n","import { AXPPlatformAuthRuntimeService } from '@acorex-platform/framework-client/auth';\nimport { Injectable, inject } from '@angular/core';\n\n//#region ---- Microsoft platform login availability ----\n\n@Injectable()\nexport class AXEMicrosoftPlatformLoginAvailabilityService {\n private readonly platformAuthRuntime = inject(AXPPlatformAuthRuntimeService);\n private cachedEnabled: boolean | null = null;\n\n async isEnabled(): Promise<boolean> {\n if (this.cachedEnabled !== null) {\n return this.cachedEnabled;\n }\n\n try {\n const providers = await this.platformAuthRuntime.listProviders();\n this.cachedEnabled = providers.identityProviders.some((p) => p.id === 'microsoft');\n return this.cachedEnabled;\n } catch {\n this.cachedEnabled = false;\n return false;\n }\n }\n}\n\n//#endregion\n","//#region ---- Microsoft logo registry key ----\n\nexport const axpMicrosoftLogoKey = 'microsoft' as const;\n\n//#endregion\n","import {\n AXP_LOGO_PROVIDER,\n type AXPLogoProvider,\n type AXPLogoRequest,\n type AXPLogoView,\n} from '@acorex-platform/framework-client/core';\nimport { axpMicrosoftLogoKey } from './microsoft-logo-key';\n\nconst microsoftLogoProvider: AXPLogoProvider = {\n key: axpMicrosoftLogoKey,\n resolve: async (request: AXPLogoRequest): Promise<AXPLogoView> => ({\n kind: 'component',\n load: () =>\n import('./microsoft-logo.component').then((module) => module.AXEMicrosoftLogoComponent),\n inputs: {\n appearance: request.appearance,\n size: request.size,\n },\n }),\n};\n\nexport const AXE_MICROSOFT_LOGO_PROVIDER = {\n provide: AXP_LOGO_PROVIDER,\n useValue: microsoftLogoProvider,\n multi: true,\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPAuthModule } from '@acorex-platform/framework-client/auth';\nimport { AXPComponentSlotRegistryService } from '@acorex-platform/framework-client/core';\nimport { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT } from '@acorex-platform/module-auth-client';\nimport { NgModule } from '@angular/core';\nimport { AXEMicrosoftPlatformAuthStrategy } from './platform-auth/microsoft-platform-auth.strategy';\nimport { AXEMicrosoftPlatformLoginAvailabilityService } from './platform-auth/microsoft-platform-login-availability.service';\nimport { AXE_MICROSOFT_LOGO_PROVIDER } from './brand/microsoft-logo.provider';\n\n//#endregion\n\n//#region ---- Module ----\n\n/**\n * Microsoft platform login via OAuth.\n * Future: Outlook, OneDrive, Teams integrations can register here.\n */\n@NgModule({\n imports: [AXPAuthModule.forChild({ strategies: [AXEMicrosoftPlatformAuthStrategy] })],\n providers: [AXEMicrosoftPlatformLoginAvailabilityService, AXE_MICROSOFT_LOGO_PROVIDER],\n})\nexport class AXEMicrosoftExtensionModule {\n constructor(\n registry: AXPComponentSlotRegistryService,\n microsoftPlatformLogin: AXEMicrosoftPlatformLoginAvailabilityService,\n ) {\n registry.register(AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, {\n name: 'microsoft-platform-login',\n priority: 15,\n loadComponent: () =>\n import('./platform-auth/microsoft-platform-login-slot.component').then(\n (component) => component.AXEMicrosoftPlatformLoginSlotComponent,\n ),\n condition: () => microsoftPlatformLogin.isEnabled(),\n });\n }\n}\n\n//#endregion\n","import type { AXPLogoAppearance } from '@acorex-platform/framework-client/core';\nimport { Component, computed, input, ChangeDetectionStrategy } from '@angular/core';\n\n//#region ---- Microsoft brand logo (owned by Microsoft extension) ----\n\n@Component({\n selector: 'axe-microsoft-logo',\n host: { class: 'inline-flex items-center justify-center' },\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n @switch (resolvedAppearance()) {\n @case ('monochrome') {\n <svg [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 23 23\" aria-hidden=\"true\">\n <path fill=\"currentColor\" d=\"M1 1h10v10H1zm11 0h10v10H12zM1 12h10v10H1zm11 0h10v10H12z\" />\n </svg>\n }\n @default {\n <svg [attr.width]=\"size()\" [attr.height]=\"size()\" viewBox=\"0 0 23 23\" aria-hidden=\"true\">\n <path fill=\"#F35325\" d=\"M1 1h10v10H1z\" />\n <path fill=\"#81BC06\" d=\"M12 1h10v10H12z\" />\n <path fill=\"#05A6F0\" d=\"M1 12h10v10H1z\" />\n <path fill=\"#FFBA08\" d=\"M12 12h10v10H12z\" />\n </svg>\n }\n }\n `,\n})\nexport class AXEMicrosoftLogoComponent {\n appearance = input<AXPLogoAppearance>('colored');\n size = input(20);\n\n protected readonly resolvedAppearance = computed(() => {\n const value = this.appearance();\n return value === 'monochrome' ? 'monochrome' : 'colored';\n });\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.AXEMicrosoftPlatformLoginAvailabilityService"],"mappings":";;;;;;;;AAsBA;AAGM,MAAO,gCAAiC,SAAQ,eAAe,CAAA;AADrE,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,WAAW,GAAmB,MAAM,CAAC,qBAAqB,CAAC;AAC3D,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,mBAAmB,GAAG,MAAM,CAAC,6BAA6B,CAAC;AAwJ7E,IAAA;AAtJC,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,WAAW;IACpB;IAEQ,aAAa,GAAA;QACnB,OAAO,0BAA0B,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;IAC7D;IAEQ,mBAAmB,GAAA;QACzB,OAAO,gCAAgC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC;IACtE;IAES,MAAM,MAAM,CAAC,YAAgC,EAAA;AACpD,QAAA,MAAM,IAAI,CAAC,oCAAoC,EAAE;IACnD;AAEQ,IA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AC,KAAK;AAC9C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;AAgBT,EAAA,CAAA;AACF,iBAAA;;;;;;;;AC1BD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/extension-microsoft-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.37",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",