authPrompt: set value of beginRequestType to 'DONT_PROVIDE_USERNAME'
Commit 809f820c
introduct vmware SSO service to gnome-shell, the value
beginRequestType should be set to 'DONT_PROVIDE_USERNAME', otherwise
vmware sso will fail. This patch will fix it.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1443
This commit is contained in:
parent
7a25d5fd89
commit
3fb321fd21
@ -7,6 +7,7 @@ const Animation = imports.ui.animation;
|
|||||||
const Batch = imports.gdm.batch;
|
const Batch = imports.gdm.batch;
|
||||||
const GdmUtil = imports.gdm.util;
|
const GdmUtil = imports.gdm.util;
|
||||||
const OVirt = imports.gdm.oVirt;
|
const OVirt = imports.gdm.oVirt;
|
||||||
|
const Vmware = imports.gdm.vmware;
|
||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
const ShellEntry = imports.ui.shellEntry;
|
const ShellEntry = imports.ui.shellEntry;
|
||||||
const UserWidget = imports.ui.userWidget;
|
const UserWidget = imports.ui.userWidget;
|
||||||
@ -486,6 +487,7 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
// respond to the request with the username
|
// respond to the request with the username
|
||||||
beginRequestType = BeginRequestType.PROVIDE_USERNAME;
|
beginRequestType = BeginRequestType.PROVIDE_USERNAME;
|
||||||
} else if (this._userVerifier.serviceIsForeground(OVirt.SERVICE_NAME) ||
|
} else if (this._userVerifier.serviceIsForeground(OVirt.SERVICE_NAME) ||
|
||||||
|
this._userVerifier.serviceIsForeground(Vmware.SERVICE_NAME) ||
|
||||||
this._userVerifier.serviceIsForeground(GdmUtil.SMARTCARD_SERVICE_NAME)) {
|
this._userVerifier.serviceIsForeground(GdmUtil.SMARTCARD_SERVICE_NAME)) {
|
||||||
// We don't need to know the username if the user preempted the login screen
|
// We don't need to know the username if the user preempted the login screen
|
||||||
// with a smartcard or with preauthenticated oVirt credentials
|
// with a smartcard or with preauthenticated oVirt credentials
|
||||||
|
Loading…
Reference in New Issue
Block a user