package components import ( "context" "fmt" "time" "github.com/starfleetcptn/gomft/internal/db" ) // formatTime formats a time.Time value as a human-readable string func formatTime(t time.Time) string { return t.Format("Jan 02, 2006 15:04") } templ AuthProviders(ctx context.Context, providers []db.AuthProvider) { @LayoutWithContext("Authentication Providers", ctx) {
Manage external authentication sources like Authentik, OIDC, SAML, etc.
| Name | Icon | Type | Status | Provider URL | Last Used | Actions |
|---|---|---|---|---|---|---|
| { provider.Name } |
if provider.IconURL != "" {
|
{ string(provider.Type) } | if provider.GetEnabled() { Active } else { Disabled } | { provider.ProviderURL } | if provider.LastUsed.Valid { { formatTime(provider.LastUsed.Time) } } else { Never } |
You haven't set up any external authentication providers yet.
Add First ProviderAuthentication providers allow users to sign in using external identity providers.
Make sure to configure callback URLs in your provider's settings.
Test your connections to ensure proper communication with external authentication systems.