This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Metric callback handler for pushing Datomic metrics to CloudWatch | |
; | |
; http://docs.datomic.com/monitoring.html | |
; | |
; Instructions: | |
; 1) Add CloudWatch sdk to your project.clj | |
; | |
; [com.amazonaws/aws-java-sdk-cloudwatch "1.11.6"] | |
; | |
; 2) Specify the handler function as the metrics callback handler with a java opt at run time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns myapp.authenticate.oauth | |
"OAuth authentication" | |
(:require | |
[cheshire.core :as json] | |
[clj-http.client :as http] | |
[clojure.string :as string] | |
[clojure.tools.logging :as logging]) | |
(:use | |
[oauthentic.core :only [build-authorization-url fetch-token]] | |
[ring.util.response :only [redirect]] |