diff --git a/authentik/api/v3/config.py b/authentik/api/v3/config.py index c93fff5c9..e4905b170 100644 --- a/authentik/api/v3/config.py +++ b/authentik/api/v3/config.py @@ -5,7 +5,14 @@ from django.conf import settings from django.db import models from drf_spectacular.utils import extend_schema from kubernetes.config.incluster_config import SERVICE_HOST_ENV_NAME -from rest_framework.fields import BooleanField, CharField, ChoiceField, FloatField, IntegerField, ListField +from rest_framework.fields import ( + BooleanField, + CharField, + ChoiceField, + FloatField, + IntegerField, + ListField, +) from rest_framework.permissions import AllowAny from rest_framework.request import Request from rest_framework.response import Response @@ -23,14 +30,14 @@ class Capabilities(models.TextChoices): CAN_GEO_IP = "can_geo_ip" CAN_BACKUP = "can_backup" + class ErrorReportingConfigSerializer(PassiveSerializer): """Config for error reporting""" enabled = BooleanField(read_only=True) environment = CharField(read_only=True) send_pii = BooleanField(read_only=True) - traces_sample_rate=FloatField(read_only=True) - + traces_sample_rate = FloatField(read_only=True) class ConfigSerializer(PassiveSerializer): diff --git a/web/package-lock.json b/web/package-lock.json index f8b675e8a..2f2704cc6 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -15,7 +15,7 @@ "@babel/preset-env": "^7.16.4", "@babel/preset-typescript": "^7.16.0", "@fortawesome/fontawesome-free": "^5.15.4", - "@goauthentik/api": "^2021.10.4-1637919181", + "@goauthentik/api": "^2021.10.4-1638190705", "@jackfranklin/rollup-plugin-markdown": "^0.3.0", "@lingui/cli": "^3.13.0", "@lingui/core": "^3.13.0", @@ -1708,9 +1708,9 @@ } }, "node_modules/@goauthentik/api": { - "version": "2021.10.4-1637919181", - "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2021.10.4-1637919181.tgz", - "integrity": "sha512-a+2h++6b2WGXurlTwRTZwRB3QhsT8rL9aiowUjqTJt7reUw5SwItduLe6eDeGThecLHRiklfZ1PF2zqtuUP0oA==" + "version": "2021.10.4-1638190705", + "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2021.10.4-1638190705.tgz", + "integrity": "sha512-fEtKGX8F9BDnYWIF9vTxLEkqGkABRl+0M2sgCOd4XqiflNveDEQYMVZAK5yvNzCK8L4wIcbn7y8s/lCncEKJ2Q==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.6.0", @@ -9895,9 +9895,9 @@ "integrity": "sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg==" }, "@goauthentik/api": { - "version": "2021.10.4-1637919181", - "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2021.10.4-1637919181.tgz", - "integrity": "sha512-a+2h++6b2WGXurlTwRTZwRB3QhsT8rL9aiowUjqTJt7reUw5SwItduLe6eDeGThecLHRiklfZ1PF2zqtuUP0oA==" + "version": "2021.10.4-1638190705", + "resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-2021.10.4-1638190705.tgz", + "integrity": "sha512-fEtKGX8F9BDnYWIF9vTxLEkqGkABRl+0M2sgCOd4XqiflNveDEQYMVZAK5yvNzCK8L4wIcbn7y8s/lCncEKJ2Q==" }, "@humanwhocodes/config-array": { "version": "0.6.0", diff --git a/web/package.json b/web/package.json index 6181615e2..c8e06d94b 100644 --- a/web/package.json +++ b/web/package.json @@ -51,7 +51,7 @@ "@babel/preset-env": "^7.16.4", "@babel/preset-typescript": "^7.16.0", "@fortawesome/fontawesome-free": "^5.15.4", - "@goauthentik/api": "^2021.10.4-1637919181", + "@goauthentik/api": "^2021.10.4-1638190705", "@jackfranklin/rollup-plugin-markdown": "^0.3.0", "@lingui/cli": "^3.13.0", "@lingui/core": "^3.13.0",