Skip to Content
한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
book

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

by 한성용, 이선 브라운
April 2016
Beginner to intermediate
389 pages
9h 8m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
303
18
-
보안
app
.
get
('/
account
',
allow
('
customer
,
employee
'),
function
(
req
,
res
){
res
.
render
('
account
');
});
이 예제를 통해 역할 기반 승인을 얼마나 자유롭게 만들 수 있는지 힌트를 얻었길 바랍니다. 사
용자가 등록한 후 시간이 얼마나 흘렀는지, 또는 사용자가 휴가 패키지를 몇 개나 예약했는지
같은 기준으로도 승인할 수 있습니다.
18.3.8.
인증 제공자 추가
프레임워크가 만들어졌으니 인증 제공자를 추가하기도 쉽습니다. 이번엔 구글을 통해 인증해
보기로 합시다. 코드를 만들기 전에 먼저 구글 계정에 프로젝트를 등록해야 합니다. 구글 개발
자 콘솔(
https
://
console
.
developers
.
google
.
com
)에 방문해 프로젝트를 선택합니다(프로
젝트가 없다면 ‘프로젝트 생성’을 클릭하고 지시에 따르면 됩니다). 프로젝트를 선택한 다음 좌
측 메뉴에서 ‘
API
및 인증’ 섹션의 ‘사용자 인증 정보’로 이동해 ‘사용자 인증 정보 추가’ 버튼을
클릭합니다. ‘
OAuth
2
.
0
클라이언트
ID
’를 선택해 등록합니다. ‘승인된 리디렉션
URI
’ 부분에
인증된 사용자가 리다이렉트될
URI
를 입력해야 합니다.
localhost
를 사용해 테스트 중이라면
http
://
localhost
:
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한선용, 이선 브라운

Publisher Resources

ISBN: 9788968482229