SDKs / Server

Go

Go
identra-go

Standard-library-only token verification (EdDSA via JWKS) and management API calls.

Install

go get github.com/identra/identra-go

Verify a token

go
import "github.com/identra/identra-go"

c := identra.New(identra.Options{
    BaseURL:       "http://localhost:8080",
    ApplicationID: appID,
    APIKey:        apiKey, // optional; only for API calls
})

// In your auth middleware:
claims, err := c.VerifyToken(r.Header.Get("Authorization"))
if err != nil {
    http.Error(w, "unauthorized", http.StatusUnauthorized)
    return
}
// claims.Subject, claims.SessionID, claims.AAL, claims.Org, claims.OrgRole

Management calls

go
user, err := c.CreateUser("a@b.com")

API

identra.New()VerifyToken()CreateUser()