2017 © Pedro Pelรกez
 

library naverid

image

visualplus/naverid

  • Wednesday, October 7, 2015
  • by doojinso
  • Repository
  • 1 Watchers
  • 2 Stars
  • 73 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

๋„ค์•„๋กœ (๋„ค์ด๋ฒ„ ์•„์ด๋”” ๋กœ๊ทธ์ธ)

์„ค์น˜๋ฐฉ๋ฒ•

composer require visualplus/naverid

ํŒจํ‚ค์ง€ ์„ค์น˜ ํ›„ ์„œ๋น„์Šค ํ”„๋กœ๋ฐ”์ด๋”๋ฅผ config/app.php์— ๋“ฑ๋กํ•ด์ฃผ์„ธ์š”., (*1)

\Visualplus\Naverid\ServiceProvider::class

์ด ํŒจํ‚ค์ง€๋Š” laravel/socialite๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค., (*2)

๊ทธ๋Ÿฌ๋ฏ€๋กœ socialite ์„ค์ •์„ ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด ์ถ”๊ฐ€๋กœ ์•„๋ž˜ ์„ค์ •๋„ ํ•ด์ฃผ์„ธ์š”., (*3)

config/app.php์— ์„œ๋น„์Šค ํ”„๋กœ๋ฐ”์ด๋” ๋“ฑ๋ก, (*4)

Laravel\Socialite\SocialiteServiceProvider::class,

config/app.php์— aliases ๋“ฑ๋ก, (*5)

'Socialite' => Laravel\Socialite\Facades\Socialite::class,

์‚ฌ์šฉ๋ฐฉ๋ฒ•

laravel/socialite์™€ ์‚ฌ์šฉ๋ฐฉ๋ฒ•์ด ๋™์ผํ•ฉ๋‹ˆ๋‹ค., (*6)

config/services.php ์— ์„ค์ • ๋“ฑ๋ก, (*7)

'naverid' => [
    'client_id'     => '',
    'client_secret' => '',
    'redirect'      => '',
]

๋„ค์ด๋ฒ„ ๋กœ๊ทธ์ธ, (*8)

Route::get('auth/naverid', function() {
    return Socialite::driver("naverid")->redirect();
});

๋กœ๊ทธ์ธ ํ›„, (*9)

Route::get('auth/naverid/redirect', function() {
    dd(Socialite::driver("naverid")->user());
});

๋„ค์ด๋ฒ„ ํ‚ค ๋ฐœ๊ธ‰

์•„๋ž˜ ์‚ฌ์ดํŠธ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”., (*10)

https://nid.naver.com/devcenter/products.nhn, (*11)

The Versions

07/10 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Doojin So

07/10 2015

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Doojin So

06/10 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Doojin So