Example of enterprise implementation
Throughout this book, we will build a secure design for an event ticketing system. Envision a software system that allows a box office or a website to sell tickets to a famous musical concert or theatre event. We will implement SSO and OAuth integration to Google for authorization and authentication.
To implement SSO with Google in PHP, you can use OAuth 2.0 and OpenID Connect. Here’s a step-by-step guide that worked at the time of this book’s publishing. The concepts will still apply when you read this, but Google may change the steps:
- Create a project in the Google Cloud Console:
- Go to the Google Cloud Console (https://console.cloud.google.com/).
- Create a new project or select an existing one.
- Enable APIs:
- Enable the “Google+ API” and “Google Identity Toolkit API” for your project.
- Configure OAuth 2.0 Credentials:
- Navigate to the “Credentials” page in your Google Cloud...