Categorygithub.com/AccelByte/ic-go-sdk
modulepackage
0.0.0-20241125024135-cd7a19eca0ea
Repository: https://github.com/accelbyte/ic-go-sdk.git
Documentation: pkg.go.dev

# README

ic-go-sdk

This is AccelByte's IC Go SDK for integrating with IC in Go projects.

Usage

Importing package

import "github.com/AccelByte/ic-go-sdk"

Creating default IC client

cfg := &iam.Config{
    BaseURL: "<IAM URL>",
    ClientID: "<client ID>",
    ClientSecret: "<client secret>",
}

client := iam.NewDefaultClient(cfg)

cfg := &ic.Config{
    BaseURL:      "<IAM URL>",
    ClientID:     "<client ID>",
    ClientSecret: "<client secret>",
}
client := ic.NewDefaultClient(cfg)

Validate config

_, err := client.ClientToken()
if err != nil {
	logrus.Fatalf("ic-go-sdk start err: %v \n", err)
}

Example:

  1. replace the placeholder in example/example.go
  2. go build example.go

# Packages

No description provided by the author

# Functions

No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
DefaultClient define oauth client config.
JWK contains json web key's data.
JWTClaims holds data stored in a JWT access token with additional Justice Flags field.
Keys contains json web keys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author