Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu committed Jul 6, 2022
1 parent e6a5e40 commit 954dbb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion auth/authzserver/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const (
ClientIDClaim = "client_id"
UserIDClaim = "user_info"
ScopeClaim = "scp"
ExpiryClaim = "exp"
KeyIDClaim = "key_id"
)

Expand Down
7 changes: 1 addition & 6 deletions auth/authzserver/resource_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func newMockResourceServer(t testing.TB, publicKey rsa.PublicKey) (resourceServe
if r.URL.Path == "/.well-known/oauth-authorization-server" {
w.Header().Set("Content-Type", "application/json")
_, err := io.WriteString(w, strings.ReplaceAll(`{
"issuer": "https://unionai.okta.com",
"issuer": "https://whatever.okta.com",
"authorization_endpoint": "https://example.com/auth",
"token_endpoint": "https://example.com/token",
"jwks_uri": "{URL}/keys",
Expand All @@ -55,11 +55,6 @@ func newMockResourceServer(t testing.TB, publicKey rsa.PublicKey) (resourceServe
return
}

if err := key.Set(jwk.KeyIDKey, "Z6dmZ_TXhduw-jUBZ6uEEzvnh-jhNO0YhemB7qa_LOc"); err != nil {
http.Error(w, err.Error(), 400)
return
}

keys.Add(key)
raw, err := json.Marshal(keys)
if err != nil {
Expand Down

0 comments on commit 954dbb1

Please sign in to comment.