sources/oauth: fix wrong comparions

closes #118
This commit is contained in:
Jens Langhammer 2020-07-07 21:46:16 +02:00
parent 91bea38b8e
commit cfc181eed1
1 changed files with 2 additions and 2 deletions

View File

@ -50,9 +50,9 @@ class SourceTypeManager:
return self.__source_types[kind.value][source.provider_type] return self.__source_types[kind.value][source.provider_type]
LOGGER.warning("no matching type found, using default") LOGGER.warning("no matching type found, using default")
# Return defaults # Return defaults
if kind.value == RequestKind.callback: if kind == RequestKind.callback:
return OAuthCallback return OAuthCallback
if kind.value == RequestKind.redirect: if kind == RequestKind.redirect:
return OAuthRedirect return OAuthRedirect
raise KeyError( raise KeyError(
f"Provider Type {source.provider_type} (type {kind.value}) not found." f"Provider Type {source.provider_type} (type {kind.value}) not found."