mirror of
https://github.com/rustfs/console.git
synced 2026-08-28 19:47:21 +08:00
7898a2703b
Add OIDC browser-based SSO login flow to the console: - OIDC library (lib/oidc.ts): fetch providers, initiate login, parse callback - OIDC callback page: parses STS credentials from URL fragment - Login form: renders SSO provider buttons with "Or continue with" divider - Auth context: new loginWithStsCredentials method for direct STS login - Config types: OidcProvider interface and oidc field on SiteConfig - i18n: English translations for SSO-related strings
34 lines
512 B
TypeScript
34 lines
512 B
TypeScript
export type S3Config = {
|
|
region: string
|
|
endpoint: string
|
|
accessKeyId?: string
|
|
secretAccessKey?: string
|
|
}
|
|
|
|
export type ApiConfig = {
|
|
baseURL: string
|
|
}
|
|
|
|
export type SessionConfig = {
|
|
durationSeconds: number
|
|
}
|
|
|
|
export type Release = {
|
|
version: string
|
|
date: string
|
|
}
|
|
|
|
export type OidcProvider = {
|
|
provider_id: string
|
|
display_name: string
|
|
}
|
|
|
|
export interface SiteConfig {
|
|
serverHost: string
|
|
api: ApiConfig
|
|
s3: S3Config
|
|
session?: SessionConfig
|
|
release?: Release
|
|
oidc?: OidcProvider[]
|
|
}
|