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.
- Sign up for a Scalekit account.
- Get your
env_url
,client_id
andclient_secret
from the Scalekit dashboard.
go get -u github.com/scalekit-inc/scalekit-sdk-go
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",
},
)
}
See the Scalekit API docs for more information about the API and authentication.
This project is licensed under the MIT license. See the LICENSE file for more information.