package components import ( "fmt" "encoding/json" "context" "github.com/starfleetcptn/gomft/internal/db" ) templ AuthProviderForm(ctx context.Context, provider *db.AuthProvider, isNew bool) { @LayoutWithContext(getPageTitle(isNew), ctx) {
Configure a new external authentication source
} else {Update an existing external authentication source
}Authentication providers allow users to sign in using external identity providers.
Make sure to enter the correct callback URL in your external provider's configuration.
Configure attribute mappings to match the fields in your identity provider's user data.
A descriptive name for this authentication provider
The type of external authentication service
Whether this authentication provider is active and available for login
Additional information about this authentication provider
URL to the provider's icon image (SVG recommended)
Preview of the icon that will be displayed on the login button.
If no URL is provided, a default icon will be used based on the provider type.
The base URL of the authentication provider
The client identifier assigned by the authentication provider
The client secret for authentication with the provider
The callback URL that will handle the authentication response
Space-separated list of scopes to request from the provider
Authentik tenant ID (optional, defaults to 'default')
URL to the OIDC discovery document
URL to the SAML metadata XML
The attribute to use as the username
The attribute to use as the email address
The attribute to use as the display name
The attribute that contains user groups