- Introduced `ddev` configuration for Laravel-based SAML SSO setup. - Added detailed technical specifications for SAML 2.0 integration, including endpoints, flows, and cryptographic signing. - Created extensive unit tests to validate `SamlIdpController` and `SamlIdpService` functionalities. - Enhanced metadata generation, SAML request parsing, and cryptographic signing of responses. - Implemented models, services, and tests to standardize IdP interactions with Service Providers.
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
import {defineConfig} from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import {bunny} from 'laravel-vite-plugin/fonts';
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
const isDdev = process.env.DDEV_PRIMARY_URL_WITHOUT_PORT !== undefined;
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: ['resources/css/app.css', 'resources/js/app.js'],
|
|
refresh: true,
|
|
fonts: [
|
|
bunny('Instrument Sans', {
|
|
weights: [400, 500, 600],
|
|
}),
|
|
],
|
|
}),
|
|
tailwindcss(),
|
|
],
|
|
server: isDdev ? {
|
|
host: "0.0.0.0",
|
|
port: 5173,
|
|
strictPort: true,
|
|
origin: `${process.env.DDEV_PRIMARY_URL_WITHOUT_PORT}:5173`,
|
|
cors: {
|
|
origin: /https?:\/\/([A-Za-z0-9\-\.]+)?(\.ddev\.site)(?::\d+)?$/,
|
|
},
|
|
watch: {
|
|
ignored: ['**/storage/framework/views/**'],
|
|
},
|
|
} : {
|
|
cors: true,
|
|
watch: {
|
|
ignored: ['**/storage/framework/views/**'],
|
|
},
|
|
},
|
|
});
|