Can perform local authentication

This commit is contained in:
2023-09-02 18:44:16 +02:00
parent bb31954b22
commit 849bf0cdfb
7 changed files with 93 additions and 2 deletions

View File

@ -96,6 +96,11 @@ impl AppConfig {
secret
}
/// Check out whether provided credentials are valid or not for local authentication
pub fn check_local_login(&self, user: &str, pass: &str) -> bool {
self.auth_username == user && self.auth_password == pass
}
/// Get OpenID providers configuration
pub fn openid_provider(&self) -> Option<OIDCProvider<'_>> {
if self.disable_oidc {