diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e167232..c5c38b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Go Test & Coverage +name: go test & coverage on: push: branches: diff --git a/README.md b/README.md index 0765d53..573c29d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # go-redis-entraid Entra ID extension for go-redis +[![build workflow](https://github.com/redis/go-redis-entraid/actions/workflows/build.yml/badge.svg)](https://github.com/redis/go-redis-entraid/actions) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/redis/go-redis-entraid)](https://pkg.go.dev/github.com/redis/go-redis-entraid?tab=doc) +[![Go Report Card](https://goreportcard.com/badge/github.com/redis/go-redis-entraid)](https://goreportcard.com/report/github.com/redis/go-redis-entraid) + ## Table of Contents - [Introduction](#introduction) - [Quick Start](#quick-start) @@ -17,9 +21,8 @@ Entra ID extension for go-redis go-redis-entraid is a Go library that provides Entra ID (formerly Azure AD) authentication support for Redis Enterprise Cloud. It enables secure authentication using various Entra ID identity types and manages token lifecycle automatically. ### Version Compatibility -- Go: 1.16+ -- Redis: 6.0+ -- Azure Entra ID: Latest +- Go: 1.23+ +- go-redis: v9.9.0+ ### Key Features - Support for multiple Entra ID identity types diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e0981cc..dbdc9f9 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,16 @@ +# v1.0.1 + +## Changes + +- fix(manager): optimize durationToRenewal @ndyakov (#6) +- chore(documentation): add release notes, add badges in readme (#7) +- chore(dependencies): update dependencies + +## Compatibility + +- Go: 1.23+ +- go-redis: v9.9.0+ + # v1.0.0 ## Introduction diff --git a/identity/confidential_identity_provider_test.go b/identity/confidential_identity_provider_test.go index 389263c..ec18921 100644 --- a/identity/confidential_identity_provider_test.go +++ b/identity/confidential_identity_provider_test.go @@ -40,7 +40,7 @@ func TestNewConfidentialIdentityProvider(t *testing.T) { opts := ConfidentialIdentityProviderOptions{ ClientID: "client-id", CredentialsType: "ClientCertificate", - ClientCert: []*x509.Certificate{&x509.Certificate{}}, + ClientCert: []*x509.Certificate{{}}, ClientPrivateKey: "private-key", Scopes: []string{"scope1", "scope2"}, Authority: AuthorityConfiguration{}, @@ -58,7 +58,7 @@ func TestNewConfidentialIdentityProvider(t *testing.T) { opts := ConfidentialIdentityProviderOptions{ ClientID: "client-id", CredentialsType: "ClientCertificate", - ClientCert: []*x509.Certificate{&x509.Certificate{}}, + ClientCert: []*x509.Certificate{{}}, ClientPrivateKey: "private-key", Scopes: []string{"scope1", "scope2"}, Authority: AuthorityConfiguration{}, @@ -192,7 +192,7 @@ func TestNewConfidentialIdentityProvider(t *testing.T) { opts := ConfidentialIdentityProviderOptions{ ClientID: "client-id", CredentialsType: "ClientCertificate", - ClientCert: []*x509.Certificate{&x509.Certificate{}}, + ClientCert: []*x509.Certificate{{}}, ClientPrivateKey: nil, Scopes: []string{"scope1", "scope2"}, Authority: AuthorityConfiguration{},