@eventcatalog/core 2.43.1 → 2.43.3
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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-QYZZIYJW.js → chunk-JZJVAKU2.js} +1 -1
- package/dist/{chunk-ZV5T7TKQ.js → chunk-TU6VXO7L.js} +1 -1
- package/dist/{chunk-A6LT34RD.js → chunk-V25ESTIN.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.auth.d.cts +4 -0
- package/dist/eventcatalog.auth.d.ts +4 -0
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/auth.config.ts +14 -0
- package/eventcatalog/src/components/Header.astro +1 -1
- package/eventcatalog/src/pages/auth/login.astro +6 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-TU6VXO7L.js";
|
|
4
|
+
import "../chunk-JZJVAKU2.js";
|
|
5
|
+
import "../chunk-V25ESTIN.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
|
@@ -2,12 +2,16 @@ import { OAuthUserConfig } from '@auth/core/providers';
|
|
|
2
2
|
import { GitHubProfile } from '@auth/core/providers/github';
|
|
3
3
|
import { OktaProfile } from '@auth/core/providers/okta';
|
|
4
4
|
import { Auth0Profile } from '@auth/core/providers/auth0';
|
|
5
|
+
import { MicrosoftEntraIDProfile } from '@auth/core/providers/microsoft-entra-id';
|
|
6
|
+
import { GoogleProfile } from '@auth/core/providers/google';
|
|
5
7
|
|
|
6
8
|
interface EventCatalogAuthConfig {
|
|
7
9
|
providers?: {
|
|
8
10
|
github?: OAuthUserConfig<GitHubProfile>;
|
|
11
|
+
google?: OAuthUserConfig<GoogleProfile>;
|
|
9
12
|
okta?: OAuthUserConfig<OktaProfile>;
|
|
10
13
|
auth0?: OAuthUserConfig<Auth0Profile>;
|
|
14
|
+
entra?: OAuthUserConfig<MicrosoftEntraIDProfile>;
|
|
11
15
|
};
|
|
12
16
|
customAuthConfig?: string;
|
|
13
17
|
customMiddleware?: string;
|
|
@@ -2,12 +2,16 @@ import { OAuthUserConfig } from '@auth/core/providers';
|
|
|
2
2
|
import { GitHubProfile } from '@auth/core/providers/github';
|
|
3
3
|
import { OktaProfile } from '@auth/core/providers/okta';
|
|
4
4
|
import { Auth0Profile } from '@auth/core/providers/auth0';
|
|
5
|
+
import { MicrosoftEntraIDProfile } from '@auth/core/providers/microsoft-entra-id';
|
|
6
|
+
import { GoogleProfile } from '@auth/core/providers/google';
|
|
5
7
|
|
|
6
8
|
interface EventCatalogAuthConfig {
|
|
7
9
|
providers?: {
|
|
8
10
|
github?: OAuthUserConfig<GitHubProfile>;
|
|
11
|
+
google?: OAuthUserConfig<GoogleProfile>;
|
|
9
12
|
okta?: OAuthUserConfig<OktaProfile>;
|
|
10
13
|
auth0?: OAuthUserConfig<Auth0Profile>;
|
|
14
|
+
entra?: OAuthUserConfig<MicrosoftEntraIDProfile>;
|
|
11
15
|
};
|
|
12
16
|
customAuthConfig?: string;
|
|
13
17
|
customMiddleware?: string;
|
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TU6VXO7L.js";
|
|
10
|
+
import "./chunk-JZJVAKU2.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-EXAALOQA.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V25ESTIN.js";
|
|
19
19
|
import {
|
|
20
20
|
isAuthEnabled,
|
|
21
21
|
isBackstagePluginEnabled,
|
|
@@ -6,6 +6,7 @@ import type { Account, Profile, User, Session } from '@auth/core/types';
|
|
|
6
6
|
import { isAuthEnabled, isSSR } from '@utils/feature';
|
|
7
7
|
import Google from '@auth/core/providers/google';
|
|
8
8
|
import Auth0 from '@auth/core/providers/auth0';
|
|
9
|
+
import Entra from '@auth/core/providers/microsoft-entra-id';
|
|
9
10
|
|
|
10
11
|
// Need to try and read the eventcatalog.auth.js file and get the auth providers from there
|
|
11
12
|
const catalogDirectory = process.env.PROJECT_DIR || process.cwd();
|
|
@@ -67,6 +68,19 @@ const getAuthProviders = async () => {
|
|
|
67
68
|
console.log('✅ Auth0 provider configured');
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
// Microsoft Entra ID provider
|
|
72
|
+
if (authConfig.providers?.entra) {
|
|
73
|
+
const entraConfig = authConfig.providers.entra;
|
|
74
|
+
providers.push(
|
|
75
|
+
Entra({
|
|
76
|
+
clientId: entraConfig.clientId,
|
|
77
|
+
clientSecret: entraConfig.clientSecret,
|
|
78
|
+
issuer: entraConfig.issuer,
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
console.log('✅ Microsoft Entra ID provider configured');
|
|
82
|
+
}
|
|
83
|
+
|
|
70
84
|
if (providers.length === 0) {
|
|
71
85
|
console.warn('⚠️ No auth providers configured');
|
|
72
86
|
}
|
|
@@ -71,7 +71,7 @@ const repositoryUrl = catalog?.repositoryUrl || 'https://github.com/event-catalo
|
|
|
71
71
|
</button>
|
|
72
72
|
<div
|
|
73
73
|
id="profile-dropdown"
|
|
74
|
-
class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 border border-gray-100"
|
|
74
|
+
class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 border border-gray-100 overflow-hidden"
|
|
75
75
|
>
|
|
76
76
|
<div class="px-4 py-2 text-sm text-gray-700 border-b border-gray-100">
|
|
77
77
|
<div class="font-medium">{session.user?.name || 'User'}</div>
|
|
@@ -56,6 +56,10 @@ const providerConfig = {
|
|
|
56
56
|
name: 'Auth0',
|
|
57
57
|
icon: `<svg class="w-5 h-5" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#000000" d="M12.549 1h-4.55l1.407 4.38h4.548l-3.68 2.61 1.406 4.405c2.37-1.725 3.143-4.336 2.274-7.016L12.55 1zM2.045 5.38h4.55L8 1H3.45L2.045 5.38c-.868 2.68-.094 5.29 2.275 7.015L5.725 7.99l-3.68-2.612zm2.275 7.015L8 15l3.68-2.605L8 9.745l-3.68 2.65z"></path></g></svg>`,
|
|
58
58
|
},
|
|
59
|
+
entra: {
|
|
60
|
+
name: 'Microsoft',
|
|
61
|
+
icon: `<svg class="w-5 h-5" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#F35325" d="M1 1h6.5v6.5H1V1z"></path><path fill="#81BC06" d="M8.5 1H15v6.5H8.5V1z"></path><path fill="#05A6F0" d="M1 8.5h6.5V15H1V8.5z"></path><path fill="#FFBA08" d="M8.5 8.5H15V15H8.5V8.5z"></path></g></svg>`,
|
|
62
|
+
},
|
|
59
63
|
};
|
|
60
64
|
---
|
|
61
65
|
|
|
@@ -261,7 +265,8 @@ const providerConfig = {
|
|
|
261
265
|
providerButtons.forEach((button) => {
|
|
262
266
|
const provider = button.getAttribute('data-provider');
|
|
263
267
|
if (provider) {
|
|
264
|
-
|
|
268
|
+
let providerId = provider === 'entra' ? 'microsoft-entra-id' : provider;
|
|
269
|
+
button.addEventListener('click', () => signIn(providerId));
|
|
265
270
|
}
|
|
266
271
|
});
|
|
267
272
|
</script>
|