website/docs: add source property mappings, rework provider property mappings (#10652)
This commit is contained in:
		 Marc 'risson' Schmitt
					Marc 'risson' Schmitt
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							9343e3495a
						
					
				
				
					commit
					322ae4c4ed
				
			| @ -16,7 +16,7 @@ export abstract class BasePropertyMappingForm<T extends PropertyMapping> extends | ||||
|     string | ||||
| > { | ||||
|     docLink(): string { | ||||
|         return "/docs/property-mappings/expression?utm_source=authentik"; | ||||
|         return "/docs/providers/property-mappings/expression?utm_source=authentik"; | ||||
|     } | ||||
|  | ||||
|     getSuccessMessage(): string { | ||||
|  | ||||
| @ -9,6 +9,10 @@ import { LDAPSourcePropertyMapping, PropertymappingsApi } from "@goauthentik/api | ||||
|  | ||||
| @customElement("ak-property-mapping-ldap-source-form") | ||||
| export class PropertyMappingLDAPSourceForm extends BasePropertyMappingForm<LDAPSourcePropertyMapping> { | ||||
|     docLink(): string { | ||||
|         return "/docs/sources/property-mappings/expression?utm_source=authentik"; | ||||
|     } | ||||
|  | ||||
|     loadInstance(pk: string): Promise<LDAPSourcePropertyMapping> { | ||||
|         return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSourceLdapRetrieve({ | ||||
|             pmUuid: pk, | ||||
|  | ||||
| @ -9,6 +9,10 @@ import { OAuthSourcePropertyMapping, PropertymappingsApi } from "@goauthentik/ap | ||||
|  | ||||
| @customElement("ak-property-mapping-oauth-source-form") | ||||
| export class PropertyMappingOAuthSourceForm extends BasePropertyMappingForm<OAuthSourcePropertyMapping> { | ||||
|     docLink(): string { | ||||
|         return "/docs/sources/property-mappings/expression?utm_source=authentik"; | ||||
|     } | ||||
|  | ||||
|     loadInstance(pk: string): Promise<OAuthSourcePropertyMapping> { | ||||
|         return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSourceOauthRetrieve({ | ||||
|             pmUuid: pk, | ||||
|  | ||||
| @ -162,7 +162,7 @@ export class PropertyMappingRACForm extends ModelForm<RACPropertyMapping, string | ||||
|                                 target="_blank" | ||||
|                                 rel="noopener noreferrer" | ||||
|                                 href="${docLink( | ||||
|                                     "/docs/property-mappings/expression?utm_source=authentik", | ||||
|                                     "/docs/providers/property-mappings/expression?utm_source=authentik", | ||||
|                                 )}" | ||||
|                             > | ||||
|                                 ${msg("See documentation for a list of all variables.")} | ||||
|  | ||||
| @ -9,6 +9,10 @@ import { PropertymappingsApi, SAMLSourcePropertyMapping } from "@goauthentik/api | ||||
|  | ||||
| @customElement("ak-property-mapping-saml-source-form") | ||||
| export class PropertyMappingSAMLSourceForm extends BasePropertyMappingForm<SAMLSourcePropertyMapping> { | ||||
|     docLink(): string { | ||||
|         return "/docs/sources/property-mappings/expression?utm_source=authentik"; | ||||
|     } | ||||
|  | ||||
|     loadInstance(pk: string): Promise<SAMLSourcePropertyMapping> { | ||||
|         return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSourceSamlRetrieve({ | ||||
|             pmUuid: pk, | ||||
|  | ||||
| @ -9,6 +9,10 @@ import { PropertymappingsApi, SCIMSourcePropertyMapping } from "@goauthentik/api | ||||
|  | ||||
| @customElement("ak-property-mapping-scim-source-form") | ||||
| export class PropertyMappingSCIMSourceForm extends BasePropertyMappingForm<SCIMSourcePropertyMapping> { | ||||
|     docLink(): string { | ||||
|         return "/docs/sources/property-mappings/expression?utm_source=authentik"; | ||||
|     } | ||||
|  | ||||
|     loadInstance(pk: string): Promise<SCIMSourcePropertyMapping> { | ||||
|         return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSourceScimRetrieve({ | ||||
|             pmUuid: pk, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user