Skip to content

Commit b96a440

Browse files
atsaregweb-flow
authored andcommitted
sweep: DIRACGrid#8326 Audience parameter for the Check-In IdP
1 parent 385b299 commit b96a440

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/DIRAC/Resources/IdProvider/CheckInIdProvider.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,16 @@ def getGroupScopes(self, group):
2626

2727
idPScope = f"eduperson_entitlement?value=urn:mace:egi.eu:group:{vo}:role={groupElements[1]}#aai.egi.eu"
2828
return scope_to_list(idPScope)
29+
30+
def fetchToken(self, **kwargs):
31+
"""Fetch token
32+
33+
:param kwargs:
34+
:return: dict
35+
"""
36+
37+
if "audience" in kwargs:
38+
kwargs["resource"] = kwargs["audience"]
39+
kwargs.pop("audience")
40+
41+
return super().fetchToken(**kwargs)

0 commit comments

Comments
 (0)