singlestore-auth-helper - helper utility for browser-based authentication
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.