Compare commits

...
Author SHA1 Message Date
9p4 e3efd97964 Revert "Add github action for publishing releases" 2022-06-07 11:31:47 -04:00
9p4 9199fce64f Merge pull request #39 from matthewstrasiotto/update-ci
Add github action for publishing releases
2022-06-07 11:29:35 -04:00
Matthew Strasiotto 0e590858c0 add github action 2022-06-04 20:35:45 +10:00
Sambhav Saggi 9b4393981c Merge branch 'main' of https://github.com/9p4/jellyfin-plugin-sso 2022-05-30 15:20:03 -04:00
Sambhav Saggi 29e902c109 Update domain 2022-05-30 15:19:52 -04:00
9p4 b777e3a346 Merge pull request #33 from matthewstrasiotto/fix_provider_reset
Fix ID Provider incorrectly resetting on login
2022-05-26 16:38:31 -04:00
Matthew Strasiotto 5da7e02faf Fix ID Provider incorrectly resetting on login 2022-05-26 19:17:58 +10:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ This is my first time writing C# so please take all of the code written here wit
## Installing
Add the package repo [https://repo.saggis.com/jellyfin/manifest.json](https://repo.saggis.com/jellyfin/manifest.json) to your Jellyfin configuration. Then, install the package!
Add the package repo [https://repo.ersei.net/jellyfin/manifest.json](https://repo.ersei.net/jellyfin/manifest.json) to your Jellyfin configuration. Then, install the package!
## Building
+4 -4
View File
@@ -563,9 +563,9 @@ public class SSOController : ControllerBase
{
_logger.LogInformation("SSO user doesn't exist, creating...");
user = await _userManager.CreateUserAsync(username).ConfigureAwait(false);
user.AuthenticationProviderId = GetType().FullName;
}
user.AuthenticationProviderId = GetType().FullName;
if (enableAuthorization)
{
user.SetPermission(PermissionKind.IsAdministrator, isAdmin);
@@ -588,9 +588,9 @@ public class SSOController : ControllerBase
_logger.LogInformation("Auth request created...");
if (!string.IsNullOrEmpty(defaultProvider))
{
user.AuthenticationProviderId = defaultProvider;
await _userManager.UpdateUserAsync(user).ConfigureAwait(false);
_logger.LogInformation("Set default login provider to " + defaultProvider);
user.AuthenticationProviderId = defaultProvider;
await _userManager.UpdateUserAsync(user).ConfigureAwait(false);
_logger.LogInformation("Set default login provider to " + defaultProvider);
}
return await _sessionManager.AuthenticateDirect(authRequest).ConfigureAwait(false);