diff --git a/configs/config.yml b/configs/config.yml new file mode 100644 index 0000000..1e1dc3d --- /dev/null +++ b/configs/config.yml @@ -0,0 +1,14 @@ +port: "8011" +db: + host: "mysql-pl-wa10.joinserver.xyz" + port: "3306" + username: "u45925_HjjJCz8EVf" + dbname: "s45925_tentula" + +oauth: + google: + redirectURL: "https://auth.easystartup.su/google-callback" + clientID: "194968123220-sbignfcvv4lq321d7sk5sopu8j3udlt1.apps.googleusercontent.com" + scopes: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email"] + telegram: + botId: "testik4bot" \ No newline at end of file diff --git a/public/html/index.html b/public/html/index.html new file mode 100644 index 0000000..74289ff --- /dev/null +++ b/public/html/index.html @@ -0,0 +1,51 @@ + + + + + + EasyStartup Auth + + + + + + +
+

EasyStartup Auth

+

Выберите подходящий сервис авторизации:

+ + + + + +
+ + + + + diff --git a/public/resources/favicon.ico b/public/resources/favicon.ico new file mode 100644 index 0000000..9923e4d Binary files /dev/null and b/public/resources/favicon.ico differ diff --git a/user.go b/user.go new file mode 100644 index 0000000..843cc86 --- /dev/null +++ b/user.go @@ -0,0 +1,14 @@ +package esauth + +type User struct { + Id int64 `json:"id" gorm:"unique;primaryKey;autoIncrement"` + Username string `json:"username"` + FirstName string `json:"first_name"` + LastName string `json:"last_name"` + PictureURL string `json:"picture_url"` + Email string `json:"email"` + Access string `json:"access"` + + TelegramId string `json:"telegram_id"` + GoogleId string `json:"google_id"` +}