Skip to content

Commit 991d73f

Browse files
committed
Switch to openshift/osincli
This is identical to RangelReale/osincli; the latter has been archived. Signed-off-by: Stephen Kitt <[email protected]>
1 parent fe56c2c commit 991d73f

File tree

17 files changed

+9
-9
lines changed

17 files changed

+9
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.23.0
55
toolchain go1.23.4
66

77
require (
8-
github.com/RangelReale/osincli v0.0.0-20160924135400-fababb0555f2
98
github.com/blang/semver/v4 v4.0.0
109
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
1110
github.com/distribution/distribution/v3 v3.0.0-20230511163743-f7717b7855ca
@@ -23,6 +22,7 @@ require (
2322
github.com/openshift/api v0.0.0-20250124212313-a770960d61e0
2423
github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c
2524
github.com/openshift/client-go v0.0.0-20250125113824-8e1f0b8fa9a7
25+
github.com/openshift/osincli v0.0.0-20160924135400-fababb0555f2
2626
github.com/pkg/errors v0.9.1
2727
github.com/pkg/profile v1.7.0
2828
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.74.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e h1:ZU22z/2YRFLyf/
44
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
55
github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
66
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
7-
github.com/RangelReale/osincli v0.0.0-20160924135400-fababb0555f2 h1:x8Brv0YNEe6jY3V/hQglIG2nd8g5E2Zj5ubGKkPQctQ=
8-
github.com/RangelReale/osincli v0.0.0-20160924135400-fababb0555f2/go.mod h1:XyjUkMA8GN+tOOPXvnbi3XuRxWFvTJntqvTFnjmhzbk=
97
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
108
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
119
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
@@ -211,6 +209,8 @@ github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c h1:6X
211209
github.com/openshift/build-machinery-go v0.0.0-20250102153059-e85a1a7ecb5c/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
212210
github.com/openshift/client-go v0.0.0-20250125113824-8e1f0b8fa9a7 h1:4iliLcvr1P9EUMZgIaSNEKNQQzBn+L6PSequlFOuB6Q=
213211
github.com/openshift/client-go v0.0.0-20250125113824-8e1f0b8fa9a7/go.mod h1:2tcufBE4Cu6RNgDCxcUJepa530kGo5GFVfR9BSnndhI=
212+
github.com/openshift/osincli v0.0.0-20160924135400-fababb0555f2 h1:9oADVMmPa4G60MQtoSjD26aD/vZreqbIAfiUiO220eY=
213+
github.com/openshift/osincli v0.0.0-20160924135400-fababb0555f2/go.mod h1:Riv9DbfKiX3y9ebcS4PHU4zLhVXu971+4jCVwKIue5M=
214214
github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
215215
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
216216
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

pkg/oauth/tokenrequest/request_token.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"slices"
1414
"strings"
1515

16-
"github.com/RangelReale/osincli"
16+
"github.com/openshift/osincli"
1717

1818
apierrs "k8s.io/apimachinery/pkg/api/errors"
1919
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -43,7 +43,7 @@ const (
4343
// openShiftCLIBrowserClientID the name of the CLI client for logging in through a browser
4444
openShiftCLIBrowserClientID = "openshift-cli-client"
4545

46-
// pkce_s256 is sha256 hash per RFC7636, copied from github.com/RangelReale/osincli/pkce.go
46+
// pkce_s256 is sha256 hash per RFC7636, copied from github.com/openshift/osincli/pkce.go
4747
pkce_s256 = "S256"
4848

4949
// token fakes the missing osin.TOKEN const

pkg/oauth/tokenrequest/request_token_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"testing"
1616
"time"
1717

18-
"github.com/RangelReale/osincli"
1918
"github.com/google/go-cmp/cmp"
19+
"github.com/openshift/osincli"
2020

2121
"k8s.io/apimachinery/pkg/util/diff"
2222
restclient "k8s.io/client-go/rest"
File renamed without changes.

0 commit comments

Comments
 (0)