Revision 311eefcb src/authm_mad/one_auth_mad.rb

View differences:

src/authm_mad/one_auth_mad.rb
84 84
    end
85 85
    
86 86
    def action_authorize(request_id, user_id, *tokens)
87
        auth=@permissions.auth(user_id, tokens.flatten)
87
        begin
88
            auth=@permissions.auth(user_id, tokens.flatten)
89
        rescue Exception => e
90
            auth="Error: #{e}"
91
        end
92
        
88 93
        if auth==true
89 94
            send_message('AUTHORIZE', RESULT[:success],
90 95
                request_id, 'success')
......
95 100
    end
96 101
end
97 102

  
103
begin
104
    am=AuthorizationManager.new
105
rescue Exception => e
106
    puts "Error: #{e}"
107
    exit(-1)
108
end
98 109

  
99
am=AuthorizationManager.new
100 110
am.start_driver
101 111

  

Also available in: Unified diff