Fix bad issuer

This commit is contained in:
Pierre HUBERT 2022-04-15 17:30:43 +02:00
parent e0016b8305
commit 1d21b30b68

View File

@ -26,7 +26,7 @@ use crate::utils::time::time;
pub async fn get_configuration(app_conf: web::Data<AppConfig>) -> impl Responder {
HttpResponse::Ok().json(OpenIDConfig {
issuer: app_conf.full_url("/"),
issuer: app_conf.website_origin.clone(),
authorization_endpoint: app_conf.full_url(AUTHORIZE_URI),
token_endpoint: app_conf.full_url(TOKEN_URI),
userinfo_endpoint: app_conf.full_url(USERINFO_URI),