Skip to content

Commit c328b1f

Browse files
committed
Cleanup
1 parent 42c2319 commit c328b1f

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/IdentityManager2/Assets/EmbeddedHtmlResult.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Text;
22
using System.Threading.Tasks;
33
using IdentityManager2.Configuration;
4-
using IdentityManager2.Core;
54
using Microsoft.AspNetCore.Http;
65
using Microsoft.AspNetCore.Mvc;
76
using Newtonsoft.Json;

src/IdentityManager2/Assets/Scripts/App/ttIdmApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
idmErrorService.clear();
3636
$rootScope.layout.username = null;
3737
$rootScope.layout.links = null;
38-
$rootScope.layout.showLogout = true; // TODO: logout button
39-
$rootScope.layout.showLogin = true; // TODO: login button
38+
$rootScope.layout.showLogout = ShowLoginButton; // TODO: logout button
39+
$rootScope.layout.showLogin = false; // TODO: login button
4040
}
4141

4242
function load() {

src/IdentityManager2/Assets/Scripts/Bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/IdentityManager2/Configuration/DependencyInjection/IdentityManagerServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public static IIdentityManagerBuilder AddIdentityManager(this IServiceCollection
5555
.AddCookie(Constants.LocalApiScheme, options =>
5656
{
5757
options.Cookie.SameSite = SameSiteMode.Strict;
58-
// options.Cookie.Path = "/api";
5958
options.Cookie.HttpOnly = true;
6059
options.Cookie.IsEssential = true;
6160
options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest;

src/IdentityManager2/Configuration/LocalhostSecurityConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public LocalhostSecurityConfiguration()
1010
{
1111
HostAuthenticationType = Constants.LocalAuthenticationType;
1212
HostChallengeType = Constants.LocalAuthenticationType;
13+
ShowLoginButton = false;
1314
}
1415

1516
public override void Configure(IServiceCollection services)

0 commit comments

Comments
 (0)