import "github.com/markbates/goth/providers/naver"
type Provider struct { ClientKey string Secret string CallbackURL string HTTPClient *http.Client // contains filtered or unexported fields }
Provider is the implementation of `goth.Provider` for accessing naver.com.
New creates a New provider and sets up important connection details. You should always call `naver.New` to get a new Provider. Never try to craete one manually. Currently Naver only supports pre-defined scopes. You should visit Naver Developer page in order to define your application's oauth scope.
BeginAuth asks naver.com for an authentication end-point.
Debug is a no-op for the naver package.
FetchUser will go to navercom and access basic information about the user.
Name is the name used to retrive this provider later.
RefreshToken get new access token based on the refresh token
RefreshTokenAvailable refresh token is provided by naver
SetName is to update the name of the provider (needed in case of multiple providers of 1 type)
UnmarshalSession wil unmarshal a JSON string into a session.
Session stores data during the auth process with naver.com.
Authorize the session with naver.com and return the access token to be stored for future use.
GetAuthURL will return the URL set by calling the `BeginAuth` function on the meetup.com provider.
Marshal the session into a string
Package naver imports 11 packages (graph) and is imported by 5 packages. Updated 2018-03-17. Refresh now. Tools for package owners.