{"id":61,"date":"2022-08-21T12:33:01","date_gmt":"2022-08-21T12:33:01","guid":{"rendered":"https:\/\/dijix.com.ua\/blog\/?p=61"},"modified":"2023-02-25T16:59:47","modified_gmt":"2023-02-25T16:59:47","slug":"google-avtorizacziya-s-identity","status":"publish","type":"post","link":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/","title":{"rendered":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity"},"content":{"rendered":"<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u0438\u0434\u0438\u0442\u0435 \u043b\u0438, \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a Microsoft, Google, Facebook, Twitter \u0438 \u0442. \u0434. \u041c\u044b \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u044d\u0442\u0438\u043c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0438\u0445 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430\u043c\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.\u00a0<\/span><\/p>\n<h2>Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity<\/h2>\n<ol>\n<li><a href=\"#googlecreate\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 Google OAuth<\/a><\/li>\n<li><a href=\"#projectcreate\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/li>\n<li><a href=\"#userauth\">\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 Identity<\/a><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0432\u043e\u0439\u0442\u0438 \u0432 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 Google, \u043e\u043d \u043d\u0430\u0436\u043c\u0435\u0442 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043d\u0430\u043c\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 Google:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-64 size-full aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2.png\" alt=\"\" width=\"864\" height=\"311\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2.png 864w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2-300x108.png 300w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2-768x276.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u0432\u0435\u0434\u0435\u0442 \u0441\u0432\u043e\u0438 \u0434\u0430\u043d\u043d\u044b\u0435:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62 size-full aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok.png\" alt=\"\" width=\"467\" height=\"625\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok.png 467w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-224x300.png 224w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0430\u0439\u0442\u0435!\u00a0<\/span><\/p>\n<h2 id=\"googlecreate\" style=\"text-align: center;\"><b>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 Google OAuth<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Google. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b <\/span><b>ClientId<\/b><span style=\"font-weight: 400;\"> \u0438 <\/span><b>Client<\/b> <b>Secret<\/b><span style=\"font-weight: 400;\"> \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Google. \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0430\u0439\u0442 \u0438 \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 Google:<\/span><\/p>\n<p><a href=\"https:\/\/console.cloud.google.com\/apis\/\">https:\/\/console.cloud.google.com\/apis\/<\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u0435\u0449\u0435 \u043d\u0435\u0442. \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <\/span><b>Select a project<\/b><span style=\"font-weight: 400;\">. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0442\u043e \u0441\u0432\u0435\u0440\u0445\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0436\u0430\u0442\u044c:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-65 size-full aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/1.png\" alt=\"\" width=\"1124\" height=\"631\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/1.png 1124w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/1-300x168.png 300w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/1-1024x575.png 1024w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/1-768x431.png 768w\" sizes=\"auto, (max-width: 1124px) 100vw, 1124px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0439\u0442\u0435 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0441\u0432\u043e\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. \u042f \u043d\u0430\u0437\u0432\u0430\u043b \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 <\/span><b>Google Auth STS<\/b><span style=\"font-weight: 400;\">. STS \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 Security Token Service, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431\u044b \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f .NET Core:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-66 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-1.png\" alt=\"\" width=\"556\" height=\"434\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-1.png 556w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-1-300x234.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430\u0436\u043c\u0435\u043c <\/span><b>CREATE<\/b><span style=\"font-weight: 400;\">, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 API \u043a\u043b\u0430\u0441\u0441\u0430 Google.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u043b\u0435\u0432\u0430, \u043d\u043e \u0435\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f <\/span><b>Google APIs<\/b><span style=\"font-weight: 400;\">, \u0438 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0435\u0433\u043e. \u0412 \u0441\u0430\u043c\u043e\u043c \u043c\u0435\u043d\u044e, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 \u2013 <\/span><b>Library<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-67 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-2.png\" alt=\"\" width=\"461\" height=\"354\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-2.png 461w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-2-300x230.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0423 \u0432\u0430\u0441 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u043e\u0438\u0441\u043a\u0430, \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c <\/span><b>Google+ API<\/b><span style=\"font-weight: 400;\"> \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-68 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-3.png\" alt=\"\" width=\"976\" height=\"648\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-3.png 976w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-3-300x199.png 300w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-3-768x510.png 768w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <\/span><b>\u0438\u043c\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/b><span style=\"font-weight: 400;\">, \u044d\u0442\u043e \u0438\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e <\/span><b>\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e<\/b><span style=\"font-weight: 400;\"> \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f, \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u0442\u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 OAuth \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f .NET Core.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0438\u043f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2013 <\/span><b>External<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-69 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-4.png\" alt=\"\" width=\"544\" height=\"391\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-4.png 544w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-4-300x216.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u042f \u0443\u043a\u0430\u0437\u0430\u043b \u043d\u0438\u0436\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u043e\u0447\u0442\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-70 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-5.png\" alt=\"\" width=\"603\" height=\"751\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-5.png 603w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-5-241x300.png 241w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u043d\u0438\u0437 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 &#8212; <\/span><b>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0443\u043d\u043a\u0442<\/span><b>: CREATE CREDENTIALS<\/b><span style=\"font-weight: 400;\"> &#8212; <\/span><b>OAuth client ID<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-71 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-6.png\" alt=\"\" width=\"943\" height=\"406\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-6.png 943w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-6-300x129.png 300w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-6-768x331.png 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <\/span><b>Web Application, <\/b><span style=\"font-weight: 400;\">\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0438\u043f \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0434\u0430\u043b\u0435\u0435 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u042f \u0443\u043a\u0430\u0437\u0430\u043b \u0438\u043c\u044f Identity client. \u0414\u0430\u043b\u0435\u0435 Authorised JavaScript origins, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f URI \u0430\u0434\u0440\u0435\u0441\u043e\u043c, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-72 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-7.png\" alt=\"\" width=\"541\" height=\"604\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-7.png 541w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-7-269x300.png 269w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URI, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <strong>Solution Explorer<\/strong> \u2013 <strong>Properties<\/strong> &#8212;<strong> launchSettings.json<\/strong>, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 url \u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/span><\/p>\n<pre class=\"lang:default decode:true\"> \"profiles\": {\r\n    \"GoogleAuth\": {\r\n      \"commandName\": \"Project\",\r\n      \"dotnetRunMessages\": true,\r\n      \"launchBrowser\": true,\r\n      \"applicationUrl\": \"https:\/\/localhost:7172;http:\/\/localhost:5172\",\r\n      \"environmentVariables\": {\r\n        \"ASPNETCORE_ENVIRONMENT\": \"Development\"\r\n      }\r\n    },\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 URI \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u042d\u0442\u043e URI, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Google. \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0430\u0434\u0440\u0435\u0441:\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/localhost:7172\/signin-google\">https:\/\/localhost:7172\/signin-google<\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c signin-google, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430!<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430\u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u2013 <\/span><b>Create<\/b><span style=\"font-weight: 400;\">. \u0418\u0442\u0430\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <\/span><b>Client_Id<\/b><span style=\"font-weight: 400;\"> \u0438 <\/span><b>Client_Secret<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-73 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-8.png\" alt=\"\" width=\"476\" height=\"334\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-8.png 476w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-8-300x211.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043e\u0431\u0430 \u044d\u0442\u0438\u0445 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 google \u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/span><\/p>\n<h2 id=\"projectcreate\" style=\"text-align: center;\"><b>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u042f \u043e\u0436\u0438\u0434\u0430\u044e \u043e\u0442 \u0432\u0430\u0441 \u0437\u043d\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 C#. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 .NET Core, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d MVC.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Visual Studio 2022.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 &#171;<\/span><b>Asp.Net Core Web Application(.Net Core)<\/b><span style=\"font-weight: 400;\">&#187; \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c <\/span><b>MVC Template<\/b><span style=\"font-weight: 400;\">. \u0412 \u0433\u0440\u0430\u0444\u0435 \u201cAuthentication type\u201d, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <\/span><b>None<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0442\u0430\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e <\/span><b>Google<\/b><span style=\"font-weight: 400;\"> \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f .NET Core, \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 <\/span><b>Program<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<pre class=\"lang:default decode:true\">builder.Services.AddAuthentication()\r\n                .AddGoogle(options =&gt;\r\n                {\r\n                    options.ClientId = \"898063592413-mobd4vo6t6jedcpi2d6lfr9s2958go82.apps.googleusercontent.com\";\r\n                    options.ClientSecret = \"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\";\r\n                });\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441, \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u0435 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435.\u00a0 \u041a\u043e\u0434, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 <\/span><b>Google<\/b><span style=\"font-weight: 400;\">, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 <\/span><b>AddGoogle<\/b><span style=\"font-weight: 400;\">(), \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435:\u00a0<\/span><\/p>\n<p><b>Microsoft.AspNetCore.Authentication.Google<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 Identity \u0441 \u043d\u0443\u043b\u044f. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <\/span><b>Models<\/b><span style=\"font-weight: 400;\"> \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 <\/span><b>User<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<pre class=\"lang:default decode:true\">public class User : IdentityUser\r\n    {\r\n        public int Year { get; set; }\r\n    }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u041a\u043b\u0430\u0441\u0441 User \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <\/span><b>IdentityUser<\/b><span style=\"font-weight: 400;\">, \u043f\u0435\u0440\u0435\u043d\u0438\u043c\u0430\u044f \u0432\u0441\u0435 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0437\u0434\u0435\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e Year, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0433\u043e\u0434 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 MS SQL Server \u0447\u0435\u0440\u0435\u0437 ASP.NET Core Identity \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 Nuget \u043f\u0430\u043a\u0435\u0442\u044b:<\/span><\/p>\n<pre class=\"lang:default decode:true\">Microsoft.AspNetCore.Identity.EntityFrameworkCore\u00a0\r\n\r\nMicrosoft.EntityFrameworkCore.SqlServer<\/pre>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <\/span><b>Data<\/b><span style=\"font-weight: 400;\"> \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 <\/span><b>ApplicationContext<\/b><span style=\"font-weight: 400;\">. \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Identity, \u0442\u043e \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u043e\u0442 DbContext, \u0430 \u043e\u0442 <\/span><b>IdentityDbContext<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<pre class=\"lang:default decode:true\">public class ApplicationContext : IdentityDbContext&lt;User&gt;\r\n    {\r\n        public ApplicationContext(DbContextOptions&lt;ApplicationContext&gt; options)\r\n            : base(options)\r\n        {\r\n            Database.EnsureCreated();\r\n        }\r\n    }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u043c\u043e\u0434\u0435\u043b\u0438, \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 <\/span><b>appsettings.json<\/b><span style=\"font-weight: 400;\"> \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f:<\/span><\/p>\n<pre class=\"lang:default decode:true\">\"ConnectionStrings\": {\r\n    \"DefaultConnection\": \"Server=(localdb)\\\\mssqllocaldb;Database=usersstoredb;Trusted_Connection=True;\"\r\n  },\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <\/span><b>Program<\/b><span style=\"font-weight: 400;\">, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <\/span><b>Identity<\/b><span style=\"font-weight: 400;\"> \u0438 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445:<\/span><\/p>\n<pre class=\"lang:default decode:true\">using GoogleAuth.Data;\r\nusing GoogleAuth.Models;\r\nusing Microsoft.AspNetCore.Identity;\r\nusing Microsoft.EntityFrameworkCore;\r\n\r\nvar builder = WebApplication.CreateBuilder(args);\r\n\r\n\/\/ Add services to the container.\r\nbuilder.Services.AddControllersWithViews();\r\n\r\nbuilder.Services.AddAuthentication()\r\n                .AddGoogle(options =&gt;\r\n                {\r\n                    options.ClientId = \"898063592413-mobd4vo6t6jedcpi2d6lfr9s2958go82.apps.googleusercontent.com\";\r\n                    options.ClientSecret = \"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\";\r\n                });\r\n\r\nIConfigurationRoot _confString = new ConfigurationBuilder().\r\n    SetBasePath(AppDomain.CurrentDomain.BaseDirectory).AddJsonFile(\"appsettings.json\").Build();\r\n\r\nbuilder.Services.AddDbContext&lt;ApplicationContext&gt;(options =&gt;\r\n               options.UseSqlServer(_confString.GetConnectionString(\"DefaultConnection\")));\r\n\r\nbuilder.Services.AddIdentity&lt;User, IdentityRole&gt;()\r\n    .AddEntityFrameworkStores&lt;ApplicationContext&gt;();\r\n\r\n\r\nvar app = builder.Build();\r\n\r\n\/\/ Configure the HTTP request pipeline.\r\nif (!app.Environment.IsDevelopment())\r\n{\r\n    app.UseExceptionHandler(\"\/Home\/Error\");\r\n    \/\/ The default HSTS value is 30 days. You may want to change this for production scenarios, see https:\/\/aka.ms\/aspnetcore-hsts.\r\n    app.UseHsts();\r\n}\r\n\r\napp.UseHttpsRedirection();\r\napp.UseStaticFiles();\r\n\r\napp.UseRouting();\r\n\r\napp.UseAuthentication();  \/\/\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\r\napp.UseAuthorization();  \/\/\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\r\n\r\napp.UseAuthorization();\r\n\r\napp.MapControllerRoute(\r\n    name: \"default\",\r\n    pattern: \"{controller=Home}\/{action=Index}\/{id?}\");\r\n\r\napp.Run();\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u041c\u0435\u0442\u043e\u0434 <\/span><b>AddIdentity()<\/b><span style=\"font-weight: 400;\"> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0442\u0438\u043f \u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 Identity. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0438\u043f\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 \u0432\u044b\u0448\u0435 \u043a\u043b\u0430\u0441\u0441 User, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0438\u043f\u0430 \u0440\u043e\u043b\u0438 \u0432\u0437\u044f\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 IdentityRole, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0435\u043d Microsoft.AspNetCore.Identity.EntityFrameworkCore.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041c\u0435\u0442\u043e\u0434 <\/span><b>AddEntityFrameworkStores()<\/b><span style=\"font-weight: 400;\"> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0442\u0438\u043f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 Identity \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0438\u043f\u0430 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0437\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0417\u0430\u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <\/span><b>Identity<\/b><span style=\"font-weight: 400;\">, \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <\/span><b>Configure()<\/b><span style=\"font-weight: 400;\"> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 middeware &#8212; <\/span><b>UseAuthentication<\/b><span style=\"font-weight: 400;\">. \u041f\u0440\u0438\u0447\u0435\u043c \u044d\u0442\u043e middleware \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 app.UseEndpoints(), \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044f, \u0447\u0442\u043e \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c \u0438 \u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u0430\u043c, \u043a\u0443\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 Identity \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/span><\/p>\n<h2 id=\"userauth\" style=\"text-align: center;\"><b>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 Identity<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043a\u043b\u0430\u0441\u0441\u043e\u043c <\/span><b>User<\/b><span style=\"font-weight: 400;\">, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0441\u0435\u0445 \u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432\u0440\u043e\u0434\u0435 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430. \u0418\u0442\u0430\u043a, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0437\u043e\u0432\u0435\u043c <\/span><b>ViewModels<\/b><span style=\"font-weight: 400;\">. \u0417\u0430\u0442\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 <\/span><b>LoginViewModel<\/b><span style=\"font-weight: 400;\">, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/span><\/p>\n<pre class=\"lang:default decode:true\">public class LoginViewModel\r\n    {\r\n        [Required]\r\n        [Display(Name = \"Email\")]\r\n        public string? Email { get; set; }\r\n\r\n        [Required]\r\n        [DataType(DataType.Password)]\r\n        [Display(Name = \"\u041f\u0430\u0440\u043e\u043b\u044c\")]\r\n        public string? Password { get; set; }\r\n\r\n        [Display(Name = \"\u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c?\")]\r\n        public bool RememberMe { get; set; }\r\n\r\n        public string? ReturnUrl { get; set; }\r\n\r\n        public IList&lt;AuthenticationScheme&gt; ExternalLogins { get; set; }\r\n    }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <\/span><b>ReturnUrl<\/b><span style=\"font-weight: 400;\"> \u0438 <\/span><b>ExternalLogins<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>ReturnUrl<\/b><span style=\"font-weight: 400;\"> &#8212; \u044d\u0442\u043e URL, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u041c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0435\u0433\u043e \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 ReturnUrl, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u044d\u0442\u043e\u0442 URL \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043d\u044b (Facebook, Google \u0438 \u0442.\u0434.) \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u0445\u043e\u0434\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <\/span><b>ExternalLogins<\/b><span style=\"font-weight: 400;\"> \u0432 <\/span><b>LoginViewModel<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <\/span><b>Controllers<\/b><span style=\"font-weight: 400;\"> \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <\/span><b>AccountController<\/b><span style=\"font-weight: 400;\"> \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432 \u043d\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0432\u0445\u043e\u0434:<\/span><\/p>\n<pre class=\"lang:default decode:true\">public class AccountController : Controller\r\n    {\r\n        private readonly UserManager&lt;User&gt; _userManager;\r\n        private readonly SignInManager&lt;User&gt; _signInManager;\r\n\r\n        public AccountController(UserManager&lt;User&gt; userManager, SignInManager&lt;User&gt; signInManager)\r\n        {\r\n            _userManager = userManager;\r\n            _signInManager = signInManager;\r\n        }\r\n\r\n        [HttpGet]\r\n        [AllowAnonymous]\r\n        public async Task&lt;IActionResult&gt; Login(string returnUrl)\r\n        {\r\n            LoginViewModel model = new LoginViewModel\r\n            {\r\n                ReturnUrl = returnUrl,\r\n                ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList()\r\n            };\r\n\r\n            return View(model);\r\n        }\r\n        [HttpPost]\r\n        [ValidateAntiForgeryToken]\r\n        public async Task&lt;IActionResult&gt; Login(LoginViewModel model)\r\n        {\r\n            if (ModelState.IsValid)\r\n            {\r\n                var result =\r\n                    await _signInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, false);\r\n                if (result.Succeeded)\r\n                {\r\n                    \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 URL \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e\r\n                    if (!string.IsNullOrEmpty(model.ReturnUrl) &amp;&amp; Url.IsLocalUrl(model.ReturnUrl))\r\n                    {\r\n                        return Redirect(model.ReturnUrl);\r\n                    }\r\n                    else\r\n                    {\r\n                        return RedirectToAction(\"Index\", \"Home\");\r\n                    }\r\n                }\r\n                else\r\n                {\r\n                    ModelState.AddModelError(\"\", \"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u0438 (\u0438\u043b\u0438) \u043f\u0430\u0440\u043e\u043b\u044c\");\r\n                }\r\n            }\r\n            return View(model);\r\n        }\r\n\r\n        [HttpPost]\r\n        [ValidateAntiForgeryToken]\r\n        public async Task&lt;IActionResult&gt; Logout()\r\n        {\r\n            \/\/ \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u0443\u043a\u0438\r\n            await _signInManager.SignOutAsync();\r\n            return RedirectToAction(\"Index\", \"Home\");\r\n        }\r\n    }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <\/span><b>Views<\/b><span style=\"font-weight: 400;\"> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433 <\/span><b>Account<\/b><span style=\"font-weight: 400;\">, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <\/span><b>Login.cshtml<\/b><span style=\"font-weight: 400;\">. \u042d\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/span><\/p>\n<pre class=\"lang:default decode:true\">@model GoogleAuth.ViewModels.LoginViewModel\r\n\r\n&lt;div class=\"row\"&gt;\r\n\r\n    &lt;div class=\"col-md-4\"&gt;\r\n        &lt;h2&gt;\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f&lt;\/h2&gt;\r\n        &lt;form method=\"post\" asp-controller=\"Account\" asp-action=\"Login\"\r\n              asp-route-returnUrl=\"@Model.ReturnUrl\"&gt;\r\n            &lt;div asp-validation-summary=\"ModelOnly\"&gt;&lt;\/div&gt;\r\n            &lt;div class=\"form-group\"&gt;\r\n                &lt;label asp-for=\"Email\" class=\"control-label\"&gt;&lt;\/label&gt;\r\n                &lt;input asp-for=\"Email\" class=\"form-control\" \/&gt;\r\n                &lt;span asp-validation-for=\"Email\" class=\"text-danger\"&gt;&lt;\/span&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"form-group\"&gt;\r\n                &lt;label asp-for=\"Password\" class=\"control-label\"&gt;&lt;\/label&gt;\r\n                &lt;input asp-for=\"Password\" class=\"form-control\" \/&gt;\r\n                &lt;span asp-validation-for=\"Password\" class=\"text-danger\"&gt;&lt;\/span&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div&gt;\r\n                &lt;label asp-for=\"RememberMe\" class=\"control-label\"&gt;&lt;\/label&gt;&lt;br \/&gt;\r\n                &lt;input asp-for=\"RememberMe\" class=\"form-check\" \/&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=\"form-group\"&gt;\r\n                &lt;br \/&gt;\r\n                &lt;input type=\"submit\" value=\"\u0412\u043e\u0439\u0442\u0438\" class=\"btn btn-primary\" \/&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/form&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;div class=\"col-md-4\"&gt;\r\n        &lt;h2&gt;\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Google&lt;\/h2&gt;\r\n        &lt;hr \/&gt;\r\n        @{\r\n            if (Model.ExternalLogins.Count == 0)\r\n            {\r\n                &lt;div&gt;No external logins configured&lt;\/div&gt;\r\n            }\r\n            else\r\n            {\r\n                &lt;form method=\"post\" asp-action=\"ExternalLogin\" asp-route-returnUrl=\"@Model.ReturnUrl\"&gt;\r\n                    &lt;div&gt;\r\n                        @foreach (var provider in Model.ExternalLogins)\r\n                        {\r\n                            &lt;button type=\"submit\" class=\"btn btn-primary\" style=\"width:auto\"\r\n                            name=\"provider\" value=\"@provider.Name\"\r\n                            title=\"Login using your @provider.DisplayName account\"&gt;\r\n                                @provider.DisplayName\r\n                            &lt;\/button&gt;\r\n                        }\r\n                    &lt;\/div&gt;\r\n                &lt;\/form&gt;\r\n            }\r\n        }\r\n    &lt;\/div&gt;\r\n\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/localhost:7243\/account\/login\"><span style=\"font-weight: 400;\">https:\/\/localhost:7243\/account\/login<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-64 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2.png\" alt=\"\" width=\"864\" height=\"311\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2.png 864w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2-300x108.png 300w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/2-768x276.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u0436\u043c\u0435\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <\/span><b>Google<\/b><span style=\"font-weight: 400;\">,\u00a0 \u044d\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0442\u0438\u043f\u0430 <\/span><b>Submit<\/b><span style=\"font-weight: 400;\"> \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 <\/span><b>ExternalLogin<\/b><span style=\"font-weight: 400;\"> \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 &#8212; <\/span><b>AccountController<\/b><span style=\"font-weight: 400;\">. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0433\u043e:<\/span><\/p>\n<pre class=\"lang:default decode:true\">ExternalLogin \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 - AccountController. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0433\u043e:\r\n[AllowAnonymous]\r\n        [HttpPost]\r\n        public IActionResult ExternalLogin(string provider, string returnUrl)\r\n        {\r\n            var redirectUrl = Url.Action(\"ExternalLoginCallback\", \"Account\",\r\n                                    new { ReturnUrl = returnUrl });\r\n\r\n            var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);\r\n\r\n            return new ChallengeResult(provider, properties);\r\n        }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043d\u043e\u0432\u0430, \u0438 \u043d\u0430\u0436\u043c\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <\/span><b>Google<\/b><span style=\"font-weight: 400;\">:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-74 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-9.png\" alt=\"\" width=\"441\" height=\"458\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-9.png 441w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-9-289x300.png 289w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 <\/span><b>Auth<\/b><span style=\"font-weight: 400;\">, \u043d\u043e \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0435\u0449\u0435 \u043d\u0435 \u0433\u043e\u0442\u043e\u0432. \u0412 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <\/span><b>AccountController,<\/b><span style=\"font-weight: 400;\"> \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 <\/span><b>ExternalLoginCallback<\/b><span style=\"font-weight: 400;\">:\u00a0<\/span><\/p>\n<pre class=\"lang:default decode:true \">[AllowAnonymous]\r\n        public async Task&lt;IActionResult&gt;\r\n            ExternalLoginCallback(string returnUrl = null, string remoteError = null)\r\n        {\r\n            returnUrl = returnUrl ?? Url.Content(\"~\/\");\r\n\r\n            LoginViewModel loginViewModel = new LoginViewModel\r\n            {\r\n                ReturnUrl = returnUrl,\r\n                ExternalLogins =\r\n                        (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList()\r\n            };\r\n\r\n            if (remoteError != null)\r\n            {\r\n                ModelState\r\n                    .AddModelError(string.Empty, $\"Error from external provider: {remoteError}\");\r\n\r\n                return View(\"Login\", loginViewModel);\r\n            }\r\n\r\n            \/\/ Get the login information about the user from the external login provider\r\n            var info = await _signInManager.GetExternalLoginInfoAsync();\r\n            if (info == null)\r\n            {\r\n                ModelState\r\n                    .AddModelError(string.Empty, \"Error loading external login information.\");\r\n\r\n                return View(\"Login\", loginViewModel);\r\n            }\r\n\r\n            \/\/ If the user already has a login (i.e if there is a record in AspNetUserLogins\r\n            \/\/ table) then sign-in the user with this external login provider\r\n            var signInResult = await _signInManager.ExternalLoginSignInAsync(info.LoginProvider,\r\n                info.ProviderKey, isPersistent: false, bypassTwoFactor: true);\r\n\r\n            if (signInResult.Succeeded)\r\n            {\r\n                return LocalRedirect(returnUrl);\r\n            }\r\n            \/\/ If there is no record in AspNetUserLogins table, the user may not have\r\n            \/\/ a local account\r\n            else\r\n            {\r\n                \/\/ Get the email claim value\r\n                var email = info.Principal.FindFirstValue(ClaimTypes.Email);\r\n\r\n                if (email != null)\r\n                {\r\n                    \/\/ Create a new user without password if we do not have a user already\r\n                    var user = await _userManager.FindByEmailAsync(email);\r\n\r\n                    if (user == null)\r\n                    {\r\n                        user = new User\r\n                        {\r\n                            UserName = info.Principal.FindFirstValue(ClaimTypes.Email),\r\n                            Email = info.Principal.FindFirstValue(ClaimTypes.Email)\r\n                        };\r\n\r\n                        await _userManager.CreateAsync(user);\r\n                    }\r\n\r\n                    \/\/ Add a login (i.e insert a row for the user in AspNetUserLogins table)\r\n                    await _userManager.AddLoginAsync(user, info);\r\n                    await _signInManager.SignInAsync(user, isPersistent: false);\r\n\r\n                    return LocalRedirect(returnUrl);\r\n                }\r\n\r\n                ViewBag.ErrorTitle = $\"Email claim not received from: {info.LoginProvider}\";\r\n                ViewBag.ErrorMessage = \"Please contact support on Pragim@PragimTech.com\";\r\n\r\n                return View(\"Error\");\r\n            }\r\n        }\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 <\/span><b>Layout.cshtml<\/b><span style=\"font-weight: 400;\"> \u0432\u044b\u0432\u043e\u0434 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d \u0438 \u0432\u044b\u0445\u043e\u0434, \u0435\u0441\u043b\u0438 \u043e\u043d \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d:<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;ul class=\"navbar-nav\"&gt;\r\n                        @if (User.Identity.IsAuthenticated)\r\n                        {\r\n                            &lt;li class=\"nav-item\"&gt;\r\n                                &lt;a class=\"nav-link text-dark\" asp-area=\"\" asp-controller=\"\" asp-action=\"\"&gt;@User.Identity.Name&lt;\/a&gt;\r\n                            &lt;\/li&gt;\r\n                            &lt;li class=\"nav-item\"&gt;\r\n                                &lt;form method=\"post\" asp-controller=\"Account\" asp-action=\"Logout\"&gt;\r\n                                    @*\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u0431\u044b \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043a\u0430\u043a \u0441\u0441\u044b\u043b\u043a\u0430*@\r\n                                    &lt;style&gt;\r\n                                        .mybtn {\r\n                                            background: none !important;\r\n                                            border: none;\r\n                                            cursor: pointer;\r\n                                        }\r\n                                    &lt;\/style&gt;\r\n                                    @*\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438*@\r\n                                    &lt;input class=\"nav-link text-dark mybtn\" type=\"submit\" value=\"\u0412\u044b\u0445\u043e\u0434\" \/&gt;\r\n                                &lt;\/form&gt;\r\n                            &lt;\/li&gt;\r\n                        }\r\n                        else\r\n                        {\r\n                            &lt;li class=\"nav-item\"&gt;\r\n                                &lt;a class=\"nav-link text-dark\" asp-controller=\"Account\" asp-action=\"Login\"&gt;\u0412\u0445\u043e\u0434&lt;\/a&gt;\r\n                            &lt;\/li&gt;\r\n                        }\r\n                    &lt;\/ul&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">\u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0436\u043c\u0435\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <\/span><b>Google<\/b><span style=\"font-weight: 400;\">, \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c Gmail, \u0437\u0430\u0442\u0435\u043c \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u0432 <\/span><b>Gmail<\/b><span style=\"font-weight: 400;\">, \u0442\u043e \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-75 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-10.png\" alt=\"\" width=\"593\" height=\"249\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-10.png 593w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-10-300x126.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 \u0443\u0441\u043b\u0443\u0433 \u0432\u0445\u043e\u0434\u0430.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 <\/span><b>AspNetUsers<\/b><span style=\"font-weight: 400;\">, \u0442\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0432\u0435\u0449\u044c. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <\/span><b>AspNetUsers<\/b><span style=\"font-weight: 400;\"> \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 <\/span><b>PasswordHash<\/b><span style=\"font-weight: 400;\">, \u043e\u043d\u0430 \u0440\u0430\u0432\u043d\u0430 <\/span><b>NULL.<\/b><span style=\"font-weight: 400;\"> \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0432\u0445\u043e\u0434\u0430 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 <\/span><b>Google<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-76 aligncenter\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-11.png\" alt=\"\" width=\"617\" height=\"100\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-11.png 617w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/snimok-11-300x49.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0430\u043c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u043c\u043e\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u2014 <a href=\"https:\/\/github.com\/murzilaka2\/GoogleAuth\">Github<\/a>.<\/p>\n<p>\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0432\u0430\u0448\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043a\u0430\u043a \u0432\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0435 <strong>Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity<\/strong>, \u0432 \u0432\u0430\u0448\u0438\u0445\u00a0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445?<\/p>\n<p>\u0412\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 C#?<\/p>\n<p>\u041f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u043d\u0430\u0448 \u0442\u0435\u0441\u0442 \u043d\u0430 13 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435!<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">    <div class=\"container23\">\r\n      <h1>C# Braincheck<\/h1>\r\n      <p id=\"question\"><\/p>\r\n      <form id=\"quiz-form\" class=\"form-quiz\">\r\n\t\t\t\t\t<label class=\"label-quiz\">\r\n          <input type=\"radio\" name=\"answer\" value=\"0\">\r\n          <span id=\"answer-0\"><\/span>\r\n        <\/label>\r\n        <label class=\"label-quiz\">\r\n          <input type=\"radio\" name=\"answer\" value=\"1\">\r\n          <span id=\"answer-1\"><\/span>\r\n        <\/label>\r\n\t\t\t\t<label class=\"label-quiz\">\r\n          <input type=\"radio\" name=\"answer\" value=\"2\">\r\n          <span id=\"answer-2\"><\/span>\r\n        <\/label>\r\n\t\t\t\t<label class=\"label-quiz\">\r\n          <input type=\"radio\" name=\"answer\" value=\"3\">\r\n          <span id=\"answer-3\"><\/span>\r\n        <\/label>\r\n\t\t\t\t <div class=\"btn-div\">\r\n        <button id=\"submit-btn\" class=\"button-quiz\" type=\"submit\">\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439<\/button>\r\n\t\t\t\t<\/div>\r\n      <\/form>\r\n      <div id=\"result\" class=\"mt-3\"><\/div>\r\n    <\/div>\r\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4><strong>\u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f C#?<\/strong><\/h4>\n<p>\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0437 \u0441\u0430\u0439\u0442\u043e\u0432, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0431\u043e\u0442\u043e\u0432 \u0438 \u0442.\u0434.<\/p>\n<p><a href=\"https:\/\/dijix.com.ua\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-94 size-full\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png\" alt=\"\" width=\"355\" height=\"77\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png 355w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand-300x65.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u043d\u0430\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <strong><a href=\"https:\/\/dijix.com.ua\/\">Dijix<\/a>\u00a0<\/strong>\u0438 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043c\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043d\u044f\u0442\u0438\u044f\u0445, \u043a\u0430\u043a \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u044f\u0442\u044c \u043a\u0430\u043a \u043e\u0434\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0433\u043e \u0412\u0430\u0441 \u0432\u043e\u043f\u0440\u043e\u0441\u0430, \u0442\u0430\u043a \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043b\u043e\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0443, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0442\u0443\u0434\u0435\u043d\u0442 \u043f\u043e\u0432\u044b\u0441\u0438\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0432\u00a0\u0432\u0430\u0448\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0438:<\/p>\n<ul>\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u043c\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443<\/li>\n<li>\u0422\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438<\/li>\n<li>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u043d\u0438\u0433<\/li>\n<li>\u041e\u043d\u043b\u0430\u0439\u043d \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/li>\n<li>\u041e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: right;\"><a href=\"https:\/\/dijix.com.ua\/\">https:\/\/dijix.com.ua<\/a><\/p>\n<p style=\"text-align: right;\">\u0416\u0438\u0432\u0438 \u0432 \u0441\u0432\u043e\u0435\u043c \u043c\u0438\u0440\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0439 \u0432 <a href=\"https:\/\/ms.dijix.com.ua\/\">\u043d\u0430\u0448\u0435\u043c<\/a>.<\/p>\n<\/blockquote>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u0438\u0434\u0438\u0442\u0435 \u043b\u0438, \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438,&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435<span class=\"screen-reader-text\">Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":143,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ru_RU","_original_post":"https:\/\/dijix.com.ua\/blog\/?p=61","footnotes":""},"categories":[8],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-asp-net-core","ru-RU","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity<\/title>\r\n<meta name=\"description\" content=\"\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\" \/>\r\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Dijixs\" \/>\r\n<meta property=\"article:published_time\" content=\"2022-08-21T12:33:01+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2023-02-25T16:59:47+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/leonsy_a_man_with_coffee_is_engaged_in_programming_with_a_lapto_a4ace133-39ce-457c-9bc4-f3c8b599757d.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\r\n\t<meta property=\"og:image:height\" content=\"730\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 \u043c\u0438\u043d\u0443\u0442\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\"},\"author\":{\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\"},\"headline\":\"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity\",\"datePublished\":\"2022-08-21T12:33:01+00:00\",\"dateModified\":\"2023-02-25T16:59:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\"},\"wordCount\":1422,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"articleSection\":[\"Asp.Net Core\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\",\"name\":\"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\"},\"datePublished\":\"2022-08-21T12:33:01+00:00\",\"dateModified\":\"2023-02-25T16:59:47+00:00\",\"description\":\"\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.\",\"breadcrumb\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/dijix.com.ua\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"description\":\"\ud83d\udc9c\",\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"contentUrl\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"width\":159,\"height\":92,\"caption\":\"Dijix - \u0411\u043b\u043e\u0433\"},\"image\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Dijixs\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\",\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"caption\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\"},\"sameAs\":[\"https:\/\/dijix.com.ua\/blog\"],\"url\":\"https:\/\/dijix.com.ua\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity","description":"\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/","og_locale":"ru_RU","og_type":"article","og_title":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity","og_url":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/","og_site_name":"Dijix - \u0411\u043b\u043e\u0433","article_publisher":"https:\/\/www.facebook.com\/Dijixs","article_published_time":"2022-08-21T12:33:01+00:00","article_modified_time":"2023-02-25T16:59:47+00:00","og_image":[{"width":1024,"height":730,"url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/leonsy_a_man_with_coffee_is_engaged_in_programming_with_a_lapto_a4ace133-39ce-457c-9bc4-f3c8b599757d.png","type":"image\/png"}],"author":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"15 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#article","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/"},"author":{"name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d"},"headline":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity","datePublished":"2022-08-21T12:33:01+00:00","dateModified":"2023-02-25T16:59:47+00:00","mainEntityOfPage":{"@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/"},"wordCount":1422,"commentCount":1,"publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"articleSection":["Asp.Net Core"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/","url":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/","name":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/#website"},"datePublished":"2022-08-21T12:33:01+00:00","dateModified":"2023-02-25T16:59:47+00:00","description":"\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 Asp.Net Core MVC Identity, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.","breadcrumb":{"@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dijix.com.ua\/blog\/google-avtorizacziya-s-identity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/dijix.com.ua\/blog\/"},{"@type":"ListItem","position":2,"name":"Google \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Identity"}]},{"@type":"WebSite","@id":"https:\/\/dijix.com.ua\/blog\/#website","url":"https:\/\/dijix.com.ua\/blog\/","name":"Dijix - \u0411\u043b\u043e\u0433","description":"\ud83d\udc9c","publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/dijix.com.ua\/blog\/#organization","name":"Dijix - \u0411\u043b\u043e\u0433","url":"https:\/\/dijix.com.ua\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","contentUrl":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","width":159,"height":92,"caption":"Dijix - \u0411\u043b\u043e\u0433"},"image":{"@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Dijixs"]},{"@type":"Person","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d","name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","caption":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430"},"sameAs":["https:\/\/dijix.com.ua\/blog"],"url":"https:\/\/dijix.com.ua\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":18,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions\/634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media\/143"}],"wp:attachment":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}