Permalink
Browse files

0.2.1

  • Loading branch information...
1 parent 41a99e5 commit a5adf1dd45e77bda3c71ed742c55419673a5eb83 @cemerick committed May 22, 2014
Showing with 22 additions and 3 deletions.
  1. +18 −0 CHANGES.md
  2. +3 −2 README.md
  3. +1 −1 project.clj
View
@@ -1,5 +1,23 @@
## [Friend](http://github.com/cemerick/friend) changelog
+### [`0.2.1`](https://github.com/cemerick/friend/issues?milestone=7&page=1&state=closed)
+
+* Added `:cemerick.friend/ensure-session` as an optional slot workflows can add
+ to the metadata on authentication maps they return. By default, Friend will
+ update (or set anew) the Ring session when a user is authenticated,
+ redirecting them to where they were originally headed before hitting an
+ authentication requirement. By setting `:cemerick.friend/ensure-session` and
+ `:cemerick.friend/redirect-on-auth?` to `false`, the user will not be
+ redirected, and the session will not be set. This addresses the use cases of
+ both the HTTP Basic workflow, as well as use cases where a request is made
+ simply to establish authentication without a redirect, but while retaining the
+ session-setting behaviour. (gh-83)
+* Fix the HTTP Basic workflow so that non-Basic authentication mechanisms that
+ use the `Authorization` HTTP header can be used (gh-85)
+* Workflows are now only ever run as needed (gh-90)
+* Port numbers are no longer set if `X-Forwarded-Proto` is present in the
+ original request (gh-84)
+
### `0.2.0`
Friend now depends upon Ring 1.2.0 final. This means (due to the transitive
View
@@ -114,7 +114,7 @@ Friend is available in Clojars. Add this `:dependency` to your Leiningen
`project.clj`:
```clojure
-[com.cemerick/friend "0.2.0"]
+[com.cemerick/friend "0.2.1"]
```
Or, add this to your Maven project's `pom.xml`:
@@ -128,7 +128,7 @@ Or, add this to your Maven project's `pom.xml`:
<dependency>
<groupId>com.cemerick</groupId>
<artifactId>friend</artifactId>
- <version>0.2.0</version>
+ <version>0.2.1</version>
</dependency>
```
@@ -481,6 +481,7 @@ server {
* `:type`
* `::friend/workflow`
* `::friend/redirect-on-auth?`
+ * `::friend/ensure-session`
## Need Help?
View
@@ -1,4 +1,4 @@
-(defproject com.cemerick/friend "0.2.1-SNAPSHOT"
+(defproject com.cemerick/friend "0.2.1"
:description "Authentication and authorization library for Ring Clojure web apps and services."
:url "http://github.com/cemerick/friend"
:license {:name "Eclipse Public License"

0 comments on commit a5adf1d

Please sign in to comment.