Changeset 6191


Ignore:
Timestamp:
18/12/09 11:40:05 (10 years ago)
Author:
domlowe
Message:

modifying cowsclient so that client does not need to use security wsgi pipeline, all security is done on server

Location:
cowsclient/trunk
Files:
3 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/config/routing.py

    r5265 r6191  
    1818 
    1919    # CUSTOM ROUTES HERE 
    20  
     20     
    2121    map.connect(':controller/:action/:id') 
    2222    map.connect('*url', controller='template', action='view') 
  • cowsclient/trunk/cowsclient/public/js/layerControl.js

    r6038 r6191  
    210210            this.tree.removeNode(loadingNode); 
    211211            this.redrawTree(); 
    212             alert('Login was unsucessful'); 
     212            alert('Login to secure service was unsucessful'); 
    213213            return false; 
    214214        }; 
    215215 
    216216        var onRetriveWMCFail = function (resp) { 
    217             if (resp.status === 302) { 
     217            WMSC.log('response status = ' + resp.status); 
     218            if (resp.status === 401) { 
    218219                 
    219220                //If the user's browser can show a modal dialog window and not 
    220221                //block it with a popup blocker, then show it 
    221      
     222                var loginpage='./securitylogin?endpoint=' + wmcEndpoint; 
    222223                if (!isPopupBlocker()) {     
    223                     window.showModalDialog('./securityredirect', 'please log in', 'dialogHeight=350px', 'dialogWidth=500px'); 
     224                    window.showModalDialog(loginpage, 'please log in', 'dialogHeight=500px', 'dialogWidth=800px'); 
    224225                 
    225226                    //when logged in and new window closed, try again: 
  • cowsclient/trunk/cowsclient/public/js/wmcRetriever.js

    r6038 r6191  
    2121     
    2222    getWMC: function (endpoint, onSuccessFunction, onFailureFunction) { 
    23          
    2423        if (this.isWMCCached(endpoint)) { 
    2524                onSuccessFunction(this.contextLookup[endpoint]); 
  • cowsclient/trunk/setup.cfg

    r5817 r6191  
    11[egg_info] 
    2 tag_svn_revision = false 
     2tag_svn_revision = true 
Note: See TracChangeset for help on using the changeset viewer.