diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-06 08:41:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-06 08:41:00 -0500 |
| commit | fb6350e107bd5f850a13c8c2065e341241967ab2 (patch) | |
| tree | 73e1aaa9e197df71f28accec82121581774a1aad /src/slskd/Core/API/Controllers/SessionController.cs | |
| parent | b879d7109ccde713b17258dc6d1e89624fdb6603 (diff) | |
| parent | 55db59a4ef022befd503cee7247e5f4f5e403ef8 (diff) | |
| download | slskd-fb6350e107bd5f850a13c8c2065e341241967ab2.tar.gz | |
Merge pull request #681 from slskd/fix-auth
Add authorization policies
Diffstat (limited to 'src/slskd/Core/API/Controllers/SessionController.cs')
| -rw-r--r-- | src/slskd/Core/API/Controllers/SessionController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/API/Controllers/SessionController.cs b/src/slskd/Core/API/Controllers/SessionController.cs index 5f20aa9f..65a43e72 100644 --- a/src/slskd/Core/API/Controllers/SessionController.cs +++ b/src/slskd/Core/API/Controllers/SessionController.cs @@ -61,7 +61,7 @@ namespace slskd.Core.API /// <response code="403">The authentication is is invalid.</response> [HttpGet] [Route("")] - [Authorize] + [Authorize(Policy = AuthPolicy.Any)] [ProducesResponseType(200)] [ProducesResponseType(401)] public IActionResult Check() |
