src/fastapi_aad_auth/_base/authenticators/session.py
def redirect_if_authenticated(self, auth_state, redirect='/'):
        """Redirect to a target if authenticated."""
        if auth_state.is_authenticated():
            self.logger.info(f'Logged in, redirecting to {redirect}')
        else:
            redirect = '/login'
        return RedirectResponse(redirect)
Redirect to a target if authenticated.
Redirect to a target if authenticated.
Redirect to a target if authenticated .
def redirect_if_authenticated(self, auth_state, redirect='/'):
        if auth_state.is_authenticated():
            self.logger.info(f'Logged in, redirecting to {redirect}')
        else:
            redirect = '/login'
        return RedirectResponse(redirect)
def redirect_if_authenticated ( self , auth_state , redirect = '/' ) : if auth_state . is_authenticated ( ) : self . logger . info ( f'Logged in, redirecting to {redirect}' ) else : redirect = '/login' return RedirectResponse ( redirect )
Redirect to a target if authenticated.
Redirect to a target if authenticated .
"""Redirect to a target if authenticated."""
self
auth_state
redirect