remmove endpoint fetch from both rac provider forms since its not used
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
c3ac49b9a6
commit
5a68e6a9d2
|
@ -14,28 +14,20 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FlowsInstancesListDesignationEnum,
|
FlowsInstancesListDesignationEnum,
|
||||||
PaginatedEndpointList,
|
|
||||||
PaginatedRACPropertyMappingList,
|
PaginatedRACPropertyMappingList,
|
||||||
PropertymappingsApi,
|
PropertymappingsApi,
|
||||||
RACProvider,
|
RACProvider,
|
||||||
RacApi,
|
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
import BaseProviderPanel from "../BaseProviderPanel";
|
import BaseProviderPanel from "../BaseProviderPanel";
|
||||||
|
|
||||||
@customElement("ak-application-wizard-authentication-for-rac")
|
@customElement("ak-application-wizard-authentication-for-rac")
|
||||||
export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
|
export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
|
||||||
@state()
|
|
||||||
endpoints?: PaginatedEndpointList;
|
|
||||||
|
|
||||||
@state()
|
@state()
|
||||||
propertyMappings?: PaginatedRACPropertyMappingList;
|
propertyMappings?: PaginatedRACPropertyMappingList;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
new RacApi(DEFAULT_CONFIG).racEndpointsList({}).then((endpoints) => {
|
|
||||||
this.endpoints = endpoints;
|
|
||||||
});
|
|
||||||
new PropertymappingsApi(DEFAULT_CONFIG)
|
new PropertymappingsApi(DEFAULT_CONFIG)
|
||||||
.propertymappingsRacList({
|
.propertymappingsRacList({
|
||||||
ordering: "name",
|
ordering: "name",
|
||||||
|
@ -85,7 +77,6 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
|
||||||
help=${msg(
|
help=${msg(
|
||||||
"Determines how long a session lasts before being disconnected and requiring re-authorization.",
|
"Determines how long a session lasts before being disconnected and requiring re-authorization.",
|
||||||
)}
|
)}
|
||||||
required
|
|
||||||
></ak-text-input>
|
></ak-text-input>
|
||||||
|
|
||||||
<ak-form-group .expanded=${true}>
|
<ak-form-group .expanded=${true}>
|
||||||
|
|
|
@ -53,7 +53,7 @@ export class InitialProviderWizardPage extends WithLicenseSummary(WizardPage) {
|
||||||
<div class="pf-c-hint__title">${msg("Try the new application wizard")}</div>
|
<div class="pf-c-hint__title">${msg("Try the new application wizard")}</div>
|
||||||
<div class="pf-c-hint__body">
|
<div class="pf-c-hint__body">
|
||||||
${msg(
|
${msg(
|
||||||
"The new application wizard greatly simplifies the steps required to create applications and providers."
|
"The new application wizard greatly simplifies the steps required to create applications and providers.",
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-c-hint__footer">
|
<div class="pf-c-hint__footer">
|
||||||
|
|
|
@ -18,23 +18,18 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FlowsInstancesListDesignationEnum,
|
FlowsInstancesListDesignationEnum,
|
||||||
PaginatedEndpointList,
|
|
||||||
PaginatedRACPropertyMappingList,
|
PaginatedRACPropertyMappingList,
|
||||||
PropertymappingsApi,
|
PropertymappingsApi,
|
||||||
ProvidersApi,
|
ProvidersApi,
|
||||||
RACProvider,
|
RACProvider,
|
||||||
RacApi,
|
|
||||||
} from "@goauthentik/api";
|
} from "@goauthentik/api";
|
||||||
|
|
||||||
@customElement("ak-provider-rac-form")
|
@customElement("ak-provider-rac-form")
|
||||||
export class RACProviderFormPage extends ModelForm<RACProvider, number> {
|
export class RACProviderFormPage extends ModelForm<RACProvider, number> {
|
||||||
@state()
|
@state()
|
||||||
endpoints?: PaginatedEndpointList;
|
|
||||||
|
|
||||||
propertyMappings?: PaginatedRACPropertyMappingList;
|
propertyMappings?: PaginatedRACPropertyMappingList;
|
||||||
|
|
||||||
async load(): Promise<void> {
|
async load(): Promise<void> {
|
||||||
this.endpoints = await new RacApi(DEFAULT_CONFIG).racEndpointsList({});
|
|
||||||
this.propertyMappings = await new PropertymappingsApi(
|
this.propertyMappings = await new PropertymappingsApi(
|
||||||
DEFAULT_CONFIG,
|
DEFAULT_CONFIG,
|
||||||
).propertymappingsRacList({
|
).propertymappingsRacList({
|
||||||
|
|
Reference in New Issue