<a id="naver"></a>

# Naver

<a id="backend-class"></a>

## Backend class

For Django, add this class path to `AUTHENTICATION_BACKENDS`. For other
integrations, use the same class path in the framework-specific backend
setting.

| Backend name   | Class path                               |
|----------------|------------------------------------------|
| `naver`        | `social_core.backends.naver.NaverOAuth2` |

Naver uses OAuth v2 for Authentication.

- Register a new application at the [Naver API](https://nid.naver.com/devcenter/docs.nhn?menu=API), and
- add naver oauth backend to your settings page:
  ```default
  SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
      ...
      'social_core.backends.naver.NaverOAuth2',
      ...
  )
  ```
- fill `Client ID` and `Client Secret` from developer.naver.com
  values in the settings:
  ```default
  SOCIAL_AUTH_NAVER_KEY = ''
  SOCIAL_AUTH_NAVER_SECRET = ''
  ```
- you can get EXTRA_DATA:
  ```default
  SOCIAL_AUTH_NAVER_EXTRA_DATA = ['nickname', 'gender', 'age',
                                  'birthday', 'profile_image']
  ```
