dis5 cdcavell - cdcavell/cdcavell.name Wiki

Original URL: https://github.com/cdcavell/cdcavell.name/wiki/dis5-cdcavell

dis5_cdcavell.Config

IdentityServer4 In Memory Configuration Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2020 Initial build
Christopher D. Cavell 1.0.2.2 01/18/2020 Convert GrantType from Implicit to Pkce
Christopher D. Cavell 1.0.2.2 01/18/2020 Removed unused clients and scopes
Christopher D. Cavell 1.0.3.0 02/06/2021 Initial build Authorization Service
Christopher D. Cavell 1.0.4.2 03/16/2021 Email verification
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.2.0 07/06/2021 SignalR streaming
Properties
ApiAccessToken string
IdentityResources IEnumerable
ApiScopes IEnumerable
Clients IEnumerable

( Home )

dis5_cdcavell.Controllers.AccountController

Account Controller Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/02/2021 Initial build Authorization Service
Christopher D. Cavell 1.0.4.3 03/21/2021 2FA using TOTP
Christopher D. Cavell 1.1.0.0 03/28/2021 Integrate ASP.NET Core Identity

Methods:

AccountController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, IIdentityServerInteractionService interaction, IClientStore clientStore, IAuthenticationSchemeProvider schemeProvider, IEventService events, SignInManager signInManager, UserManager userManager, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
interaction IIdentityServerInteractionService
clientStore IClientStore
schemeProvider IAuthenticationSchemeProvider
events IEventService
signInManager SignInManager
userManager UserManager
appSettings AppSettings

Login(string returnUrl)

Entry point into the login workflow

Returns:

Task

Login(LoginInputModel model, string button)

Handle postback from username/password login

Returns:

Task

Logout(string logoutId)

Show logout page

Returns:

Task

Logout(LogoutInputModel model)

Handle logout page postback

Returns:

Task

AccessDenied

Access Denied

Returns:

IActionResult

ValidateCaptchaToken(string captchaToken)

Validate returned captcha token

Parameters
captchaToken string

Returns:

Task

( Home )

dis5_cdcavell.Controllers.ApplicationBaseController

Base controller class for application

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2020 Initial build
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity

Methods:

ApplicationBaseController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
appSettings AppSettings

( Home )

dis5_cdcavell.Controllers.ConsentController

Consent Controller Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity

Methods:

ConsentController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, IIdentityServerInteractionService interaction, IEventService events, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
interaction IIdentityServerInteractionService
events IEventService
appSettings AppSettings

Index(string returnUrl)

Shows the consent screen

Parameters
returnUrl string

Returns:

Task

Index(ConsentInputModel model)

Handles the consent screen postback

Returns:

Task

CreateScopeViewModel(ParsedScopeValue parsedScopeValue, ApiScope apiScope, bool check)

Create scope view model

Returns:

ScopeViewModel

( Home )

dis5_cdcavell.Controllers.DeviceController

Device Controller Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity

Methods:

DeviceController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, IDeviceFlowInteractionService interaction, IEventService eventService, IOptions options, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
interaction IIdentityServerInteractionService
eventService IEventService
options IOptions>IdentityServerOptions<
appSettings AppSettings

Index()

Index Method

Returns:

Task

UserCodeCapture(string userCode)

UserCodeCapture Method

Returns:

Task

Callback(DeviceAuthorizationInputModel model)

Callback Method

Returns:

Task

CreateScopeViewModel(ParsedScopeValue parsedScopeValue, ApiScope apiScope, bool check)

CreateScopeViewModel Method

Returns:

ScopeViewModel

( Home )

dis5_cdcavell.Controllers.ExternalController

External Controller Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.4.3 03/21/2021 2FA using TOTP
Christopher D. Cavell 1.1.0.0 03/28/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.1.0 04/06/2021 Permission-Based Authorization

Methods:

AccountController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor IIdentityServerInteractionService interaction, IClientStore clientStore, IEventService events, SignInManager signInManager, UserManager userManager, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
interaction IIdentityServerInteractionService
clientStore IClientStore
events IEventService
signInManager SignInManager
userManager UserManager
appSettings AppSettings

Challenge(string scheme, string returnUrl)

initiate roundtrip to external authentication provider

Returns:

IActionResult

Exceptions:

System.Exception ( invalid return URL )

Callback()

Post processing of external authentication

Returns:

Task

Exceptions:

System.Exception ( External authentication error )

( Home )

dis5_cdcavell.Controllers.HomeController

Home controller class

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/02/2021 Initial build Authorization Service
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.2.0 07/21/2021 Migrate to AWS Lightsail

Methods:

HomeController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
appSettings AppSettings

Index()

Index method

Returns:

IActionResult

( Home )

dis5_cdcavell.Controllers.RegistrationController

Registration Controller

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/27/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.1.0 04/04/2021 Permission-Based Authorization

Methods:

RegistrationController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor AppSettings appSettings, UserManager userManager, IEmailService emailService ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
appSettings AppSettings
userManager UserManager
emailService EmailService

TwoFactorConfiguration()

TwoFactor Authentication Configuration

Returns:

Task

Index(RegistrationIndexModel model)

New Registration HttpPost method

Returns:

Task

EmailValidation()

Email validation notice

Returns:

Task

ConfirmEmail(string token, string email)

Email verification of external authentication

Parameters
token string
email string

Returns:

Task

( Home )

dis5_cdcavell.Controllers.TwoFactorController

Two-Factor Controller

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/28/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.1.0 04/04/2021 Permission-Based Authorization

Methods:

TwoFactorController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor AppSettings appSettings, UserManager userManager, SignInManager signInManager, IIdentityServerInteractionService interaction, IEventService events, IEmailService emailService ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
appSettings AppSettings
userManager UserManager
signInManager SignInManager
interaction IIdentityServerInteractionService
events IEventService
emailService EmailService

Configuration()

TwoFactor Authentication Configuration

Returns:

Task

Validate()

TwoFactor Authentication Validate

Returns:

Task

Validate(TwoFactorValidateModel model)

TwoFactor Authentication Validate

Returns:

Task

Disable()

TwoFactor Authentication Disable

Returns:

Task

Retrive()

TwoFactor Authentication Retrive

Returns:

Task

RetriveConfirm(string token, string email)

TwoFactor Authentication Retrive Confirm

Parameters
token string
email string

Returns:

Task

( Home )

dis5_cdcavell.Extensions

Extensions Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build

Methods:

IsNativeClient(this AuthorizationRequest context)

Checks if the redirect URI is for a native client.

Returns:

bool

LoadingPage(this Controller controller, string viewName, string redirectUri)

Loading page.

Returns:

IActionResult

( Home )

dis5_cdcavell.Filters.SecurityHeadersAttribute

Security Headers Attribute Filter Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/05/2021 Initial build Authorization Service
Christopher D. Cavell 1.1.0.0 03/28/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.1.2 06/15/2021 New IHtmlHelper Extension Gravatar
Christopher D. Cavell 1.1.1.2 06/19/2021 Update CSP Image Source
Christopher D. Cavell 1.1.2.0 07/23/2021 Migrate to AWS Lightsail

Methods:

SecurityHeadersAttribute(AppSettings appSettings)

Constructor method

Parameters
appSettings AppSettings

OnResultExecuting(ResultExecutingContext context)

Executes before result execution

Parameters
context ResultExecutingContext

OnActionExecuted(ActionExecutedContext context)

Executes after action method execution to set script nonce

Parameters
context ActionExecutedContext

( Home )

dis5_cdcavell.Models.Account.OldApplicationUser

Duende IdentityServer5 Application User

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.5.0 01/16/2021 Initial build
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity
Properties
FirstName string
LastName string
ApprovedDate DateTime?
ApprovedById string
ApprovedBy ApplicationUser
RevokedDate DateTime?
RevokedById string
RevokedBy ApplicationUser
IsPending bool
IsRevoked bool
Status string

( Home )

dis5_cdcavell.Models.Account.CaptchaResponse

Captcha response model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/27/2021 Integrate ASP.NET Core Identity
Properties
success bool
challenge_ts DateTime
hostname string
score double
action string
ErrorCodes object[]

( Home )

dis5_cdcavell.Models.Account.ExternalProvider

External Provider Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
DisplayName string
AuthenticationScheme string

( Home )

dis5_cdcavell.Models.Account.LoggedOutViewModel

Logged Out View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
PostLogoutRedirectUri string
ClientName string
SignOutIframeUrl string
AutomaticRedirectAfterSignOut bool
LogoutId string
TriggerExternalSignout bool
ExternalAuthenticationScheme string

( Home )

dis5_cdcavell.Models.Account.LoginInputModel

Login Input Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
Username string
Password string
RememberLogin bool
ReturnUrl string

( Home )

dis5_cdcavell.Models.Account.LoginViewModel

Login View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
AllowRememberLogin bool
EnableLocalLogin bool
ExternalProviders IEnumerable
VisibleExternalProviders IEnumerable
IsExternalLoginOnly bool
ExternalLoginScheme string

( Home )

dis5_cdcavell.Models.Account.LogoutInputModel

Logout Input Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
LogoutId string

( Home )

dis5_cdcavell.Models.Account.LogoutViewModel

Logout View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ShowLogoutPrompt bool

( Home )

dis5_cdcavell.Models.Account.RedirectViewModel

Redirect View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
RedirectUrl string

( Home )

dis5_cdcavell.Models.AppSettings.Application

Application model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/02/2021 Initial build Authorization Service
Christopher D. Cavell 1.0.4.3 03/21/2021 2FA using TOTP
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity
Properties
MainSiteUrl string
MainSiteUrlTrim string
ApiUrl string
ApiUrlTrim string
UiUrl string
UiUrlTrim string
ISDUrl string
ISDUrlTrim string
RTCUrl string
RTCUrlTrim string

( Home )

dis5_cdcavell.Models.AppSettings

AppSettings model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.3 03/08/2021 User Authorization Web Service
Christopher D. Cavell 1.1.0.0 03/26/2021 Integrate ASP.NET Core Identity
Properties
AssemblyName string
AssemblyVersion string
LastModifiedDate DateTime
SecretKey string
ConnectionStrings ConnectionStrings
Authentication Authentication
Application Application
EmailService EmailService

( Home )

dis5_cdcavell.Models.AppSettings.Authentication

Authentication model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 11.0.2.0 01/16/2021 Initial build
Properties
Twitter Twitter
Facebook Facebook
Microsoft Microsoft
Google Google
GitHub GitHub
LinkedIn LinkedIn
reCAPTCHA reCAPTCHA

( Home )

dis5_cdcavell.Models.AppSettings.Facebook

Facebook Authentication model https://developers.facebook.com/apps/

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
AppId string
AppSecret string

( Home )

dis5_cdcavell.Models.AppSettings.GitHub

GitHub Authentication model https://github.com/settings/applications/new

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientId string
ClientSecret string

( Home )

dis5_cdcavell.Models.AppSettings.Google

Google Authentication model https://developers.google.com/identity/sign-in/web/sign-in

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientId string
ClientSecret string

( Home )

dis5_cdcavell.Models.AppSettings.LinkedIn

LinkedIn Authentication model https://www.linkedin.com/developers/apps

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientId string
ClientSecret string

( Home )

dis5_cdcavell.Models.AppSettings.Microsoft

Microsoft Authentication model https://go.microsoft.com/fwlink/?linkid=2083908

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientId string
ClientSecret string
TokenEndpoint string

( Home )

dis5_cdcavell.Models.AppSettings.reCAPTCHA

reCAPTCHA Authentication model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/27/2021 Integrate ASP.NET Core Identity
Properties
SiteKey string
SecretKey string

( Home )

dis5_cdcavell.Models.AppSettings.Twitter

Twitter Authentication model https://developer.twitter.com/en/portal/dashboard

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ConsumerAPIKey string
ConsumerSecret string
BearerToken string

( Home )

dis5_cdcavell.Models.AppSettings.ConnectionStrings

Connection Strings model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/05/2021 Initial build Authorization Service
Christopher D. Cavell 1.0.3.1 02/07/2021 Add ApplicationInsights
Properties
AspIdUsersConnection string
ApplicationInsightsConnection string

( Home )

dis5_cdcavell.Models.AppSettings.EmailService

Site Administrator model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/26/2021 Integrate ASP.NET Core Identity
Properties
Host string
Port int
EnableSsl bool
UserId string
Password string
Email string

( Home )

dis5_cdcavell.Models.Consent.ConsentInputModel

Consent Input Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
Button string
ScopesConsented IEnumerable
RememberConsent bool
ReturnUrl string
Description string

( Home )

dis5_cdcavell.Models.Consent.ConsentViewModel

Consent View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientName string
ClientUrl string
ClientLogoUrl string
AllowRememberConsent bool
IdentityScopes IEnumerable
ApiScopes IEnumerable

( Home )

dis5_cdcavell.Models.Consent.ProcessConsentResult

Process Consent Result Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
IsRedirect bool
RedirectUri string
Client Client
ShowView bool
ViewModel ConsentViewModel
HasValidationError bool
ValidationError string

( Home )

dis5_cdcavell.Models.Consent.ScopeViewModel

Scope View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
Value string
DisplayName string
Description string
Emphasize bool
Required bool
Checked bool

( Home )

dis5_cdcavell.Models.Device.DeviceAuthorizationInputModel

Device Authorization Input Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
UserCode string

( Home )

dis5_cdcavell.Models.Device.DeviceAuthorizationViewModel

Device Authorization View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
UserCode string
ConfirmUserCode bool

( Home )

dis5_cdcavell.Models.Diagnostics.DiagnosticsViewModel

Diagnostics View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
AuthenticateResult AuthenticateResult
Clients Clients

Methods:

#ctor(Microsoft.AspNetCore.Authentication.AuthenticateResult)

Constructor method

Parameters
result AuthenticateResult

( Home )

dis5_cdcavell.Models.Grants.GrantsViewModel

Grants View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
Grants IEnumerable

( Home )

dis5_cdcavell.Models.Grants.GrantViewModel

Grant View Model Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Properties
ClientId string
ClientName string
ClientUrl string
ClientLogoUrl string
Description string
Created DateTime
Expires DateTime?
IdentityGrantNames IEnumerable
ApiGrantNames IEnumerable

( Home )

dis5_cdcavell.Models.Registration.RegistrationIndexModel

Index model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/27/2021 Integrate ASP.NET Core Identity
Properties
Email string
FirstName string
LastName string
RequestDate DateTime?
Status string

( Home )

dis5_cdcavell.Models.TwoFactor.TwoFactorValidateModel

Two-Factor Validate model

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.1.0.0 03/28/2021 Integrate ASP.NET Core Identity
Properties
Email string
Provider string
ProviderUserId string
SessionId string
AuthenticationToken string
ReturnUrl string

( Home )

dis5_cdcavell.Options.AccountOptions

Account Options Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/06/2021 Initial build Authorization Service
Fields
AllowLocalLogin bool
AllowRememberLogin bool
RememberMeLoginDuration TimeSpan
ShowLogoutPrompt bool
AutomaticRedirectAfterSignOut bool
InvalidCredentialsErrorMessage string

( Home )

dis5_cdcavell.Options.ConsentOptions

Consent Options Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Fields
EnableOfflineAccess bool
OfflineAccessDisplayName string
OfflineAccessDescription string
MustChooseOneErrorMessage string
InvalidSelectionErrorMessage string

( Home )

dis5_cdcavell.Program

Entry point class

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.1 02/07/2021 Add ApplicationInsights

Methods:

Main(string[] args)

Entry point method

Parameters
args string[]

CreateHostBuilder(string[] args)

Host Builder configuration

Parameters
args string[]

Returns:

IHostBuilder

( Home )

dis5_cdcavell.Startup

The Startup class configures services and the application's request pipeline Services are components that are used by the app. For example, a logging component is a service. Code to configure (or register) services is added to the Startup.ConfigureServices method. The request handling pipeline is composed as a series of middleware components. For example, a middleware might handle requests for static files or redirect HTTP requests to HTTPS. Each middleware performs asynchronous operations on an HttpContext and then either invokes the next middleware in the pipeline or terminates the request. Code to configure the request handling pipeline is added to the Startup.Configure method.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.0.3.0 02/06/2021 Initial build Authorization Service
Christopher D. Cavell 1.0.3.1 02/07/2021 Utilize Redis Cache - Not implemented
Christopher D. Cavell 1.0.3.3 03/08/2021 User Authorization Web Service
Christopher D. Cavell 1.1.0.0 03/26/2021 Integrate ASP.NET Core Identity
Christopher D. Cavell 1.1.1.0 04/06/2021 Permission-Based Authorization
Christopher D. Cavell 1.1.2.0 07/21/2021 Migrate to AWS Lightsail

Methods:

Startup(IConfiguration configuration, IWebHostEnvironment webHostEnvironment)

Class Constructor

Parameters
configuration IConfiguration
webHostEnvironment IWebHostEnvironment

ConfigureServices(IServiceCollection services)

This optional method gets called by the runtime. Use this method to add services to the container.

Parameters
services IServiceCollection

Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger logger, IHostApplicationLifetime lifetime)

This required method gets called by the runtime. Use this method to configure the HTTP request pipeline.

Parameters
app IApplicationBuilder
env IWebHostEnvironment
logger ILogger
lifetime IHostApplicationLifetime

OnAppStarted()

Exposed IApplicationLifetime interface method.

OnAppStopping()

Exposed IApplicationLifetime interface method.

OnAppStopped()

Exposed IApplicationLifetime interface method.

( Home )

is4_cdcavell.Controllers.DiagnosticsController

Diagnostics Controller Copyright (c) Duende Software. All rights reserved. See https://duendesoftware.com/license/identityserver.pdf for license information.

Revisions:

Contributor Build Revison Date Description
Christopher D. Cavell 1.0.2.0 01/16/2021 Initial build
Christopher D. Cavell 1.1.0.0 03/23/2021 Integrate ASP.NET Core Identity

Methods:

DiagnosticsController( ILogger logger, IWebHostEnvironment webHostEnvironment, IHttpContextAccessor httpContextAccessor, AppSettings appSettings ) : base(logger, webHostEnvironment, httpContextAccessor, appSettings)

Constructor method

Parameters
logger ILogger
webHostEnvironment IWebHostEnvironment
httpContextAccessor IHttpContextAccessor
appSettings AppSettings

Index()

Index method

Returns:

Task

( Home )