# Chapter 13 Adapter Pattern

**URL:** <https://forums.kodeco.com/t/chapter-13-adapter-pattern/114004>\
**Category:** Design Patterns by Tutorials\
**Created:** [July 5, 2020, 2:19am UTC](https://forums.kodeco.com/t/chapter-13-adapter-pattern/114004 "2020-07-05T02:19:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcneils](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mcneils/32/81494_2.png) [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Post date:** [July 5, 2020, 2:19am UTC](https://forums.kodeco.com/t/chapter-13-adapter-pattern/114004/1 "2020-07-05T02:19:30Z")

</div>

I’m kind of confused as to what we are “Adapting” here. As in, say I wanted to also use the Facebook sign in and created a dummy 3rd party like we did in the playground example.

What would be the best way to do this? Would I also have to create a Legacy Object called FacebookAuthenticator and an adapter called FacebookAuthenticatorAdapter? Or would the better way be to have an adapter just called AuthenticatorAdapter and have some sort of switch case that can identify which type of AuthenticatorAdapter we are passing in that conforms to the AuthenticationService protocol?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 5, 2020, 2:22am UTC](https://forums.kodeco.com/t/chapter-13-adapter-pattern/114004/2 "2020-07-05T02:22:28Z")

</div>

@jstrawn Can you please help with this when you get a chance? Thank you - much appreciated! :]
