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

Commit d367d6d

Browse files
committed
admin: setup base for oauth2 sessions endpoints
1 parent 96933d9 commit d367d6d

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
@@ -62,6 +62,11 @@ where
6262
.nest("/api/admin/v1", self::v1::router())
6363
.finish_api_with(&mut api, |t| {
6464
t.title("Matrix Authentication Service admin API")
65+
.tag(Tag {
66+
name: "oauth2-session".to_owned(),
67+
description: Some("Manage OAuth2 sessions".to_owned()),
68+
..Tag::default()
69+
})
6570
.tag(Tag {
6671
name: "user".to_owned(),
6772
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
@@ -19,6 +19,7 @@ use mas_storage::BoxRng;
1919

2020
use super::call_context::CallContext;
2121

22+
mod oauth2_sessions;
2223
mod users;
2324

2425
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
@@ -706,6 +706,10 @@
706706
}
707707
],
708708
"tags": [
709+
{
710+
"name": "oauth2-session",
711+
"description": "Manage OAuth2 sessions"
712+
},
709713
{
710714
"name": "user",
711715
"description": "Manage users"

0 commit comments

Comments
 (0)