From 83486ae0cc56f70e25b6c4b1b2b71e4b42c6e554 Mon Sep 17 00:00:00 2001 From: Olivier Ligot Date: Wed, 17 Sep 2014 15:40:43 +0200 Subject: [PATCH] Fix authentication filter: use {HTTP_AUTHORIZATION}.is_basic --- examples/filter/src/filter/authentication_filter.e | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/filter/src/filter/authentication_filter.e b/examples/filter/src/filter/authentication_filter.e index 0587ec76..c3bf8ae3 100644 --- a/examples/filter/src/filter/authentication_filter.e +++ b/examples/filter/src/filter/authentication_filter.e @@ -28,7 +28,7 @@ feature -- Basic operations end if l_auth /= Void and then - (attached l_auth.type as l_auth_type and then l_auth_type.same_string ("basic")) and then + l_auth.is_basic and then attached l_auth.login as l_auth_login and then attached Db_access.user (0, l_auth_login) as l_user and then l_auth_login.same_string (l_user.name) and then @@ -60,6 +60,6 @@ feature {NONE} -- Implementation end note - copyright: "2011-2013, Olivier Ligot, Jocelyn Fiat and others" + copyright: "2011-2014, Olivier Ligot, Jocelyn Fiat and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" end