nextcloud_authv2 – k.malhotra.cc/go/nextcloud_authv2 Index | Files | Directories

package auth

import "k.malhotra.cc/go/nextcloud_authv2"

Index

Functions

func Authenticate

func Authenticate(ctx context.Context, server string, useragent string, stdout io.Writer, stdin io.Reader) (prefServer, loginName, appPassword string, err error)

user agent like Golang_Example_Nextcloud_login/1.0 Note: this blocks stdin until the program exits. It's meant to be used in a dedicated 'login' command.

Source Files

auth.go

Directories

PathSynopsis
example
Version
v0.0.0-20230120033210-f1fd3fd13fd5 (latest)
Published
Jan 20, 2023
Platform
linux/amd64
Imports
12 packages
Last checked
1 month ago

Tools for package owners.