Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Authenticating Against our API

Allowing API access without any sort of restrictions or authentication can actually be very dangerous for the long-term health of your application. Without a means of restricting access, you are very prone to bad actors coming along and disrupting the experience of your application and API for all of the legitimate users of your API, so let's implement a simple HTTP Basic authentication mechanism using the already-established usernames and a new password-like API key.

The flow of our Phoenix application's flow should look something like this:

The good news is that this remains a very simple thing to implement ...

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.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content