diff --git a/src/authd.cr b/src/authd.cr index cc03e5f..acbf180 100644 --- a/src/authd.cr +++ b/src/authd.cr @@ -1,11 +1,23 @@ require "json" - require "jwt" - require "ipc" +require "baguette-crystal-base" require "./user.cr" +# Allows get configuration from a provided file. +# See Baguette::Configuration::Base.get +class Baguette::Configuration + class Auth < Base + include YAML::Serializable + + property login : String? + property pass : String? + property shared_key : String? + property shared_key_file : String? + end +end + class AuthD::Exception < Exception end diff --git a/src/main.cr b/src/main.cr index 73151c6..68f73f4 100644 --- a/src/main.cr +++ b/src/main.cr @@ -14,18 +14,6 @@ require "./authd.cr" extend AuthD -# Allows get configuration from a provided file. -# See Baguette::Configuration::Base.get -class Baguette::Configuration::Auth < Baguette::Configuration::Base - include YAML::Serializable - - property login : String? - property pass : String? - property shared_key : String? - property shared_key_file : String? -end - - class AuthD::Service property registrations_allowed = false property require_email = false