이 예제를 통해 역할 기반 승인을 얼마나 자유롭게 만들 수 있는지 힌트를 얻었길 바랍니다. 사
용자가 등록한 후 시간이 얼마나 흘렀는지, 또는 사용자가 휴가 패키지를 몇 개나 예약했는지
같은 기준으로도 승인할 수 있습니다.
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.
O’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
I 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
I’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
I'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.