ui

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

wfx UI

Configure the standalone UI by editing loadConfig in index.html:

function loadConfig() {
  return {
    wfx_url: "https://example.com/api/wfx/v1",
    base_path: "/ui",
    oauth: {
      issuer: "https://identity-provider.example.com",
      client_id: "wfx-ui",
      scope: "openid email profile offline_access",
    },
  };
}

Set oauth to null to disable authentication. When OAuth is enabled, issuer and client_id are required. scope defaults to openid email profile. Automatic token refresh requires the identity provider's offline-access scope, usually offline_access, so include it in scope as shown above. When present, the UI automatically refreshes the access token using the refresh token 60 seconds before expiration.

Documentation

Index

Constants

View Source
const Enabled = false

Variables

This section is empty.

Functions

func FaviconHandler

func FaviconHandler() http.Handler

func RenderIndex added in v0.7.0

func RenderIndex(w io.Writer, data TemplateData) error

Types

type OAuthSettings added in v0.7.0

type OAuthSettings struct {
	Issuer   string
	ClientID string
	Scope    string
}

type TemplateData added in v0.7.0

type TemplateData struct {
	AppCSS   string
	AppMJS   string
	WfxURL   string
	BasePath string
	OAuth    OAuthSettings
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL