auth-example

command
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

auth-example

Shows the basics of adding authentication to a Grammes client.

Description

auth-example shows one of the ClientConfiguration settings that allows for user authentication using a username and password.

Prerequisites

  • go 1.12
  • Git
  • Elastic Search
  • Cassandra
    • Java 8

Running

To run this test you will need a TinkerPop server running and a graph database to connect to locally. This example was tested while using JanusGraph which can be used by locating yourself to the root directory of the Grammes project.

cd $GOPATH/src/github.com/northwesternmutual/grammes

After locating yourself here then you may change directory to the /scripts folder.

cd scripts

Finally you may run the janusgraph.sh script to begin a local instance of JanusGraph. This will begin the TinkerPop server for you as well.

./janusgraph.sh

For further instructions please find yourself to the root README.md file.

Steps

General steps
  • Create a zap logger to help explain what's going on in the test and display the results.
  • Creates a Grammes client that connects to a locally hosted TinkerPop server with a WebSocket.
    • For testing this was created using JanusGraph. This can be run in the /scripts directory.

Test specific steps
  • Creates a client using a client configuration to add a username and password
  • Logs the Grammes client's authentication credentials

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