-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add flow for forgot password * Update gitignore * Fix untracked files * Remove unused property Rename files and adopted the options pattern. Remove the placeholder and place the username there. Added entry in appSettings.json file in docs and other changes * Replace file from entities to Options folder; Propagate returnurl * Remove necessary config overrides, add returnUrl override logic * Make the project build again. * The register page incorrectly used the display name as username. * Add a development mail service. Co-authored-by: Paul Scharnofske <[email protected]>
- Loading branch information
Showing
20 changed files
with
724 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-format": { | ||
"version": "3.3.111304", | ||
"commands": [ | ||
"dotnet-format" | ||
] | ||
}, | ||
"dotnet-ef": { | ||
"version": "3.1.3", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,29 +6,32 @@ | |
} | ||
}, | ||
"IdentityServer": { | ||
"Clients": [ | ||
{ | ||
"ClientId": "codidact_client", | ||
"ClientSecrets": [ | ||
{ | ||
"Value": "LCa0a2j/xo/5m0U8HTBBNBNCLXBkg7+g+YpeiGJm564=" | ||
} | ||
], | ||
"AllowedGrantTypes": [ | ||
"authorization_code" | ||
], | ||
"AllowedScopes": [ | ||
"openid", | ||
"profile" | ||
], | ||
"RedirectUris": [ | ||
"http://localhost:8000/signin-oidc" | ||
], | ||
"RequireConsent": false | ||
} | ||
] | ||
"Clients": [{ | ||
"ClientId": "codidact_client", | ||
"ClientSecrets": [{ | ||
"Value": "LCa0a2j/xo/5m0U8HTBBNBNCLXBkg7+g+YpeiGJm564=" | ||
}], | ||
"AllowedGrantTypes": [ | ||
"authorization_code" | ||
], | ||
"AllowedScopes": [ | ||
"openid", | ||
"profile" | ||
], | ||
"RedirectUris": [ | ||
"http://localhost:8000/signin-oidc" | ||
], | ||
"RequireConsent": false | ||
}] | ||
}, | ||
"ConnectionStrings": { | ||
"Authentication": "Data Source=authentication.db" | ||
}, | ||
"Mail": { | ||
"Host": "smtp.gmail.com", | ||
"Port": 465, | ||
"Sender": "[email protected]", | ||
"SenderName": "example", | ||
"EnableSsl": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Threading.Tasks; | ||
using Codidact.Authentication.Domain.Entities; | ||
|
||
|
||
namespace Codidact.Authentication.Application.Common.Interfaces | ||
{ | ||
public interface IMailService | ||
{ | ||
Task SendEmailAsync(ApplicationUser user, string subject, string message); | ||
Task SendResetPassword(ApplicationUser user, string token, string returnUrl); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Codidact.Authentication.Application.Options | ||
{ | ||
public class MailOptions | ||
{ | ||
public string Host { get; set; } | ||
public int Port { get; set; } | ||
public string SenderName { get; set; } | ||
public string Sender { get; set; } | ||
public bool EnableSsl { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.