After logout through oidc.logout, there is no restriction on the @oidc.require_login decorator, and it also needs to be redirected to keycloak to achieve logout.
return redirect(oidc.client_secrets.get('issuer')+'/protocol/openid-connect/logout?redirect_uri='+request.host_url+'login')
After logout through oidc.logout, there is no restriction on the @oidc.require_login decorator, and it also needs to be redirected to keycloak to achieve logout. return redirect(oidc.client_secrets.get('issuer')+'/protocol/openid-connect/logout?redirect_uri='+request.host_url+'login')