fix: remove oidc audience requirement
This commit is contained in:
parent
6cfacad131
commit
d03478637a
3 changed files with 0 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
SECRET_KEY=""
|
||||
OIDC_CONFIG="https://sso.sr2.uk/realms/sr2/.well-known/openid-configuration"
|
||||
OIDC_ISSUER="https://sso.sr2.uk/realms/sr2"
|
||||
OIDC_AUDIENCE="account"
|
||||
CLIENT_ID=""
|
||||
|
||||
DATABASE_NAME="cloud-api"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ from src.config import CustomBaseSettings
|
|||
class AuthConfig(CustomBaseSettings):
|
||||
OIDC_CONFIG: str = ""
|
||||
OIDC_ISSUER: str = ""
|
||||
OIDC_AUDIENCE: str = ""
|
||||
CLIENT_ID: str = ""
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ async def get_current_user(oidc_auth_string: oidc_dependency) -> dict[str, Any]:
|
|||
|
||||
claims_options = {
|
||||
"exp": {"essential": True},
|
||||
"aud": {"essential": True, "value": "account"},
|
||||
"iss": {"essential": True, "value": auth_settings.OIDC_ISSUER},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue