From b5f6f5e2e60901d2851af4baa6bd09f5529618ff Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 23 Apr 2006 01:13:36 +0000 Subject: [PATCH] prepared some Google login API support git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1252 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 +++++ .../NGObjWeb/SoObjects/SoHTTPAuthenticator.m | 14 ++++++++++++++ sope-appserver/NGObjWeb/Version | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index e52fe7f2..20052f36 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2006-04-23 Helge Hess + + * SoObjects/SoHTTPAuthenticator.m: prepared some Google login API + support (v4.5.227) + 2006-04-12 Marcus Mueller * WOHttpAdaptor/WOHttpAdaptor.m: shifted retrieval of WOPort default diff --git a/sope-appserver/NGObjWeb/SoObjects/SoHTTPAuthenticator.m b/sope-appserver/NGObjWeb/SoObjects/SoHTTPAuthenticator.m index d8f8b15d..4e53c3a9 100644 --- a/sope-appserver/NGObjWeb/SoObjects/SoHTTPAuthenticator.m +++ b/sope-appserver/NGObjWeb/SoObjects/SoHTTPAuthenticator.m @@ -69,6 +69,14 @@ NSString *login, *pwd; NSString *k; + /* + Hack for Google authentication (we treat the auth just like regular + HTTP authentication). + */ + if ([_creds hasPrefix:@"GoogleLogin auth="]) + _creds = [_creds substringFromIndex:17]; + + if (![_creds isNotEmpty]) { static NSArray *anon = nil; if (anon == nil) @@ -205,6 +213,12 @@ [_ctx setObject:anon forKey:@"SoAuthenticatedRoles"]; return nil; } + /* + Hack for Google authentication (we treat the auth just like regular + HTTP authentication). + */ + else if ([auth hasPrefix:@"GoogleLogin auth="]) + auth = [auth substringFromIndex:17]; /* authentication provided, check whether it's valid */ diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index 2d7502f0..237873aa 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=226 +SUBMINOR_VERSION:=227 # v4.5.214 requires libNGExtensions v4.5.179 # v4.5.122 requires libNGExtensions v4.5.153 -- 2.39.5