@@ -167,7 +167,7 @@ func (ts *OAuthClientTestSuite) TestOAuthServerClientDynamicRegisterDisabled() {
167167func (ts * OAuthClientTestSuite ) TestOAuthServerClientGetHandler () {
168168 client , _ := ts .createTestOAuthClient ()
169169
170- req := httptest .NewRequest (http .MethodGet , "/admin/oauth/clients/" + client .ClientID , nil )
170+ req := httptest .NewRequest (http .MethodGet , "/admin/oauth/clients/" + client .ID . String () , nil )
171171
172172 ctx := WithOAuthServerClient (req .Context (), client )
173173 req = req .WithContext (ctx )
@@ -183,7 +183,7 @@ func (ts *OAuthClientTestSuite) TestOAuthServerClientGetHandler() {
183183 err = json .Unmarshal (w .Body .Bytes (), & response )
184184 require .NoError (ts .T (), err )
185185
186- assert .Equal (ts .T (), client .ClientID , response .ClientID )
186+ assert .Equal (ts .T (), client .ID . String () , response .ClientID )
187187 assert .Empty (ts .T (), response .ClientSecret ) // Should NOT be included in get response
188188 assert .Equal (ts .T (), "Test Client" , response .ClientName )
189189}
@@ -193,7 +193,7 @@ func (ts *OAuthClientTestSuite) TestOAuthServerClientDeleteHandler() {
193193 client , _ := ts .createTestOAuthClient ()
194194
195195 // Create HTTP request with client in context
196- req := httptest .NewRequest (http .MethodDelete , "/admin/oauth/clients/" + client .ClientID , nil )
196+ req := httptest .NewRequest (http .MethodDelete , "/admin/oauth/clients/" + client .ID . String () , nil )
197197
198198 // Add client to context (normally done by LoadOAuthServerClient middleware)
199199 ctx := WithOAuthServerClient (req .Context (), client )
@@ -208,7 +208,7 @@ func (ts *OAuthClientTestSuite) TestOAuthServerClientDeleteHandler() {
208208 assert .Empty (ts .T (), w .Body .String ())
209209
210210 // Verify client was soft-deleted
211- deletedClient , err := ts .Server .getOAuthServerClient (context .Background (), client .ClientID )
211+ deletedClient , err := ts .Server .getOAuthServerClient (context .Background (), client .ID )
212212 assert .Error (ts .T (), err ) // it was soft-deleted
213213 assert .Nil (ts .T (), deletedClient )
214214}
@@ -235,8 +235,8 @@ func (ts *OAuthClientTestSuite) TestOAuthServerClientListHandler() {
235235
236236 // Check that both clients are in the response (order might vary)
237237 clientIDs := []string {response .Clients [0 ].ClientID , response .Clients [1 ].ClientID }
238- assert .Contains (ts .T (), clientIDs , client1 .ClientID )
239- assert .Contains (ts .T (), clientIDs , client2 .ClientID )
238+ assert .Contains (ts .T (), clientIDs , client1 .ID . String () )
239+ assert .Contains (ts .T (), clientIDs , client2 .ID . String () )
240240
241241 // Verify client secrets are not included in list response
242242 for _ , client := range response .Clients {
0 commit comments