Show redirect URI on providers page
This commit is contained in:
parent
4511f0f5c7
commit
1f3dfaa665
@ -10,6 +10,7 @@ use crate::actors::users_actor::{AuthorizedAuthenticationSources, UsersActor};
|
|||||||
use crate::constants::TEMPORARY_PASSWORDS_LEN;
|
use crate::constants::TEMPORARY_PASSWORDS_LEN;
|
||||||
use crate::controllers::settings_controller::BaseSettingsPage;
|
use crate::controllers::settings_controller::BaseSettingsPage;
|
||||||
use crate::data::action_logger::{Action, ActionLogger};
|
use crate::data::action_logger::{Action, ActionLogger};
|
||||||
|
use crate::data::app_config::AppConfig;
|
||||||
use crate::data::client::{Client, ClientID, ClientManager};
|
use crate::data::client::{Client, ClientID, ClientManager};
|
||||||
use crate::data::current_user::CurrentUser;
|
use crate::data::current_user::CurrentUser;
|
||||||
use crate::data::provider::{Provider, ProviderID, ProvidersManager};
|
use crate::data::provider::{Provider, ProviderID, ProvidersManager};
|
||||||
@ -28,6 +29,7 @@ struct ClientsListTemplate<'a> {
|
|||||||
struct ProvidersListTemplate<'a> {
|
struct ProvidersListTemplate<'a> {
|
||||||
_p: BaseSettingsPage<'a>,
|
_p: BaseSettingsPage<'a>,
|
||||||
providers: Vec<Provider>,
|
providers: Vec<Provider>,
|
||||||
|
redirect_url: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
@ -68,6 +70,7 @@ pub async fn providers_route(
|
|||||||
ProvidersListTemplate {
|
ProvidersListTemplate {
|
||||||
_p: BaseSettingsPage::get("OpenID Providers list", &user, None, None),
|
_p: BaseSettingsPage::get("OpenID Providers list", &user, None, None),
|
||||||
providers: providers.cloned(),
|
providers: providers.cloned(),
|
||||||
|
redirect_url: AppConfig::get().oidc_provider_redirect_url(),
|
||||||
}
|
}
|
||||||
.render()
|
.render()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
|
@ -34,4 +34,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<p>Redirect URL for new clients: {{ redirect_url }}</p>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user