Content-Length: 357237 | pFad | https://github.com/sebadob/rauthy/commit/6ccc541b0e6d155024aa9ba4d832dcb01f135528

65 Merge pull request #312 from sebadob/client-contacts-uri-logos · sebadob/rauthy@6ccc541 · GitHub
Skip to content

Commit

Permalink
Merge pull request #312 from sebadob/client-contacts-uri-logos
Browse files Browse the repository at this point in the history
Add `client_uri` + `contacts` and migrate `client_logos` logic
  • Loading branch information
sebadob authored Apr 13, 2024
2 parents 5a36953 + 34c09a3 commit 6ccc541
Show file tree
Hide file tree
Showing 25 changed files with 1,421 additions and 704 deletions.
9 changes: 9 additions & 0 deletions dev_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

## TODO before v0.22

- validate `db_migrate` is formed correctly after all the new migrations
sqlite -> postgres -> sqlite again
- maybe migrate the old client logos handling to the new optimized webp flow?
- add `contact` and `application_url` to the `clients` table for future features
- document "Login with Github" guide
- specifically set cache headers on client logos

## Stage 1 - essentials

Expand All @@ -19,6 +23,11 @@
- benchmarks and performance tuning
- maybe get a nicer logo

### Notes for performance optimizations

- all the `get_`s on the `Client` will probably be good with returning slices instead of real Strings -> less memory
allocations

## Stage 3 - Possible nice to haves

- respect `display=popup` and / or `display=touch` on `/authorize`
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/components/ClientLogo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script>
import {getKey} from "$lib/utils/helpers.js";
export let clientId;
</script>

<!--
We append a random param here to force the browser to do a refetch, if the logo has been changed.
This is only needed for the Admin UI, when we upload a new version of the image.
Without this (unused) query param, the browser would never reload the <img> tag.
-->
<img src="{`/auth/v1/clients/${clientId}/logo?${getKey(6)}`}" alt="No Logo Available"/>
12 changes: 12 additions & 0 deletions frontend/src/components/ProviderLogo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script>
import {getKey} from "$lib/utils/helpers.js";
export let providerId;
</script>

<!--
We append a random param here to force the browser to do a refetch, if the logo has been changed.
This is only needed for the Admin UI, when we upload a new version of the image.
Without this (unused) query param, the browser would never reload the <img> tag.
-->
<img src="{`/auth/v1/providers/${providerId}/img?${getKey(6)}`}" width={20} height={20} alt="No Logo Available"/>
Loading

0 comments on commit 6ccc541

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/6ccc541b0e6d155024aa9ba4d832dcb01f135528

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy