Skip to content

Commit

Permalink
Add basic OIDC module
Browse files Browse the repository at this point in the history
  • Loading branch information
gberaudo committed Nov 22, 2024
1 parent 4bacc21 commit 1ee7c7c
Show file tree
Hide file tree
Showing 18 changed files with 605 additions and 258 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
},
"lit-plugin.strict": true,
"javascript.preferGoToSourceDefinition": true,
"typescript.preferGoToSourceDefinition": true
"typescript.preferGoToSourceDefinition": true,
"typescript.preferences.importModuleSpecifier": "relative"
}
41 changes: 41 additions & 0 deletions adrs/2024-09-framework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ADR: opensource framework targetting developers

## Decision

We will provide a framework including:

- developper environment;
- CI;
- Production-ready Docker images;
- Turn-key apps + ability to easily create a new app;

Usage will be:

- configure;
- or fork.

This framework will be opensource, developed by a community of actors on github.

We are targetting developers.

## Context

CesiumJS is a powerful library for displaying large datasets in a realistic 3D globe.
But to create an application there is still a lot of code to write, again and again.

We think that there is space for an opensource solution to fill this gap.
Notably a lightweight solution not hidding the underlying libraries.

## Options

- create a library of components, published on npm;
- create a closed source solution;
- target non-devs with a completly dynamic / publisher solution;
- expose a simplified API.

# Justification

- by providing a complete solution we share more and it is easier and faster to use;
- a closed source solution would have no traction nor community;
- completly dynamic systems are slow, harder to do write and have higher complexity;
- a simplified API is never enough and require documentation of its own, it's a moving target.
19 changes: 19 additions & 0 deletions adrs/2024-09-plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ADR: Plugins

## Decision

Supporting external plugins (no recompilation) is a non-goal.
Plugins should be contributed in the main repository or stay in forks.

## Context

It is convenient to be able to author a plugin / distribute it / use it without full rebuild.

## Options

# Justification

- external plugins do not benefit from typescript, so they are fragile;
- they cause duplication of dependencies;
- they make the API more rigid and need more code (to provide hooks notably);
- they are not so useful in practice.
3 changes: 3 additions & 0 deletions adrs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Architecture Decision Report (ADR)

ADRs are reports of architecture decisions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ <h1>List of turn-key apps:</h1>
>Digital twins: illumination / solar</a
>
</li>
<li>
<a href="./src/apps/custom/index.html">Your app: custom</a>
</li>
<li>...</li>
</ul>
<!-- link to documentation -->
Expand Down
14 changes: 14 additions & 0 deletions oidc-redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OIDC redirect</title>
<script src="./src/oidc-redirect.js"></script>
<!-- <link rel="stylesheet" href="./src/index.css" /> -->
</head>
<body>
<h1>Redirecting authentification...</h1>
</body>
</html>
Loading

0 comments on commit 1ee7c7c

Please sign in to comment.