Draft: SSO login (OAuth 2.0 + OpenID Connect) #1012

Open
avdb13 wants to merge 11 commits from oidc into next
avdb13 commented 2024-02-22 18:17:24 +00:00 (Migrated from gitlab.com)

Continuation of MR https://gitlab.com/famedly/conduit/-/merge_requests/80.

Need a bit of guidance figuring out how to approach these changes.

  • oidc service
  • SSO endpoints
  • New onfiguration fields
  • Discovery of providers through get_login_types
  • Askama HTML templates for login

The only thing that currently works is the SSO picker page.


  • I ran cargo fmt and cargo test
  • I agree to release my code and all other changes of this MR under the Apache-2.0 license
Continuation of MR https://gitlab.com/famedly/conduit/-/merge_requests/80. Need a bit of guidance figuring out how to approach these changes. - `oidc` service - SSO endpoints - New onfiguration fields - Discovery of providers through `get_login_types` - Askama HTML templates for login The only thing that currently works is the SSO picker page. <!-- Please describe your changes here --> ----------------------------------------------------------------------------- - [ ] I ran `cargo fmt` and `cargo test` - [x] I agree to release my code and all other changes of this MR under the Apache-2.0 license
avdb13 commented 2024-02-22 18:17:38 +00:00 (Migrated from gitlab.com)

marked the checklist item I ran cargo fmt and cargo test as incomplete

marked the checklist item **I ran `cargo fmt` and `cargo test`** as incomplete
avdb13 commented 2024-02-22 18:20:39 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
avdb13 commented 2024-02-22 18:28:49 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
avdb13 commented 2024-02-22 18:29:44 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
avdb13 commented 2024-02-29 12:29:52 +00:00 (Migrated from gitlab.com)

added 22 commits

  • f57dd7ab...4f096adc - 11 commits from branch famedly:next
  • bc7cf195 - 1 earlier commit
  • a220f85b - feat: oidc configuration
  • 903cfc40 - wip: using macaroon instead of base64 for cookie
  • 552afb66 - feat: provider configuration/initializiation
  • 3a3295a5 - feat: allow for fine-grained configuration
  • 8fd6a88f - initial draft
  • e4bda7bb - wip
  • da0448f1 - Matrix endpoints working fine
  • be13266e - API finished
  • 03d312ca - finished for real now
  • 7c215221 - cleaning job

Compare with previous version

added 22 commits <ul><li>f57dd7ab...4f096adc - 11 commits from branch <code>famedly:next</code></li><li>bc7cf195 - 1 earlier commit</li><li>a220f85b - feat: oidc configuration</li><li>903cfc40 - wip: using macaroon instead of base64 for cookie</li><li>552afb66 - feat: provider configuration/initializiation</li><li>3a3295a5 - feat: allow for fine-grained configuration</li><li>8fd6a88f - initial draft</li><li>e4bda7bb - wip</li><li>da0448f1 - Matrix endpoints working fine</li><li>be13266e - API finished</li><li>03d312ca - finished for real now</li><li>7c215221 - cleaning job</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/587/diffs?diff_id=940231810&start_sha=f57dd7ab2a2db9b2acc952f61e4b6f50b8f0b8ea)
avdb13 commented 2024-02-29 15:34:38 +00:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>d22243a3 - cleaning job</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/587/diffs?diff_id=940544618&start_sha=7c215221e26331b8dc815476fa0c938f7f05766d)
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin oidc:oidc
git checkout oidc

Merge

Merge the changes and update on Forgejo.
git checkout next
git merge --no-ff oidc
git checkout next
git merge --ff-only oidc
git checkout oidc
git rebase next
git checkout next
git merge --no-ff oidc
git checkout next
git merge --squash oidc
git checkout next
git merge --ff-only oidc
git checkout next
git merge oidc
git push origin next
Sign in to join this conversation.
No reviewers
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#1012
No description provided.