Skip to content

Instantly share code, notes, and snippets.

View jdcasey's full-sized avatar

John Casey jdcasey

View GitHub Profile
@jdcasey
jdcasey / basics.txt
Created July 15, 2015 17:01
aprox + keycloak local with enable-basic-auth
UI: http://aprox.local:8081/index.html
REST: http://aprox.local:8081/api/**
Keycloak: http://keycloak.local:8080/auth
@jdcasey
jdcasey / aprox-realm.json
Created July 14, 2015 16:02
aprox keycloak realm config
{
"id" : "e70efabb-bfe1-4b85-9749-a44ee989676f",
"realm" : "aprox",
"notBefore" : 1436852857,
"accessTokenLifespan" : 300,
"ssoSessionIdleTimeout" : 1800,
"ssoSessionMaxLifespan" : 36000,
"accessCodeLifespan" : 60,
"accessCodeLifespanUserAction" : 300,
"accessCodeLifespanLogin" : 1800,
@jdcasey
jdcasey / aprox-keycloak-error-summary.md
Last active August 29, 2015 14:24
errors in test aprox + keycloak setup

My error (in browser console):

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/auth/realms/aprox/protocol/openid-connect/token. (Reason: CORS header 'Access-Control-Allow-Origin' missing). <unknown>

Keycloak server:

http://localhost:8080/auth (docker container)

Angular client:

#!/usr/bin/env ruby
# encoding: utf-8
=begin
github_toc v0.1.0
Brett Terpstra 2014
Creates a linked table of contents from headers in a GitHub readme
Place a [toc] marker in the file to have it automatically replaced with the TOC
If there's no marker, it dumps just the TOC to STDOUT
+ cat /proc/self/mountinfo
1 1 0:1 / / rw shared:1 - rootfs rootfs rw
15 1 0:3 / /proc rw,nosuid,nodev,noexec,relatime shared:2 - proc proc rw
16 1 0:14 / /sys rw,nosuid,nodev,noexec,relatime shared:3 - sysfs sysfs rw
17 1 0:5 / /dev rw,nosuid shared:9 - devtmpfs devtmpfs rw,size=2005856k,nr_inodes=501464,mode=755
18 16 0:15 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:4 - securityfs securityfs rw
19 16 0:13 / /sys/fs/selinux rw,relatime shared:5 - selinuxfs selinuxfs rw
20 17 0:16 / /dev/shm rw,nosuid,nodev shared:10 - tmpfs tmpfs rw
21 17 0:10 / /dev/pts rw,nosuid,noexec,relatime shared:11 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
22 1 0:17 / /run rw,nosuid,nodev shared:12 - tmpfs tmpfs rw,mode=755