root: fix lint errors from re-format

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-03 18:04:56 +02:00
parent 2c60ec50be
commit 9d392931df
4 changed files with 5 additions and 7 deletions

View File

@ -79,8 +79,8 @@ class CertificateKeyPair(CreatedUpdatedModel):
def kid(self): def kid(self):
"""Get Key ID used for JWKS""" """Get Key ID used for JWKS"""
return "{0}".format( return "{0}".format(
md5(self.key_data.encode("utf-8")).hexdigest() if self.key_data else "" md5(self.key_data.encode("utf-8")).hexdigest() if self.key_data else "" # nosec
) # nosec )
def __str__(self) -> str: def __str__(self) -> str:
return f"Certificate-Key Pair {self.name}" return f"Certificate-Key Pair {self.name}"

View File

@ -204,7 +204,7 @@ class BearerTokenError(OAuth2Error):
401, 401,
), ),
"insufficient_scope": ( "insufficient_scope": (
"The request requires higher privileges than provided by " "the access token", "The request requires higher privileges than provided by the access token",
403, 403,
), ),
} }

View File

@ -30,6 +30,4 @@ class TwitterType(SourceType):
request_token_url = "https://api.twitter.com/oauth/request_token" # nosec request_token_url = "https://api.twitter.com/oauth/request_token" # nosec
authorization_url = "https://api.twitter.com/oauth/authenticate" authorization_url = "https://api.twitter.com/oauth/authenticate"
access_token_url = "https://api.twitter.com/oauth/access_token" # nosec access_token_url = "https://api.twitter.com/oauth/access_token" # nosec
profile_url = ( profile_url = "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true"
"https://api.twitter.com/1.1/account/" "verify_credentials.json?include_email=true"
)

View File

@ -14,7 +14,7 @@ import { Application, CoreApi } from "authentik-api";
import { AKResponse } from "../api/Client"; import { AKResponse } from "../api/Client";
import { DEFAULT_CONFIG } from "../api/Config"; import { DEFAULT_CONFIG } from "../api/Config";
import { me } from "../api/Users"; import { me } from "../api/Users";
import { loading, truncate } from "../utils"; import { loading } from "../utils";
import "../elements/PageHeader"; import "../elements/PageHeader";
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";
import PFCard from "@patternfly/patternfly/components/Card/card.css"; import PFCard from "@patternfly/patternfly/components/Card/card.css";