Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/auth/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>ログアウト - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/auth/logout_confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>ログアウト確認 - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/auth/not_member.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>ギルド未所属 - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/common/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>エラー {{STATUS}} - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>TORO Server 認証</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
Expand Down
1 change: 1 addition & 0 deletions assets/oauth/consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>AI クライアントとの連携の許可 - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/oauth/denied.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>連携を拒否しました - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
1 change: 1 addition & 0 deletions assets/oauth/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>正しくない認可の要求 - TORO サーバー</title>
<link rel="icon" href="/_assets/favicon.svg?v={{V}}">
<link rel="stylesheet" href="/_assets/auth.css?v={{V}}">
Expand Down
6 changes: 5 additions & 1 deletion tests/phase7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ async fn logout_get_and_foreign_post_do_not_revoke() {
assert!(session_is_valid(&server, &member).await);

// Origin の無い POST や、別オリジン (サブドメインを含む) からの POST は拒否し、失効させない
for origin in [None, Some("https://wiki.torosaba.net"), Some("https://evil.example")] {
for origin in [
None,
Some("https://wiki.torosaba.net"),
Some("https://evil.example"),
] {
let mut req = server
.client
.post(server.url("/logout"))
Expand Down