Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 83e4aa4

Browse files
committed
admin: setup base for oauth2 sessions endpoints
1 parent 19d485a commit 83e4aa4

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

crates/handlers/src/admin/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ where
6464
.nest("/api/admin/v1", self::v1::router())
6565
.finish_api_with(&mut api, |t| {
6666
t.title("Matrix Authentication Service admin API")
67+
.tag(Tag {
68+
name: "oauth2-session".to_owned(),
69+
description: Some("Manage OAuth2 sessions".to_owned()),
70+
..Tag::default()
71+
})
6772
.tag(Tag {
6873
name: "user".to_owned(),
6974
description: Some("Manage users".to_owned()),

crates/handlers/src/admin/v1/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use mas_storage::BoxRng;
2323
use super::call_context::CallContext;
2424
use crate::passwords::PasswordManager;
2525

26+
mod oauth2_sessions;
2627
mod users;
2728

2829
pub fn router<S>() -> ApiRouter<S>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2024 The Matrix.org Foundation C.I.C.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.

docs/api/spec.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,10 @@
10271027
}
10281028
],
10291029
"tags": [
1030+
{
1031+
"name": "oauth2-session",
1032+
"description": "Manage OAuth2 sessions"
1033+
},
10301034
{
10311035
"name": "user",
10321036
"description": "Manage users"

0 commit comments

Comments
 (0)