tangled
alpha
login
or
join now
plc.jbc.lol
/
KcIA
0
fork
atom
Keycloak to IndieAuth translator (mirror of https://git.jbc.lol/jbcrn/KcIA)
0
fork
atom
overview
issues
pulls
pipelines
quick fix
plc.jbc.lol
4 months ago
aa032d19
259d57e5
+3
-2
1 changed file
expand all
collapse all
unified
split
src
index.js
+3
-2
src/index.js
···
65
65
66
66
let clientName = clientUri.hostname, clientIcon, clientDesc = "";
67
67
68
68
-
console.log(clientIcon, clientName)
69
68
let url = new URL(client_id);
70
69
url.pathname = '/'
71
70
···
75
74
if (clientRes.headers.get('Content-Type').includes('json')) {
76
75
const json = await clientRes.json();
77
76
clientName = json.client_name;
78
78
-
clientIcon = json.client_logo;
77
77
+
clientIcon = json.client_logo ?? json.logo_uri;
79
78
80
79
try {
81
80
let homepageRes = await fetch(url);
···
126
125
clientIcon = undefined;
127
126
clientName = new URL(client_id).hostname;
128
127
}
128
128
+
129
129
+
console.log(clientIcon, clientName)
129
130
130
131
try {
131
132
await kcAdminClient.clients.create({