 
 (defroutes main-routes
   (GET "/" [request]
-       (if auth
-         (friend/authorize #{::user} (render-main-page request))
-         (render-main-page request)))
+         (render-main-page request))
 
          ;; [:ul [:li (e/link-to (misc/context-uri request "role-user") "Requires the `user` role")]
         ;;  ;[:li (e/link-to (misc/context-uri request "role-admin") "Requires the `admin` role")]

                       {:client-config client-config
                        :uri-config uri-config
                        :config-auth config-auth
                        :access-token-parsefn oauth2u/get-access-token-from-params
                        ;;:access-token-parsefn #(-> % :body codec/form-decode (get "access_token"))
                        })]})
        handler/site
        wrap-base-url)

    (-> main-routes
        (friend/authenticate
         {:allow-anon? true
          :default-landing-uri "/"
          :login-uri "/github.callback"
          :unauthorized-handler #(-> (h/html5 [:h2 "You do not have sufficient privileges to access " (:uri %)])
                                     resp/response
                                     (resp/status 401))
