initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

24
config/oauth.go Normal file
View File

@@ -0,0 +1,24 @@
package config
// OAuthConfig holds configuration for OAuth providers
type OAuthConfig struct {
Google OAuthProviderConfig `mapstructure:"google"`
GitHub OAuthProviderConfig `mapstructure:"github"`
LinkedIn OAuthProviderConfig `mapstructure:"linkedin"`
Mock OAuthMockConfig `mapstructure:"mock"`
}
// OAuthMockConfig holds configuration for the mock OAuth server (local dev only)
type OAuthMockConfig struct {
Enabled bool `mapstructure:"enabled"`
BaseURL string `mapstructure:"base_url"` // e.g. http://localhost:9999
OAuthProviderConfig
}
// OAuthProviderConfig holds configuration for a single OAuth provider
type OAuthProviderConfig struct {
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"` // Ov23liSo5eCfXJ11k7mr
RedirectURL string `mapstructure:"redirect_url"`
Scopes []string `mapstructure:"scopes"`
}