RIDICS / Authentication

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Authentication

The Authentication service is configured primarly for usage in Vokabulář webový, so it has some predefined values for this usage.

The Authentication service project is consists of the three important parts:

Development

The configuration for local Development is prepared directly in the solution.

Required software:

Project initialization

It is highly recommended to disable NPM and Bower restore in Visual Studio and use Yarn instead of it.

Development environment is using app setting files with name "LocalDebug", e.g. appsettings.LocalDebug.json or modules.LocalDebug.json

Deployment to the server

Deployment to Production or Staging server requires creating specific configurations. The app configuration can be placed in C:\Pool\itjakub-secrets\Auth and C:\Pool\itjakub-secrets\DatabaseMigratorAuth folder on build computer. The configuration is separated to avoid commiting sensitive files to git. The files in this folder are included to publish package during build.

Default deployment script assumes that the Authentication Service will be placed in Default Web Site/Auth site, e.g. https://localhost/Auth.

Requirements for sending notifications

The Authentication service is using IocComponentsRegistrationExtensions.RegisterMessageSenders() method for registering component able to sending some notification messages. Defaultly there are registered NullSmsSender and NullEmailSender which discards all messages.

  • Sending e-mails can be enabled by registering component SmtpEmailSender instead of NullEmailSender
  • There is no implementation for sending SMS because each gateway have different API

Required software:

Configure the server

Deployment

The app configuration

This configuration can be performed in GUI after login:

Troubleshooting