From the course: Web Security: OAuth and OpenID Connect (2019)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring an OAuth server in PHP

Configuring an OAuth server in PHP

From the course: Web Security: OAuth and OpenID Connect (2019)

Start my 1-month free trial

Configuring an OAuth server in PHP

- [Instructor] You can run your own OAuth server with a variety of different open source projects. For this course, I've used a PHP league package called OAuth Server. While there are basic composer install directions available in the documentation, it leaves you with a configured OAuth server without any external interfaces to authorize against. Instead, I recommend going directly to the GitHub repository and using the Examples folder. That's what we've set up here. So, we go to the command line, we go into the Start folder and we can run composer install. This will go ahead and install most of the libraries that we need right out of the box. Next, we want to make sure that our JWT tokens can actually be signed with keys. So let's go ahead and grab this command to generate a private key. We'll make sure the permissions of that private key are correct... And then we'll go ahead and generate the public key that goes…

Contents