in airavata_custos_portal/apps/api/views.py [0:0]
def get_client_sec(request, client_id):
response = requests.get(
url=f"{CUSTOS_API_URL}/{ENDPOINTS['IDENTITY']}/credentials",
params={'client_id': client_id},
headers={
'Accept': '*/*',
'Content-Type': 'application/json',
'Authorization': f"Bearer {request.session['access_token']}"
}
)
response_json = response.json()
client_sec = response_json["custos_client_secret"]
return client_sec