]> err.no Git - sope/commitdiff
prepared some Google login API support
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 23 Apr 2006 01:13:36 +0000 (01:13 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 23 Apr 2006 01:13:36 +0000 (01:13 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1252 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/SoObjects/SoHTTPAuthenticator.m
sope-appserver/NGObjWeb/Version

index e52fe7f25cbfd09982a39103bbea1a738831a8d2..20052f364f76ccc7a8d443e7dce88f62dedc15bd 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-23  Helge Hess  <helge.hess@opengroupware.org>
+
+       * SoObjects/SoHTTPAuthenticator.m: prepared some Google login API
+         support (v4.5.227)
+
 2006-04-12  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * WOHttpAdaptor/WOHttpAdaptor.m: shifted retrieval of WOPort default
index d8f8b15dbf5927baef1a9429d4b02edf08508658..4e53c3a91e64825af449b2442d0da56e0adbe5fc 100644 (file)
   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)
     [_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 */
   
index 2d7502f0530655c95beae781ea56b99e2a66621d..237873aa16b5c717dc9c797320cb6acf3229bc53 100644 (file)
@@ -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