File tree Expand file tree Collapse file tree 5 files changed +79
-21
lines changed
Nager.AuthenticationService.Abstraction/Models
Nager.AuthenticationService.WebApi Expand file tree Collapse file tree 5 files changed +79
-21
lines changed Original file line number Diff line number Diff line change
1
+ * text =auto eol =lf
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ public class AuthenticationRequest
8
8
/// <summary>
9
9
/// Email Address
10
10
/// </summary>
11
- public string EmailAddress { get ; set ; }
11
+ public required string EmailAddress { get ; set ; }
12
12
13
13
/// <summary>
14
14
/// Password
15
15
/// </summary>
16
- public string Password { get ; set ; }
16
+ public required string Password { get ; set ; }
17
17
18
18
/// <summary>
19
19
/// IpAddress
Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ public async Task<ActionResult> ChangePasswordAsync(
72
72
/// </summary>
73
73
/// <param name="cancellationToken"></param>
74
74
/// <returns></returns>
75
- /// <response code="204">Password changed </response>
75
+ /// <response code="200">Get Mfa Information </response>
76
76
/// <response code="500">Unexpected error</response>
77
77
[ HttpGet ]
78
78
[ Route ( "Mfa" ) ]
79
- [ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
79
+ [ ProducesResponseType ( StatusCodes . Status200OK ) ]
80
80
[ ProducesResponseType ( StatusCodes . Status500InternalServerError ) ]
81
- public async Task < ActionResult > GetMfaActivationAsync (
81
+ public async Task < ActionResult < MfaInformation > > GetMfaActivationAsync (
82
82
CancellationToken cancellationToken = default )
83
83
{
84
84
var emailAddress = HttpContext . User . Identity ? . Name ;
Original file line number Diff line number Diff line change 1
- using System ;
2
-
3
- namespace Nager . AuthenticationService . WebApi . Dtos
1
+ namespace Nager . AuthenticationService . WebApi . Dtos
4
2
{
3
+ /// <summary>
4
+ /// User Info Dto
5
+ /// </summary>
5
6
public class UserInfoDto
6
7
{
7
- public string Id { get ; set ; }
8
-
9
- public string EmailAddress { get ; set ; }
10
-
11
- public string [ ] Roles { get ; set ; }
12
-
13
- public string Firstname { get ; set ; }
14
-
15
- public string Lastname { get ; set ; }
16
-
8
+ /// <summary>
9
+ /// Unique Id
10
+ /// </summary>
11
+ public required string Id { get ; set ; }
12
+
13
+ /// <summary>
14
+ /// EmailAddress
15
+ /// </summary>
16
+ public required string EmailAddress { get ; set ; }
17
+
18
+ /// <summary>
19
+ /// Roles
20
+ /// </summary>
21
+ public string [ ] Roles { get ; set ; } = [ ] ;
22
+
23
+ /// <summary>
24
+ /// Firstname
25
+ /// </summary>
26
+ public string ? Firstname { get ; set ; }
27
+
28
+ /// <summary>
29
+ /// Lastname
30
+ /// </summary>
31
+ public string ? Lastname { get ; set ; }
32
+
33
+ /// <summary>
34
+ /// Last Failed Validation Timestamp
35
+ /// </summary>
17
36
public DateTime ? LastFailedValidationTimestamp { get ; set ; }
18
37
38
+ /// <summary>
39
+ /// Last Successful Validation Timestamp
40
+ /// </summary>
19
41
public DateTime ? LastSuccessfulValidationTimestamp { get ; set ; }
20
42
43
+ /// <summary>
44
+ /// Is Mfa Active
45
+ /// </summary>
21
46
public bool MfaActive { get ; set ; }
22
47
}
23
48
}
Original file line number Diff line number Diff line change 1
- < html >
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
2
3
< head >
3
- < title > place holder</ title >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < title > Placeholder</ title >
7
+ < style >
8
+ body {
9
+ font-family : Arial, sans-serif;
10
+ display : flex;
11
+ justify-content : center;
12
+ align-items : center;
13
+ height : 100vh ;
14
+ margin : 0 ;
15
+ background-color : # f5f5f5 ;
16
+ color : # 555 ;
17
+ }
18
+
19
+ .message {
20
+ text-align : center;
21
+ }
22
+
23
+ .message h1 {
24
+ font-size : 2rem ;
25
+ margin : 0 0 1rem ;
26
+ }
27
+
28
+ .message p {
29
+ font-size : 1rem ;
30
+ margin : 0 ;
31
+ }
32
+ </ style >
4
33
</ head >
5
34
< body >
6
- replace by ci/cd build
35
+ < div class ="message ">
36
+ < h1 > Placeholder</ h1 >
37
+ < p > This page will be replaced by the Vue frontend built by the CI/CD pipeline.</ p >
38
+ </ div >
7
39
</ body >
8
40
</ html >
You can’t perform that action at this time.
0 commit comments