Skip to content

Commit

Permalink
get application details
Browse files Browse the repository at this point in the history
  • Loading branch information
asha15 committed Jul 9, 2024
1 parent 3d06fe9 commit efcc533
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions oidc-fapi-conformance-tests/configure_is_fapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ def set_application_scopes_for_consent(application_id):
def set_hybridFlow_config(application_id):
print(">>> Setting hybrid flow configuration.")
try:
body = json.dumps(constants.ENABLE_HYBRID_FLOW)
response = requests.patch(url=constants.APPLICATION_ENDPOINT + "/" + application_id,
app_details = get_service_provider_details(application_id)
app_details['hybridFlow'] = constants.ENABLE_HYBRID_FLOW
body = json.dumps(app_details)
response = requests.put(url=constants.APPLICATION_ENDPOINT + "/" + application_id,
headers=constants.HEADERS_WITH_AUTH, data=body, verify=False)
response.raise_for_status()
except HTTPError as http_error:
Expand Down
6 changes: 2 additions & 4 deletions oidc-fapi-conformance-tests/constants_fapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@
}

ENABLE_HYBRID_FLOW = {
"hybridFlow": {
"enable": true,
"responseType": "code id_token"
}
"enable": "true",
"responseType": "code id_token"
}

SMTP_SERVER = "smtp.gmail.com"
Expand Down

0 comments on commit efcc533

Please sign in to comment.