mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-27 00:16:37 +02:00
use config.server_name as title in OIDC pages
This commit is contained in:
parent
95f25f67cf
commit
8f3fdb0023
2 changed files with 4 additions and 11 deletions
|
@ -41,11 +41,8 @@ pub(crate) async fn authorize(
|
||||||
// Redirect to the login page if no token or token not known.
|
// Redirect to the login page if no token or token not known.
|
||||||
let hostname = services
|
let hostname = services
|
||||||
.config
|
.config
|
||||||
.well_known
|
.server_name
|
||||||
.client
|
.host();
|
||||||
.as_ref()
|
|
||||||
.map(|s| s.host_str().expect("well-known client should have a host"));
|
|
||||||
let hostname = hostname.unwrap_or("Continuwuity");
|
|
||||||
match oauth.authorization_header() {
|
match oauth.authorization_header() {
|
||||||
| None => {
|
| None => {
|
||||||
return Ok(oidc_login_form(hostname, &query));
|
return Ok(oidc_login_form(hostname, &query));
|
||||||
|
|
|
@ -44,12 +44,8 @@ pub(crate) async fn oidc_login(
|
||||||
|
|
||||||
let hostname = services
|
let hostname = services
|
||||||
.config
|
.config
|
||||||
.well_known
|
.server_name
|
||||||
.client
|
.host();
|
||||||
.as_ref()
|
|
||||||
.map(|s| s.host_str().expect("well-known client should have a host"));
|
|
||||||
|
|
||||||
let hostname = hostname.unwrap_or("Continuwuity");
|
|
||||||
let authorization_query: AuthorizationQuery = query.into();
|
let authorization_query: AuthorizationQuery = query.into();
|
||||||
|
|
||||||
services
|
services
|
||||||
|
|
Loading…
Add table
Reference in a new issue