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
2 changes: 1 addition & 1 deletion Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public async Task<IActionResult> Logout(LogoutInputModel model)
{
UserId = userId,
UserHistoryTypeId = (int)UserHistoryType.Logout,
Detail = @"User logged out",
Detail = @"User logged out" + this.webSettings.IsPasswordUpdate + " " + vm.TriggerExternalSignout,
};

await this.UserService.StoreUserHistoryAsync(userHistory);
Expand Down
10 changes: 5 additions & 5 deletions Auth/LearningHub.Nhs.Auth/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ public async Task<IActionResult> Error()
/// <summary>
/// IsPasswordUpdateMethod.
/// </summary>
/// <param name="isLogout">The Logout.</param>
/// <param name="isPasswordUpdate">The PasswordUpdate.</param>
/// <returns>The <see cref="ActionResult"/>.</returns>
[HttpGet]
public IActionResult SetIsPasswordUpdate(bool isLogout)
public IActionResult SetIsPasswordUpdate(bool isPasswordUpdate)
{
if (isLogout)
if (isPasswordUpdate)
{
this.webSettings.IsPasswordUpdate = false;
this.webSettings.IsPasswordUpdate = true;
}
else
{
this.webSettings.IsPasswordUpdate = true;
this.webSettings.IsPasswordUpdate = false;
}

var redirectUri = $"{this.webSettings.LearningHubWebClient}Home/UserLogout";
Expand Down
17 changes: 17 additions & 0 deletions Auth/LearningHub.Nhs.Auth/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,23 @@
"RequireConsent": false,
"RequirePkce": false,
"AllowOfflineAccess": true
},
"moodlemooc": {
"BaseUrl": "",
"ClientName": "",
"ClientSecret": "",
"AllowedGrantTypes": [ "authorization_code" ],
"RedirectUris": [ "/auth/oidc/" ],
"PostLogoutUris": [ "/login/logout.php" ],
"AllowedScopes": [ "openid", "profile", "learninghubapi", "userapi", "roles", "learningcredentialsapi" ],
"BackChannelLogoutSessionRequired": true,
"BackChannelLogoutUri": "/login/logout.php",
"FrontChannelLogoutSessionRequired": true,
"FrontChannelLogoutUri": "/login/logout.php",
"UpdateAccessTokenClaimsOnRefresh": true,
"RequireConsent": false,
"RequirePkce": false,
"AllowOfflineAccess": true
}
},
"IdsClients": {
Expand Down
Loading