Skip to content

Commit 5712e18

Browse files
committed
Add comments
1 parent c37d6da commit 5712e18

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

crates/oauth2-types/src/oidc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ impl VerifiedProviderMetadata {
950950
}
951951
}
952952

953-
/// TODO
953+
/// URL of the authorization server's userinfo endpoint.
954954
#[must_use]
955955
pub fn userinfo_endpoint(&self) -> &Url {
956956
match &self.userinfo_endpoint {

crates/storage-pg/migrations/20241124145741_upstream_oauth_userinfo.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
-- Add migration script here
1+
-- Copyright 2024 New Vector Ltd.
2+
--
3+
-- SPDX-License-Identifier: AGPL-3.0-only
4+
-- Please see LICENSE in the repository root for full details.
5+
6+
-- Add columms to upstream_oauth_providers and upstream_oauth_authorization_sessions
7+
-- table to handle userinfo endpoint.
28
ALTER TABLE "upstream_oauth_providers"
39
ADD COLUMN "fetch_userinfo" BOOLEAN NOT NULL DEFAULT FALSE,
410
ADD COLUMN "userinfo_endpoint_override" TEXT;

0 commit comments

Comments
 (0)