Add openid-connecter discovery route

This commit is contained in:
2022-04-08 18:53:57 +02:00
parent c7d075f94e
commit 7978706803
7 changed files with 67 additions and 4 deletions

View File

@ -45,4 +45,12 @@ impl AppConfig {
pub fn clients_file(&self) -> PathBuf {
self.storage_path().join(CLIENTS_LIST_FILE)
}
pub fn full_url(&self, uri: &str) -> String {
if uri.starts_with("/") {
format!("{}{}", self.website_origin, uri)
} else {
format!("{}/{}", self.website_origin, uri)
}
}
}