remove emojis

This commit is contained in:
simonredfern 2025-12-29 18:01:29 +01:00
parent b64ce3bf3e
commit 2f00ca98e1
3 changed files with 16 additions and 16 deletions

View File

@ -153,19 +153,19 @@ let instance: any
if (success) {
const availableProviders = providerManager.getAvailableProviders()
console.log(` Initialized ${availableProviders.length} OAuth2 providers:`)
console.log(`OK Initialized ${availableProviders.length} OAuth2 providers:`)
availableProviders.forEach((name) => console.log(` - ${name}`))
// Start health monitoring
providerManager.startHealthCheck(60000) // Check every 60 seconds
console.log(' Provider health monitoring started (every 60s)')
console.log('OK Provider health monitoring started (every 60s)')
} else {
console.warn(' No OAuth2 providers initialized from OBP API')
console.warn(' Falling back to legacy single-provider mode...')
console.warn('WARNING No OAuth2 providers initialized from OBP API')
console.warn('WARNING Falling back to legacy single-provider mode...')
}
} catch (error) {
console.error(' Failed to initialize OAuth2 multi-provider:', error)
console.warn(' Falling back to legacy single-provider mode...')
console.error('ERROR Failed to initialize OAuth2 multi-provider:', error)
console.warn('WARNING Falling back to legacy single-provider mode...')
}
console.log(`-----------------------------------------------------------------`)

View File

@ -76,7 +76,7 @@ export class OAuth2ProviderFactory {
process.env.VITE_OBP_OAUTH2_REDIRECT_URL || 'http://localhost:5173/api/oauth2/callback',
scopes: ['openid', 'profile', 'email']
})
console.log(' OBP-OIDC strategy loaded')
console.log(' OK OBP-OIDC strategy loaded')
}
// Keycloak Strategy
@ -88,7 +88,7 @@ export class OAuth2ProviderFactory {
process.env.VITE_KEYCLOAK_REDIRECT_URL || 'http://localhost:5173/api/oauth2/callback',
scopes: ['openid', 'profile', 'email']
})
console.log(' Keycloak strategy loaded')
console.log(' OK Keycloak strategy loaded')
}
// Google Strategy
@ -100,7 +100,7 @@ export class OAuth2ProviderFactory {
process.env.VITE_GOOGLE_REDIRECT_URL || 'http://localhost:5173/api/oauth2/callback',
scopes: ['openid', 'profile', 'email']
})
console.log(' Google strategy loaded')
console.log(' OK Google strategy loaded')
}
// GitHub Strategy
@ -112,7 +112,7 @@ export class OAuth2ProviderFactory {
process.env.VITE_GITHUB_REDIRECT_URL || 'http://localhost:5173/api/oauth2/callback',
scopes: ['read:user', 'user:email']
})
console.log(' GitHub strategy loaded')
console.log(' OK GitHub strategy loaded')
}
// Generic OIDC Strategy (for custom providers)
@ -126,7 +126,7 @@ export class OAuth2ProviderFactory {
'http://localhost:5173/api/oauth2/callback',
scopes: ['openid', 'profile', 'email']
})
console.log(` Custom OIDC strategy loaded: ${providerName}`)
console.log(` OK Custom OIDC strategy loaded: ${providerName}`)
}
console.log(`OAuth2ProviderFactory: Loaded ${this.strategies.size} provider strategies`)

View File

@ -135,7 +135,7 @@ export class OAuth2ProviderManager {
lastChecked: new Date()
})
successCount++
console.log(`OAuth2ProviderManager: ${providerUri.provider} initialized`)
console.log(`OAuth2ProviderManager: OK ${providerUri.provider} initialized`)
} else {
this.providerStatus.set(providerUri.provider, {
name: providerUri.provider,
@ -143,7 +143,7 @@ export class OAuth2ProviderManager {
lastChecked: new Date(),
error: 'Failed to initialize client'
})
console.warn(`OAuth2ProviderManager: ${providerUri.provider} failed to initialize`)
console.warn(`OAuth2ProviderManager: ERROR ${providerUri.provider} failed to initialize`)
}
} catch (error) {
const errorMessage = error instanceof Error ? error.message : 'Unknown error'
@ -153,7 +153,7 @@ export class OAuth2ProviderManager {
lastChecked: new Date(),
error: errorMessage
})
console.error(`OAuth2ProviderManager: ${providerUri.provider} error:`, error)
console.error(`OAuth2ProviderManager: ERROR ${providerUri.provider} error:`, error)
}
}
@ -368,10 +368,10 @@ export class OAuth2ProviderManager {
available: true,
lastChecked: new Date()
})
console.log(`OAuth2ProviderManager: ${providerName} retry successful`)
console.log(`OAuth2ProviderManager: OK ${providerName} retry successful`)
return true
} else {
console.error(`OAuth2ProviderManager: ${providerName} retry failed`)
console.error(`OAuth2ProviderManager: ERROR ${providerName} retry failed`)
return false
}
} catch (error) {