aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_auth/oidc
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2024-12-31 16:23:46 +0100
committerTim <contact@bytim.eu>2024-12-31 16:23:46 +0100
commit5314290bbec53379372d14234fdc4f28cbe3286a (patch)
tree32bcb32e394873692d16ff7d2c436a71acf2f6b3 /src/dummy_auth/oidc
downloaddummy-auth-5314290bbec53379372d14234fdc4f28cbe3286a.tar.xz
dummy-auth-5314290bbec53379372d14234fdc4f28cbe3286a.zip
Initial commit
Diffstat (limited to 'src/dummy_auth/oidc')
-rw-r--r--src/dummy_auth/oidc/userinfo.clj13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dummy_auth/oidc/userinfo.clj b/src/dummy_auth/oidc/userinfo.clj
new file mode 100644
index 0000000..97414bb
--- /dev/null
+++ b/src/dummy_auth/oidc/userinfo.clj
@@ -0,0 +1,13 @@
+(ns dummy-auth.oidc.userinfo
+ (:require [ring.util.response :as ruresp]))
+
+;; https://openid.net/specs/openid-connect-core-1_0.html#UserInfo
+(defn handle [_req]
+ (println "oidc/userinfo: responding...")
+ (ruresp/response {"sub" "0"
+ "name" "Jane Doe"
+ "given_name" "Jane"
+ "family_name" "Doe"
+ "preferred_username" "j.doe"
+ "email" "janedoe@example.com"
+ "picture" "http://example.com/janedoe/me.jpg"}))