๋ฉ์ธ ํ์ด์ง์์ ๋ก๊ทธ์ธ์ ์ ๊ท ๋๋ ๊ธฐ์กด ์ฌ์ฉ์์๊ฒ ์๋ํ์ง ์์ผ๋ฉฐ, ์ฌ์ฉ์ / ํจ์ค๊ฐ์๋ ๊ธฐ์กด ์ฌ์ฉ์๋ Google ๊ณ์ ์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. ๋ชจ๋ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
์, ์ด๊ฒ์ด ๋ฒ๊ทธ์ด๋ฉฐ ๊ธฐ๋ฅ ์์ฒญ์ด๋ ์ผ๋ฐ์ ์ธ ์ง๋ฌธ์ด ์๋๋ผ๊ณ ํ์ ํฉ๋๋ค.
์ฌ๊ธฐ์๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ์ฝ๋ฐฑ URL์ด ์ ํํ๊ณ ๋์ผํ ์ด๋ฉ์ผ ์๋์ Google ๊ณ์ ์ด ์กด์ฌํ๊ณ ์ค์ ๋ก zammad๊ฐ ํด๋ผ์ด์ธํธ ํค + ๋น๋ฐ์ ์ป์ ํ๋ก์ ํธ๋ฅผ ์์ ํ๊ณ ์์ต๋๋ค. IAM / Auth์ ๋ํ Google ๋ก๊ทธ๋ฅผ ์ฐพ์ผ๋ ค๊ณ ํ์ง๋ง ์ฑ๊ณตํ์ง ๋ชปํ์ต๋๋ค.
ํ๋ก์ ํธ์ ๋ํ auth oauth ์์ฒญ์ ๋ํ ๋ก๊ทธ๋ฅผ ์ฐพ๋ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
๊ฒ์ ํด ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค.
์ธ์ฆ์ด ํ์ฑํ ๋ ์ ์ด์๋ ํ๋ก์ ํธ๋ก ์ด๊ฒ์ ํ์ธํ ์ ์์ง๋ง :
์ด๊ฒ์ ๋ฒ๊ทธ๊ฐ ์๋๋๋ค.
์ด ๋ฌธ์ ์ ์์ธ์ log / web-1.log์์ ์ฐพ์ ์ ์์ต๋๋ค.
I, [2018-11-16T10:39:42.637447 #23972] INFO -- omniauth: (google_oauth2) Request phase initiated.
I, [2018-11-16T10:39:42.970970 #23972] INFO -- omniauth: (google_oauth2) Callback phase initiated.
E, [2018-11-16T10:39:43.325612 #23972] ERROR -- omniauth: (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, {"errors"=>[{"domain"=>"usageLimits", "reason"=>"accessNotConfigured", "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "extendedHelp"=>"https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"}], "code"=>403, "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"
}
],
"code": 403,
"message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
์ค์ ๋ก Google์ ํตํด ์ฌ์ฉ์๋ฅผ ์ธ์ฆํ๊ธฐ ์ ์ Google+ API๋ฅผ ํ์ฑํํด์ผํฉ๋๋ค.
๋ฌธ์์์ด ๋ถ๋ถ์ด ์ ๋๋ก ์์ฑ๋์ง ์์์ผ๋ฏ๋ก ๋ฌธ์ ์
๋ฐ์ดํธ ์์
์ ํ ๊ฒ์
๋๋ค. ๋ถํธ์ ๋๋ ค ์ฃ์กํฉ๋๋ค.
๋ค์ ๋งํฌ (API-Project-ID๋ก ์กฐ์ ํด์ผ ํจ)๋ฅผ ๋ฐฉ๋ฌธํ์ฌ Google+ API๋ฅผ ์ฌ์ฉ ์ค์ ํ์ธ์.
https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[Your-API-Project-ID]
์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ฒ ์ต๋๋ค. ์ฌ๊ธฐ์์ ๋ฌธ์ ๋ฌธ์ ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค. https://github.com/zammad/zammad-admin-documentation/issues/10
๊ฐ์ฌํฉ๋๋ค. Google+ API๋ฅผ ์ฌ์ฉํ๋๋ก ์ค์ ํ๋ฉด ์ด์ ์์๋๋ก ์๋ํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๊ฐ์ฌํฉ๋๋ค. Google+ API๋ฅผ ์ฌ์ฉํ๋๋ก ์ค์ ํ๋ฉด ์ด์ ์์๋๋ก ์๋ํฉ๋๋ค.