Show redirect URI on providers page
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Pierre HUBERT 2023-04-27 11:57:42 +02:00
parent 4511f0f5c7
commit 1f3dfaa665
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ use crate::actors::users_actor::{AuthorizedAuthenticationSources, UsersActor};
use crate::constants::TEMPORARY_PASSWORDS_LEN;
use crate::controllers::settings_controller::BaseSettingsPage;
use crate::data::action_logger::{Action, ActionLogger};
use crate::data::app_config::AppConfig;
use crate::data::client::{Client, ClientID, ClientManager};
use crate::data::current_user::CurrentUser;
use crate::data::provider::{Provider, ProviderID, ProvidersManager};
@ -28,6 +29,7 @@ struct ClientsListTemplate<'a> {
struct ProvidersListTemplate<'a> {
_p: BaseSettingsPage<'a>,
providers: Vec<Provider>,
redirect_url: String,
}
#[derive(Template)]
@ -68,6 +70,7 @@ pub async fn providers_route(
ProvidersListTemplate {
_p: BaseSettingsPage::get("OpenID Providers list", &user, None, None),
providers: providers.cloned(),
redirect_url: AppConfig::get().oidc_provider_redirect_url(),
}
.render()
.unwrap(),

View File

@ -34,4 +34,6 @@
</tbody>
</table>
<p>Redirect URL for new clients: {{ redirect_url }}</p>
{% endblock content %}