singlestore-auth-helper

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 14 Imported by: 0

README

singlestore-auth-helper - helper utility for browser-based authentication

GoDoc

Install:

go install github.com/memsql/singlestore-auth-helper@latest

The singlestore-auth-helper is a small utility that opens a browser to a well-known URL with some parameters. It also puts up a http server to receive an eventual response from the browser.

The idea is that the browser session will be used to capture a JWT. The JWT is the output so that the caller of the singlestore-auth-helper can use it for database access.

With a mysql client:

mysql -u $EMAIL_ADDRESS -h $CLUSTER_HOSTNAME -P $CLUSTER_PORT --password=`singlestore-auth-helper` --ssl=TRUE

With a singlestore client:

singlestore -u $EMAIL_ADDRESS -h $CLUSTER_HOSTNAME -P $CLUSTER_PORT --password=`singlestore-auth-helper` --ssl=TRUE --enable-cleartext-plugin

Note: the Safari browser is not compatible with the singlestore-auth-helper because it lacks a cross-site-scripting exception for localhost.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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