Update NAVER WORKS documentation with OAuth patterns matching Gmail/Slack

- Add OAuth endpoint patterns for all providers (Gmail, Slack, NAVER WORKS)
- Unify Redirect URL domain to auth.ro-being.com across all providers
- Update Private Key storage location (Base64 in .env)
This commit is contained in:
happybell80 2025-09-17 20:35:59 +09:00
parent 0680384ee1
commit 7e45e00e9b

View File

@ -9,7 +9,32 @@
- **skill 서비스**: NAVER WORKS 전용 스킬 없음
- **nginx**: NAVER WORKS 라우팅 설정 없음
### 확인된 NAVER WORKS OAuth 2.0 엔드포인트
### 확인된 OAuth 엔드포인트 패턴
#### 📍 Google (Gmail) OAuth - 구현됨
**API 엔드포인트**:
- `/auth/gmail/login` - 로그인 시작
- `/auth/gmail/callback` - OAuth 콜백
- `/auth/gmail/passport/` - Passport 로그인 시작
- `/auth/gmail/passport/callback` - Passport 콜백
- `/auth/gmail/passport/status` - Passport 상태 확인
#### 📍 Slack OAuth - 구현됨
**API 엔드포인트**:
- `/auth/slack/login/` - 로그인 시작
- `/auth/slack/login/callback` - OAuth 콜백
- `/auth/slack/passport/install` - Passport 설치
- `/auth/slack/passport/callback` - Passport 콜백
- `/auth/slack/passport/status/{workspace_id}` - Passport 상태
#### 📍 NAVER WORKS OAuth - 구현 예정
**API 엔드포인트** (Gmail/Slack 패턴 참조):
- `/auth/naverworks/login` - 로그인 시작
- `/auth/naverworks/callback` - OAuth 콜백
- `/auth/naverworks/passport/` - Passport 로그인 (선택적)
- `/auth/naverworks/passport/callback` - Passport 콜백 (선택적)
**외부 OAuth URL**:
- **Authorization**: `https://auth.worksmobile.com/oauth2/v2.0/authorize`
- **Token**: `https://auth.worksmobile.com/oauth2/v2.0/token`
- **Userinfo (OIDC)**: `https://www.worksapis.com/v1.0/oidc/userinfo`
@ -36,7 +61,9 @@
### 1.3. OAuth 설정
- **Redirect URL**: `https://auth.robeing.com/oauth/naverworks/callback`
- **Redirect URL**: `https://auth.ro-being.com/auth/naverworks/callback`
- **주의**: 콘솔에서 auth.robeing.com → auth.ro-being.com 변경 필요
- **패턴**: Gmail/Slack과 동일하게 auth.ro-being.com 도메인 사용
- **활성화된 Scopes**:
- `openid`, `profile`, `email` (OIDC 사용자 식별용)
- `calendar` (캘린더 읽기/쓰기)
@ -151,10 +178,10 @@
### 5.3 결정/확인 필요 사항
#### 결정사항 (확정)
- **Redirect URL 도메인**: `auth.ro-being.com` 사용
- **Redirect URL 도메인**: `auth.ro-being.com` 사용 (Gmail/Slack과 통일)
- **Private Key 처리**:
- 2025-09-17: Git 임시 commit 후 서버 전송 완료
- 서버 51123 안전 저장: `/secure/naverworks/private_20250917185550.key`
- 서버 51123: Base64로 .env 파일에 저장됨
- Git에서 삭제 완료 (commit a4a2b9c)
- **NAVER WORKS 토큰 테이블**: `naverworks_token` (team 스키마 아래, 단수형)