Skip to content

Commit

Permalink
Fixed minor issues. (sound-it-out#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtLeastITry authored Nov 14, 2020
1 parent 19b5498 commit 9bb9729
Show file tree
Hide file tree
Showing 37 changed files with 57 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Infrastructure.Events;
using SIO.Migrations;

namespace SIO.Domain.User.CommandHandlers
namespace SIO.Domain.Users.CommandHandlers
{
public class ForgotPasswordCommandHandler : ICommandHandler<ForgotPasswordCommand>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Infrastructure.Events;
using SIO.Migrations;

namespace SIO.Domain.User.CommandHandlers
namespace SIO.Domain.Users.CommandHandlers
{
internal class LoginCommandHandler : ICommandHandler<LoginCommand>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using IdentityServer4.Services;
using Microsoft.AspNetCore.Identity;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Infrastructure.Events;
using SIO.Migrations;

namespace SIO.Domain.User.CommandHandlers
namespace SIO.Domain.Users.CommandHandlers
{
internal class LogoutCommandHandler : ICommandHandler<LogoutCommand>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Infrastructure.Events;
using SIO.Migrations;

namespace SIO.Domain.User.CommandHandlers
namespace SIO.Domain.Users.CommandHandlers
{
internal class RegisterUserCommandHandler : ICommandHandler<RegisterUserCommand>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Infrastructure.Events;
using SIO.Migrations;

namespace SIO.Domain.User.CommandHandlers
namespace SIO.Domain.Users.CommandHandlers
{
public class VerifyUserCommandHandler : ICommandHandler<VerifyUserCommand>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class EmailConfirmationException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class EmailInUseException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Commands;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class ForgotPasswordCommand : Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class IncorrectPasswordException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;
using OpenEventSourcing.Commands;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class LoginCommand : Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Commands;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class LogoutCommand : Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class PasswordCreationException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Commands;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class RegisterUserCommand : Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserCommandException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserCreationException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserDoesntExistException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserIsArchivedException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserIsLockedOutException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class UserNotVerifiedException : UserCommandException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;
using OpenEventSourcing.Commands;

namespace SIO.Domain.User.Commands
namespace SIO.Domain.Users.Commands
{
public class VerifyUserCommand : Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserEmailChanged : Event
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserLoggedIn : Event
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserLoggedOut : Event
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Text;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserPasswordTokenGenerated : Event
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserRegistered : Event
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using OpenEventSourcing.Events;

namespace SIO.Domain.User.Events
namespace SIO.Domain.Users.Events
{
public class UserVerified : Event
{
Expand Down
4 changes: 2 additions & 2 deletions src/SIO.Identity/ForgotPassword/ForgotPasswordController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using Microsoft.AspNetCore.Mvc;
using OpenEventSourcing.Commands;
using OpenEventSourcing.Events;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Identity.ForgotPassword.Requests;
using SIO.Migrations;

Expand Down
4 changes: 2 additions & 2 deletions src/SIO.Identity/Login/LoginController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using Microsoft.Extensions.Configuration;
using OpenEventSourcing.Commands;
using OpenEventSourcing.Events;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Identity.Login.Requests;
using SIO.Identity.Login.Responses;
using SIO.Migrations;
Expand Down
2 changes: 1 addition & 1 deletion src/SIO.Identity/Logout/LogoutController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using IdentityServer4.Services;
using Microsoft.AspNetCore.Mvc;
using OpenEventSourcing.Commands;
using SIO.Domain.User.Commands;
using SIO.Domain.Users.Commands;
using SIO.Identity.Logout.Requests;

namespace SIO.Identity.Logout
Expand Down
4 changes: 2 additions & 2 deletions src/SIO.Identity/Register/RegisterController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using Microsoft.Extensions.Configuration;
using OpenEventSourcing.Commands;
using OpenEventSourcing.Events;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Identity.Register.Requests;
using SIO.Migrations;

Expand Down
2 changes: 2 additions & 0 deletions src/SIO.Identity/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public static IServiceCollection AddSIOIdentity(this IServiceCollection services
options.UserInteraction.LogoutUrl = "/logout";
options.UserInteraction.ErrorUrl = "/error";
options.UserInteraction.ConsentUrl = "/consent";
options.Cors.CorsPaths.Add("/v1/client");
options.PublicOrigin = configuration.GetValue<string>("Identity:Authority");
})
.AddConfigurationStore(options =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/SIO.Identity/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using OpenEventSourcing.EntityFrameworkCore.SqlServer;
using SIO.Migrations;
using OpenEventSourcing.RabbitMQ.Extensions;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Events;
using SIO.Infrastructure;
using OpenEventSourcing.Azure.ServiceBus.Extensions;
using Microsoft.Extensions.Hosting;
Expand Down
4 changes: 2 additions & 2 deletions src/SIO.Identity/Verify/VerifyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
using Microsoft.Extensions.Configuration;
using OpenEventSourcing.Commands;
using OpenEventSourcing.Events;
using SIO.Domain.User.Commands;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Commands;
using SIO.Domain.Users.Events;
using SIO.Identity.Verify.Requests;
using SIO.Migrations;

Expand Down
7 changes: 4 additions & 3 deletions src/SIO.Identity/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
],
"Clients": [
{
"EnableLocalLogin": true,
"ClientId": "web-client",
"ClientName": "Sound It Out - Web Application",
"AllowedGrantTypes": [ "authorization_code" ],
"RequirePkce": true,
"RequireClientSecret": false,
"AllowAccessTokensViaBrowser": true,
"AlwaysIncludeUserClaimsInIdToken": true,
"AlwaysSendClientClaims": true,
"ClientSecrets": [],
"RequireConsent": false,
"RedirectUris": [
Expand All @@ -49,7 +50,7 @@
}
],
"Identity": {
"Authority": "http://localhost:50647/",
"Authority": "https://localhost:44335",
"ClientId": "Sound It Out"
},
"DefaultAppUrl": "http://localhost:8080",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Events;
using SIO.Identity.ForgotPassword.Requests;
using SIO.Migrations;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Events;
using SIO.Identity.Login.Requests;
using SIO.Migrations;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using SIO.Domain.User.Events;
using SIO.Domain.Users.Events;
using SIO.Identity.Login.Requests;
using SIO.Migrations;

Expand Down

0 comments on commit 9bb9729

Please sign in to comment.