"feat: Add CREDENTIALS.md and update database connection in backend/app/database/myp.db

This commit is contained in:
Till Tomczak 2025-05-26 10:20:55 +02:00
parent 02aeec4cf0
commit 33b565773b
4 changed files with 13 additions and 3 deletions

1
CREDENTIALS.md Normal file
View File

@ -0,0 +1 @@

Binary file not shown.

View File

@ -60,7 +60,12 @@
@layer components {
/* Dark Mode Styles für Admin Panel */
.dark .bg-dark-card {
@apply bg-dark-card transition-colors;
@apply bg-dark-surface transition-colors;
}
/* Alternative direkte Definition ohne Zirkularität */
.bg-dark-surface {
background-color: #1e293b;
}
/* Übergangseffekt für alle Komponenten */

View File

@ -24,10 +24,14 @@ const getCallbackUrl = () => {
// Berechne die Callback-URL
export const USED_CALLBACK_URL = getCallbackUrl();
// Hardcodierte GitHub OAuth-Credentials
const GITHUB_CLIENT_ID = "7c5d8bef1a5519ec1fdc";
const GITHUB_CLIENT_SECRET = "5f1e586204358fbd53cf5fb7d418b3f06ccab8fd";
// Erstelle GitHub OAuth-Client mit expliziter Redirect-URI
export const github = new GitHub(
process.env.OAUTH_CLIENT_ID as string,
process.env.OAUTH_CLIENT_SECRET as string,
GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET,
{
enterpriseDomain: "https://git.i.mercedes-benz.com",
redirectURI: USED_CALLBACK_URL,