mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-12 02:20:12 +08:00
- Add optional `icon` field to UserOauth2Settings type - Include preset SVG icons for GitHub, Linux Do, and Authentik templates - Render icons on OAuth2 login buttons - Add icon configuration UI with preview in admin panel Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
686 B
TypeScript
20 lines
686 B
TypeScript
export type UserOauth2Settings = {
|
|
name: string;
|
|
icon?: string; // SVG icon string for the provider
|
|
clientID: string;
|
|
clientSecret: string;
|
|
authorizationURL: string;
|
|
accessTokenURL: string;
|
|
accessTokenFormat?: string;
|
|
userInfoURL: string;
|
|
redirectURL: string;
|
|
logoutURL?: string;
|
|
userEmailKey: string;
|
|
enableEmailFormat?: boolean; // Enable email format transformation
|
|
userEmailFormat?: string; // Regex pattern to match email
|
|
userEmailReplace?: string; // Replacement template using $1, $2, etc.
|
|
scope: string;
|
|
enableMailAllowList?: boolean | undefined;
|
|
mailAllowList?: string[] | undefined;
|
|
}
|