Go
Goidentra-goStandard-library-only token verification (EdDSA via JWKS) and management API calls.
Install
go get github.com/identra/identra-goVerify 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.OrgRoleManagement calls
go
user, err := c.CreateUser("[email protected]")API
identra.New()VerifyToken()CreateUser()