하도록 정할 수 있으므로 외부 당사자의 인증되지 않은 요청은 적절하게 처리된다. 분명히 이
것은 마이크로서비스 전반에 걸쳐 많은 중복 기능을 의미할 수 있다. 공유 라이브러리가 도움
이 될 수 있지만 공유 코드에서 발생할 수 있는 결합을 피하도록 주의해야 한다(자세한 내용은
5
.
8
절 ‘마이크로서비스 세계에서
DRY
와 코드 재사용의 위험’을 참고하라). 공유 라이브러리
는 다른 기술 스택으로 작성된 마이크로서비스가 존재한다면 도움이 되지 않는다.
각각의 서비스가
ID
제공자와의 핸드셰이크를 관리하는 것보다 더욱 일반적인 방식은 [그림
11
-
7
]과 같이 게이트웨이를 사용해 서비스와 외부 세계 사이에 있는 프록시
proxy
역할을 하는
것이다. 이는 사용자를 리디렉션하기 위한 동작을 한데 모아 한 곳에서만 핸드셰이킹을 수행할
수 있다고 생각하기 때문이다.
브라우저
SSO
게이트웨이
카탈로그
ID
제공자
추천
고객
사용자가 인증되기 전까지
호출은 허용되지 않는다
인증된 사용자에 대한 정보는 헤더 등을 통해
마이크로서비스로 전달될 수 있다
인증을 위해 리디렉션
그림
11-7
SSOSSO ...
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.