Repository navigation
Commit f243bd9
committed
feat(auth): profile pictures
Accounts can set a profile picture. Apps receive it as the standard
`picture` claim under the `profile` scope, and both SDKs read it. Every
avatar in auth's pages and the admin dashboard shows it in place of the
initials. Administrators can view and remove one, with a reason, from the
dashboard and the CLI.
The settings get a Profile tab showing the account as apps see it, with
rows for the handle, the display name and the picture, each changed in a
dialog that opens with no script. The handle and display name move there from
Sign-in methods. Page notices can be dismissed.
Uploads are decoded under size and allocation limits and re-encoded as a
512px square JPEG, so no upload bytes or metadata are ever stored. Pictures
live in Postgres and are served at /pictures/{id} with immutable caching;
the id changes on every upload.
Closes #321.1 parent 09c6ede commit f243bd9
137 files changed
Lines changed: 3176 additions & 524 deletions
File tree
- apps
- auth-service
- src
- account
- admin
- cli
- deletion
- export
- oidc
- tests
- pictures
- encoding
- security
- web
- admin
- settings
- web/assets/policies
- crates
- auth-sdk/src/axum/login
- common
- src
- events
- protocol
- tests
- database
- .sqlx
- migrations
- src
- repositories
- pictures
- users
- ui
- assets/style
- src
- admin
- layout
- settings
- docs/architecture
- infra
- packages/auth/src
- tests
- browser
- sdk-vectors
- discovery
- tokens
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
0 commit comments