naver-config-ui
Blaze configuration templates for NAVER OAuth (accounts-ui).
If you are not using accounts-ui, skip the Blaze templates and put the Client ID and Client Secret in Meteor settings.json as shown below. service-configuration loads that block at startup.
Get Client ID and Client Secret from NAVER
Keys come from NAVER Developers. The console UI is Korean. Menu names below are the labels you will see.
- Sign in at NAVER Developers with a NAVER account. The account that registers the app becomes the administrator.
- Open Application → 애플리케이션 등록 (Register Application). First-time registration asks you to accept the terms and complete a one-time phone check.
- Set 애플리케이션 이름 (application name). This name appears on NAVER's consent screen; keep it short and recognisable (under 10 characters is recommended).
- Under 사용 API, add 네이버 로그인.
- Under 로그인 오픈 API 서비스 환경, add PC 웹. Add Mobile 웹 as well if people will sign in from phones.
- For each web environment:
-
서비스 URL: the site domain only, no protocol or port (
localhostfor local Meteor,literaryuniverse.comin production). NAVER treatswwwand subdomains of that domain as the same site. -
네이버 로그인 Callback URL: Meteor's OAuth callback, including protocol and port, with no trailing path slash after
naver. Local Meteor on port 4200:http://localhost:4200/_oauth/naverProduction is
https://<your-host>/_oauth/naver. The value must matchROOT_URLexactly or NAVER rejects the login. You can register up to five callback URLs (local, staging, production).
-
- Register the application. Open Application → 내 애플리케이션, select the app, and open the 개요 tab.
- Copy Client ID. Click 보기 next to Client Secret to reveal it. Treat the secret like a password; if it leaks, click 재발급 to rotate it. Client ID cannot be changed.
Full register walkthrough: 애플리케이션 등록. Login API details: 네이버 로그인 개발가이드.
Profile fields
On the app's API 설정 tab, the member id (이용자 식별자) is always provided. This package uses:
| Console permission | Required / additional | Stored as |
|---|---|---|
| Member id | basic | services.naver.id |
| Contact email address | required | services.naver.email and unverified emails[] (Novu / mail) |
| Nickname | required | services.naver.nickname and the new username |
| Member name | additional | services.naver.name and profile givenName |
| Profile photo | additional | services.naver.profile_image and profile avatar |
| Gender | additional | services.naver.gender and profile gender (F/M) |
| Birthday | additional | services.naver.birthday (MM-DD) |
| Year of birth | additional | services.naver.birthyear; with birthday this becomes profile.birthday |
| Age range | additional | services.naver.age; used for profile.birthday when year+day are missing |
Leave mobile phone off unless the product uses it. NAVER's production review checks that extra fields are actually used. The email is stored unverified because NAVER does not send a verification claim.
Testers and production review
Until NAVER approves the app, only the registering account and IDs listed under 멤버관리 can complete login. Add tester NAVER IDs there for local work.
Public login needs a passing 사전 검수 (pre-review) from 네이버 로그인 검수 상태. While the app is still in development, that is a NAVER console step, not a Meteor setting.
Put the keys in settings.json
Meteor's service-configuration package reads packages.service-configuration.naver and upserts the service. Do not put the secret under public.
1{ 2 "packages": { 3 "service-configuration": { 4 "naver": { 5 "loginStyle": "popup", 6 "clientId": "YOUR_NAVER_CLIENT_ID", 7 "secret": "YOUR_NAVER_CLIENT_SECRET" 8 } 9 } 10 } 11}
| Field | NAVER console | Notes |
|---|---|---|
clientId | Client ID on 개요 | Public. Safe to show in the authorize URL. |
secret | Client Secret on 개요 | Server-only. Never commit real values. |
loginStyle | (Meteor, not NAVER) | popup or redirect. Use popup. |
Run Meteor with --settings settings.json (or settings.local.json / settings.dev.json / settings.production.json in this repo). After a restart, ServiceConfiguration.configurations contains { service: 'naver', clientId, secret, loginStyle }. You do not need a manual upsert when this block is present.
If you use accounts-ui instead of settings, this package's dialog asks for the same Client ID and Client Secret. The callback URL shown in that dialog is {{ROOT_URL}}_oauth/naver.