-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dynamic ACR response check - fixed #47
- Loading branch information
1 parent
18c5d96
commit abcb3d3
Showing
5 changed files
with
143 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import requests | ||
import logging | ||
import requests | ||
|
||
|
||
API_URL = 'https://indicepa.gov.it/PortaleServices/api/aoo' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from spid_sp_test.response import SpidSpResponse, SpidSpResponseCheck | ||
from . settings import HTTP_STATUS_ERROR_CODES | ||
|
||
|
||
def dynamic_acr(check:SpidSpResponseCheck, response_obj:SpidSpResponse, **kwargs): | ||
if check.get_acr() != check.response_attrs['AuthnContextClassRef']: | ||
response_obj.conf['status_codes'] = HTTP_STATUS_ERROR_CODES |
Oops, something went wrong.