I wrote some codes to create a web application using Google SignIn.
First, the initiallize API platform,
gAuth = gapi.auth2.init( { client_id: gAuthClientId, fetch_basic_profile: false, scope: gAuthScope } );
and force the user to log in.
gAuth.signIn({ prompt: 'none' });
In this code, I want to skip the auth popup for a (already) signed up user, and I follow the reference in the developer's document
prompt: Indicates whether to request reauthentication from the user. See OpenID Connect request parameters. Not necessary.
and a parameter file as shown in the document above.
line
OPTIONAL. A space-limited list of ASCII string values ββthat defines a register that indicates whether the authorization server asks the end user for re-authentication and consent. Defined Values: No None
The authorization server MUST NOT display user authentication or consent pages. The error is returned if the end user has not yet authenticated or the Client does not have pre-configured consent to the requested claims or does not fulfill other conditions for processing the request. The error code will usually be login_required, interactive_required. This can be used as a method of authentication and / or consent.
but it does not work. In fact, for a signed-in user, the API displays a one-time popup and closes it immediately. When I do this phase automatically, it was a blocked browser.
Why is this happening? What am I doing to avoid pop-ups for registered users?
source share