                     fn()
                     
             
-            ## a static token has to be of the length of 40 plus the key in @_TOKENS
-            ## e.g. 8b804dd8-7a88-4142-8b33-913a586d67b4----backend so that the following comes true
-            ## @_TOKENS['backend'] is '8b804dd8-7a88-4142-8b33-913a586d67b4----backend'
-            else if @_TOKENS[sid] is token
-                fn()
-            
-            else
-                #console.log 'session failure', sid, sess, sess?.user
-                
-                fn new Error 'unauthorized sessionID'
+            else 
+                super token, fn
                 
         ##
         ##

        ##
        ## 
        ##
        authorize: (token, fn)->
            
            sid = token.substr 40				
            
            #console.log 'session authorize session %s', sid
            
            if (sess = @_registry.get sid)
                
                #console.log 'found session', sess, sess.public.user?.login


            
            @logger.debug 'session authenticate identity %s', identity.id
            
            super identity, (err)=>
                return fn() if !err ## successfully authenticated
                
                identity.token (err, token)=>
                    if err || !token
                        @logger.warning 'session authenticate NO TOKEN', identity.id

                        return fn(err || new Error 'session authenticate NO TOKEN') 
                
                    sid = token.substr 40				
                    
                    @logger.fine 'session authenticate session %s', sid

                    @_load sid, (err, sess)=>
                        return fn(err) if err
                    
                        @logger.finer 'session authenticate hash %s', token.substr 0, 39
                    
                        if token is sess.token
                        
                            @logger.debug 'session authenticate SUCCESS', identity.id 
                        
                            fn()
                        
                        else
                            @logger.debug 'session authenticate FAILURE', identity.id 
                        
                            fn new Error 'session authenticate FAILURE'
                            
        
