# Clojure auth with buddy

DevFeed: [Clojure auth with buddy](<https://devfeed.tech/articles/clojure-auth-with-buddy-32099.md>)

Original publisher: [Read original article](<https://adambard.com/blog/clojure-auth-with-buddy/>)

Author: Authorization

Published: 2015-12-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Adam Bard](<https://devfeed.tech/sources/adam-bard.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [framework](<https://devfeed.tech/tags/framework.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [token](<https://devfeed.tech/tags/token.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>)

## AI overview

This tutorial reviews Buddy, a Clojure authentication and authorization framework for Ring web applications. It explains session authentication, login and logout handlers, password handling, and Buddy's JWS/JWE token-based authentication approach.

## Source excerpt

A while back, I wrote about using Friend to handle auth in Clojure. I neglected to mention (or look at, in particular) the other auth framework making waves in the Clojure community, aptly named Buddy. Buddy is, well, another authentication/authorization framework. It also contains some lower-level crypto utilities, but the main use right now seems to be handling auth for web applications in Ring. I had heard good things about how Buddy works, so I decided to give it a try, and now you get to hear about that.