Skip to main content

Prerequisites

Ensure you have Prove Sandbox credentials from the Developer Portal.
1

Load API keys

To access the Prove API, use your OAuth 2.0 client ID and client secret. You can load these from environment variables or another method:
clientID := os.Getenv("PROVE_CLIENT_ID")
clientSecret := os.Getenv("PROVE_CLIENT_SECRET")

proveEnv := "uat-us" // Use UAT in US region.

client := provesdkservergo.New(
	provesdkservergo.WithServer(proveEnv),
	provesdkservergo.WithSecurity(components.Security{
		ClientID:     provesdkservergo.String(clientID),
		ClientSecret: provesdkservergo.String(clientSecret),
	}),
)
Replace uat-us with uat-eu if performing testing outside of North America.
2

Install server-side SDK

Install the server-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
# The Go library is hosted on GitHub so you can use this command to import it
# to your Go application.
go get github.com/prove-identity/prove-sdk-server-go

# Ensure you import the SDK in your code like this:
import (
    provesdkservergo "github.com/prove-identity/prove-sdk-server-go"
    "github.com/prove-identity/prove-sdk-server-go/models/components"
)
3

Install client-side SDK

Install the client-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
# Run this command to install the package (ensure you have the latest version).
npm install @prove-identity/prove-auth@2.8.2