Skip to content

scalekit-inc/scalekit-sdk-go

Repository files navigation


Official Scalekit Go SDK

Scalekit helps you in shipping enterprise auth in days.

This Go SDK is a wrapper around Scalekit's REST API to help you integrate Scalekit with your Go applications.

Getting Started

  1. Sign up for a Scalekit account.
  2. Get your env_url, client_id and client_secret from the Scalekit dashboard.

Installation

go get -u github.com/scalekit-inc/scalekit-sdk-go

Usage

import "github.com/scalekit-inc/scalekit-sdk-go"

func main() {
  sc := scalekit.NewScalekit(
    "<SCALEKIT_ENV_URL>",
    "<SCALEKIT_CLIENT_ID>",
    "<SCALEKIT_CLIENT_SECRET>",
  )

  // Use the sc object to interact with the Scalekit API
  authUrl, _ := sc.GetAuthorizationUrl(
		"https://acme-corp.com/redirect-uri",
		scalekit.AuthorizationUrlOptions{
			State: "state",
			ConnectionId: "con_123456789",
		},
	)
}

API Reference

See the Scalekit API docs for more information about the API and authentication.

License

This project is licensed under the MIT license. See the LICENSE file for more information.