Skip to content

Commit 08fcc71

Browse files
authored
Merge pull request #200 from TeskaLabs/fix/get-client-cookie-name
Include client cookie name in client detail
2 parents 5c56567 + 865f25e commit 08fcc71

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Fix request access control attributes and methods (#197, PLUM Sprint 230421)
1313
- Reintroduce metrics (#198, PLUM Sprint 230421)
1414
- Allow batman to be configured without basic auth (#199, PLUM Sprint 230421)
15+
- Include client cookie name in client detail (#200, PLUM Sprint 230421)
1516

1617
### Features
1718
- Filter resource list by resource type using the `exclude` query parameter (#196, PLUM Sprint 230421)

seacatauth/client/service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,11 @@ async def count(self, query_filter: dict = None):
273273

274274

275275
async def get(self, client_id: str):
276+
cookie_svc = self.App.get_service("seacatauth.CookieService")
276277
client = await self.StorageService.get(self.ClientCollection, client_id, decrypt=["__client_secret"])
277278
if "__client_secret" in client:
278279
client["__client_secret"] = client["__client_secret"].decode("ascii")
280+
client["cookie_name"] = cookie_svc.get_cookie_name(client_id)
279281
return client
280282

281283

0 commit comments

Comments
 (0)