lib/rmobio/auth.rb in rmobio-1.1.3 vs lib/rmobio/auth.rb in rmobio-1.1.4

- old
+ new

@@ -96,16 +96,12 @@ #tokenize(req_url) do |token| # token_list << token #end surl=request.protocol + request.host_with_port + request.request_uri logger.debug(" surl 0-=== #{surl}") - uritokens = request.request_uri.split('/') - domain='' - uritokens.each_with_index do |w,index| - if(w=='w') - domain =uritokens[index+1] - end - end + + # Retrieve the domain from the request_uri + domain = Rmobio::Utils.get_domain(request.request_uri) no_auth_domains =MOBIO_CONFIG['no_auth_domains'] if (no_auth_domains != nil) no_auth_domains.each do |d| if(domain == d) \ No newline at end of file