aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-06-24 00:46:25 +0200
committerGravatar Tom Willemse2013-06-24 00:46:25 +0200
commit8388100fdd2f49c0a4e1a8382301cedcbce84b0b (patch)
tree70ee164831c3759a7a1241949fcbb8eb9055c02e
parent2767104527229f32c53c7c76f3e42e130e077cc1 (diff)
downloadscrumelo-8388100fdd2f49c0a4e1a8382301cedcbce84b0b.tar.gz
scrumelo-8388100fdd2f49c0a4e1a8382301cedcbce84b0b.zip
Add scrumelo-host variableHEADmaster
-rw-r--r--scrumelo.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/scrumelo.el b/scrumelo.el
index 068f5d5..6774f05 100644
--- a/scrumelo.el
+++ b/scrumelo.el
@@ -23,6 +23,11 @@
(defvar scrumelo-project-file "~/projects/scrumelo/aeos.org"
"The file containing the scrum backlog.")
+(defvar scrumelo-host "http://localhost:8028"
+ "The URL on which scrumelo is running.
+
+Mozilla persona uses this to verify login requests.")
+
(defvar scrumelo--base-dir
(if load-file-name
(file-name-directory load-file-name)
@@ -261,7 +266,7 @@ saving the buffer."
(value ""))))
(p (a (@ (href "javascript:login()")) "Login"))))))))
(POST
- (let* ((audience "http://localhost:8028")
+ (let* ((audience scrumelo-host)
(assertion (elnode-http-param httpcon "assertion"))
(result (scrumelo--verify-credentials audience assertion)))
(if (equal (cdr (assoc 'status result)) "okay")