providers: add provider/ prefix for property mappings API (#10874)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							dab41fe0b9
						
					
				
				
					commit
					a7203be850
				
			@ -40,7 +40,7 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane
 | 
			
		||||
    constructor() {
 | 
			
		||||
        super();
 | 
			
		||||
        new PropertymappingsApi(DEFAULT_CONFIG)
 | 
			
		||||
            .propertymappingsSamlList({
 | 
			
		||||
            .propertymappingsProviderSamlList({
 | 
			
		||||
                ordering: "saml_name",
 | 
			
		||||
            })
 | 
			
		||||
            .then((propertyMappings: PaginatedSAMLPropertyMappingList) => {
 | 
			
		||||
 | 
			
		||||
@ -9,18 +9,20 @@ import { property, query } from "lit/decorators.js";
 | 
			
		||||
 | 
			
		||||
import {
 | 
			
		||||
    PropertymappingsApi,
 | 
			
		||||
    PropertymappingsSamlListRequest,
 | 
			
		||||
    PropertymappingsProviderSamlListRequest,
 | 
			
		||||
    SAMLPropertyMapping,
 | 
			
		||||
} from "@goauthentik/api";
 | 
			
		||||
 | 
			
		||||
async function fetchObjects(query?: string): Promise<SAMLPropertyMapping[]> {
 | 
			
		||||
    const args: PropertymappingsSamlListRequest = {
 | 
			
		||||
    const args: PropertymappingsProviderSamlListRequest = {
 | 
			
		||||
        ordering: "saml_name",
 | 
			
		||||
    };
 | 
			
		||||
    if (query !== undefined) {
 | 
			
		||||
        args.search = query;
 | 
			
		||||
    }
 | 
			
		||||
    const items = await new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlList(args);
 | 
			
		||||
    const items = await new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsProviderSamlList(
 | 
			
		||||
        args,
 | 
			
		||||
    );
 | 
			
		||||
    return items.results;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -27,7 +27,7 @@ export class ApplicationWizardAuthenticationBySCIM extends BaseProviderPanel {
 | 
			
		||||
    constructor() {
 | 
			
		||||
        super();
 | 
			
		||||
        new PropertymappingsApi(DEFAULT_CONFIG)
 | 
			
		||||
            .propertymappingsScimList({
 | 
			
		||||
            .propertymappingsProviderScimList({
 | 
			
		||||
                ordering: "managed",
 | 
			
		||||
            })
 | 
			
		||||
            .then((propertyMappings: PaginatedSCIMMappingList) => {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user