Skip to content

Commit cfc80d4

Browse files
committed
In progress
1 parent d005e8f commit cfc80d4

File tree

8 files changed

+307
-72
lines changed

8 files changed

+307
-72
lines changed

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
"yaml.schemas": {
33
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
44
},
5-
"yaml.customTags": [
5+
"yaml.customTags": [
66
"!ENV scalar",
77
"!ENV sequence",
88
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
99
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
1010
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
11+
],
12+
"json.schemas": [
13+
{
14+
"url": "./demo/keto/.schemas/relation_tuple_file.schema.json",
15+
"fileMatch": [
16+
"demo/keto/relationships.json"
17+
]
18+
}
1119
]
1220
}

auth/authentication/keycloak-init.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Keycloak admin credentials
4+
KC_USER=admin
5+
KC_PASSWORD=admin
6+
KC_AUTH_URL=http://localhost:a8080/auth
7+
8+
# New realm details
9+
NEW_REALM=eoapi
10+
11+
# Login
12+
kcadm.sh config credentials --server $KC_AUTH_URL --realm master --user $KC_USER --password $KC_PASSWORD
13+
14+
# Create new realm
15+
kcadm.sh create realms -s realm=$NEW_REALM -s enabled=true -s displayName="My Custom Realm"
16+
17+
# Create stac-api client in the new realm
18+
kcadm.sh create clients -r $NEW_REALM -s clientId=stac-api -s publicClient=true -s directAccessGrantsEnabled=true -s rootUrl=http://localhost:3000 -s 'redirectUris=["*"]'
19+
20+
# Create user Alice in the new realm
21+
kcadm.sh create users -r $NEW_REALM -s username=Alice -s enabled=true
22+
# Set Alice's password
23+
kcadm.sh set-password -r $NEW_REALM --username Alice --new-password Alice
24+
25+
# Create user Bob in the new realm
26+
kcadm.sh create users -r $NEW_REALM -s username=Bob -s enabled=true
27+
# Set Bob's password
28+
kcadm.sh set-password -r $NEW_REALM --username Bob --new-password Bob
29+
30+
echo "Initialization completed for realm $NEW_REALM."

demo/cmip6/generate_cmip6_items.ipynb

Lines changed: 155 additions & 46 deletions
Large diffs are not rendered by default.

demo/facebook/demo.ipynb

Lines changed: 84 additions & 22 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
{"id":"noaa-emergency-response", "title": "NOAA Emergency Response Imagery", "description":"NOAA Emergency Response Imagery hosted on AWS Public Dataset.","stac_version":"1.0.0","license":"public-domain","links":[],"extent":{"spatial":{"bbox":[[-180,-90,180,90]]},"temporal":{"interval":[["2005-01-01T00:00:00Z","null"]]}}}
1+
{
2+
"id": "noaa-emergency-response",
3+
"title": "NOAA Emergency Response Imagery",
4+
"description": "NOAA Emergency Response Imagery hosted on AWS Public Dataset.",
5+
"stac_version": "1.0.0",
6+
"license": "public-domain",
7+
"links": [],
8+
"extent": {
9+
"spatial": { "bbox": [[-180, -90, 180, 90]] },
10+
"temporal": { "interval": [["2005-01-01T00:00:00Z", null]] }
11+
}
12+
}

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,21 @@ services:
200200
ports:
201201
- 3000:3000
202202

203+
keycloak:
204+
image: jboss/keycloak:latest
205+
environment:
206+
DB_VENDOR: H2
207+
KEYCLOAK_USER: admin
208+
KEYCLOAK_PASSWORD: admin
209+
ports:
210+
- "8080:8080"
211+
- "9990:9990"
212+
command:
213+
- "-Dkeycloak.profile.feature.upload_scripts=enabled"
214+
volumes:
215+
# - ./keycloak-realm-config:/tmp/keycloak-realm-config
216+
- ./keycloak-init.sh:/opt/jboss/startup-scripts/keycloak-init.sh
217+
203218
networks:
204219
default:
205220
name: eoapi-network

runtime/spicedb/spicedb-ui/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function RootLayout({
1717
return (
1818
<html lang="en">
1919
<body className={inter.className}>
20-
<main className="flex min-h-screen flex-col items-center justify-between p-24">
20+
<main className="flex min-h-screen flex-col items-center p-24">
2121
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
2222
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
2323
Permissions

runtime/spicedb/spicedb-ui/src/components/Pill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const pillColors = {
33
green: "bg-green-500 border-green-500 text-white",
44
red: "bg-red-500 border-red-500 text-white",
55
yellow: "bg-yellow-500 border-yellow-500 text-white",
6-
gray: "bg-gray-500 border-gray-500 text-white",
6+
gray: "bg-gray-300 border-gray-300 text-white",
77
indigo: "bg-indigo-500 border-indigo-500 text-white",
88
purple: "bg-purple-500 border-purple-500 text-white",
99
pink: "bg-pink-500 border-pink-500 text-white",

0 commit comments

Comments
 (0)