- Updated nuxt.config.js to include Authentik configuration and public keys for client-side access. - Introduced a new composable, useAuth.js, for handling authentication logic with Authentik, including user validation, login, and logout functionalities. - Enhanced documentation to reflect the simplified RBAC structure and the integration of Authentik, emphasizing user-centric design and streamlined permission management. - Refactored middleware for authentication checks and improved error handling during user validation. - Created new pages for login and dashboard, ensuring proper routing and user experience. - Removed obsolete Metabase integration and unnecessary complexity from the project structure.
17 lines
529 B
JavaScript
17 lines
529 B
JavaScript
import { defineNitroConfig } from "nitropack";
|
|
|
|
export default defineNitroConfig({
|
|
runtimeConfig: {
|
|
// Private keys (server-side only)
|
|
authentikApiToken: process.env.AUTHENTIK_API_TOKEN,
|
|
authentikClientId: process.env.AUTHENTIK_CLIENT_ID,
|
|
authentikClientSecret: process.env.AUTHENTIK_CLIENT_SECRET,
|
|
|
|
// Public keys (client-side accessible)
|
|
public: {
|
|
appUrl: process.env.APP_URL || 'http://localhost:3000',
|
|
authentikUrl: process.env.AUTHENTIK_URL || 'http://localhost:9000'
|
|
}
|
|
}
|
|
});
|