Move some code around and improve validation (#128)
This commit is contained in:
committed by
GitHub
parent
3b481cd282
commit
d1da841e1f
7
custom_components/auth_oidc/endpoints/__init__.py
Normal file
7
custom_components/auth_oidc/endpoints/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Imports manager"""
|
||||
|
||||
from .callback import OIDCCallbackView as OIDCCallbackView
|
||||
from .finish import OIDCFinishView as OIDCFinishView
|
||||
from .injected_auth_page import OIDCInjectedAuthPage as OIDCInjectedAuthPage
|
||||
from .redirect import OIDCRedirectView as OIDCRedirectView
|
||||
from .welcome import OIDCWelcomeView as OIDCWelcomeView
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from aiohttp import web
|
||||
from ..oidc_client import OIDCClient
|
||||
from ..tools.oidc_client import OIDCClient
|
||||
from ..provider import OpenIDAuthProvider
|
||||
from ..helpers import get_url, get_view
|
||||
from ..tools.helpers import get_url, get_view
|
||||
|
||||
PATH = "/auth/oidc/callback"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from aiohttp import web
|
||||
from ..helpers import get_view
|
||||
from ..tools.helpers import get_view
|
||||
|
||||
PATH = "/auth/oidc/finish"
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ can either be linked to directly or accessed through the welcome page."""
|
||||
from aiohttp import web
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
|
||||
from ..oidc_client import OIDCClient
|
||||
from ..helpers import get_url, get_view
|
||||
from ..tools.oidc_client import OIDCClient
|
||||
from ..tools.helpers import get_url, get_view
|
||||
|
||||
PATH = "/auth/oidc/redirect"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
from aiohttp import web
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from ..helpers import get_url, get_view
|
||||
from ..tools.helpers import get_url, get_view
|
||||
|
||||
PATH = "/auth/oidc/welcome"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user