package components import ( "context" ) // StorageProviderGDriveHeadlessAuthData contains data needed for rendering the headless auth page for storage providers type StorageProviderGDriveHeadlessAuthData struct { AuthCommand string ProviderID string } // StorageProviderGDriveHeadlessAuth renders the headless authentication page for Google Drive/Photos for storage providers templ StorageProviderGDriveHeadlessAuth(ctx context.Context, data StorageProviderGDriveHeadlessAuthData) { // Force the layout to display as authenticated content @LayoutWithContext("Google Authentication - Headless Mode", ctx) {
You need to authenticate with Google using a web browser. Since you're running GoMFT behind a reverse proxy or in a headless environment, you'll need to complete authentication on a machine with a web browser.
{ data.AuthCommand }
After completing authentication in the browser, you'll receive a token. Copy and paste that token here:
This authentication process is necessary for GoMFT to access your Google Drive or Google Photos account.
The token is only used for authentication and is stored securely. You'll only need to complete this process once for each storage provider.