如果用户离开我的主页并通过他们的 Google 帐户登录,我是否需要注销该用户?

Do I need to sign out a user if they leave my homepage and signed on through their Google account?

我正在为我的 Django 应用程序开发登录页面,并使用 Google 登录让用户获得访问权限。我的问题是,如果他们成功登录,出于安全目的,我是否需要某种方法来更改他们的登录状态?

可能是个愚蠢的问题,但老实说我不知道​​,想确定一下。

不,这不是一个愚蠢的问题,而是一个深思熟虑的问题。

使用 Google 或其他 OAuth2 提供程序进行登录是可以的,您请求一组范围,当您的用户登录并接受继续时,您可以在这些范围内发出请求。 Google https://developers.google.com/identity/protocols/OAuth2.

的流程在此处概述

一般来说,您不会有广泛的访问权限来操纵用户的帐户,并且在某些范围内,您的应用需要经过验证。对于 Web 应用程序,请记住您的用户将看到您请求的范围并且可以随时拒绝。因此,在需要时请求范围通常是一个很好的模式。

If your public application uses scopes that permit access to certain user data, it must complete a verification process. If you see unverified app on the screen when testing your application, you must submit a verification request to remove it. Find out more about unverified apps and get answers to frequently asked questions about app verification in the Help Center. https://developers.google.com/identity/protocols/googlescopes

那是 Google 试图保护用户安全。

顺便说一句,用户随时可以出于任何原因撤销他们授予您的应用程序的访问权限。