Commit graph

18849 commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
03b497da53 gdm/util: Catch errors on re-authentication 2024-04-08 10:45:05 -04:00
Ray Strode
ce3119d8d7 gdm/util: Add new "background" message type
This commit adds a new "background" message type for messages that
should appear in the footer.
2024-04-08 10:45:05 -04:00
Ray Strode
bbb97681bc authPrompt: Fade out cancel button after verification
Right now we make the cancel button non-reactive when
verification is complete, but it still disrupts the
login transition because in many cases most of the other
screen elements have been faded out.

This commit fades it out as well.
2024-04-08 10:45:05 -04:00
Ray Strode
6f1e1172a0 loginDialog: Create footer container
Right now the logo is placed in the bottom of the screen, but
in the future we'll want other things there as well.

To make that possible, this commit adds a footer container.
2024-04-08 10:45:05 -04:00
Ray Strode
301fa7fc0c authPrompt: Add support for Web Login
SSSD supports Web Login via a url on an external device. It
advertises this support over the auth-selection json protocol
we now have limited support for.

This commit extends that support Web Login by way of showing a
QR code as proposed in the design here:

https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/master/lock-login/web-login.png.
2024-04-08 10:45:05 -04:00
Ray Strode
49f88b4fd6 gdm: Add "Login Failed" notification
One step toward implementing Web Login is adding the ability to
show "Login Failed" as a notification banner.

This is because with Web Login, the auth prompt is occluded so can't
be used to show an error message itself.

This commit adds the necessary code to show the Login Failed
notification, but doesn't actually call that code yet.

It will be used later when Web Login support is added.
2024-04-08 10:45:05 -04:00
Ray Strode
c42d33aa46 src: Add function for generating QR codes
In order to implement Web Login in GDM we're going to need to be
able to generate QR codes. It's possible we'll need QR codes for
other future features as well.

As a first step, this commit adds API for outputting a GIcon
of a QR code for a specified URL.
2024-04-08 10:45:05 -04:00
Ray Strode
a9fe6d1f75 gdm/util: Emit "service-request" signal on every request
GDM doesn't provide any sort of "ack" when a users input
has been acknowledged by the underlying PAM conversation.

We know when a bit of input has been processed when the next
bit of input or output gets requested (or authentication succeeds).

This commit emits a signal any time there is such a request so it
can be connected to (which will later be used to know when to close
a dialog used for Web Login)
2024-04-08 10:45:05 -04:00
Ray Strode
8340638df2 gdm/util: Figure out default service from service definitions
Now that we have a list of service definitions mapped to what
sort of authentication they can do, conveniently already in
the order of preferred default services, there's no reason
we shouldn't use it for updating the default service.

This commit changes the code to do that instead of the
long if/else if code that was there before
2024-04-08 10:45:05 -04:00
Ray Strode
7d98c23ab1 gdm: Add support switchable authentication
SSSD wants the ability to control all authentication mechanisms
it can support from a single pam conversation.

This commit adds support for a new "switchable" authentication service
that allows for that. It leverages GDM's new JSON extension with a
new "auth-selection" protocol provided by pam_sss.

This initial commit just supports password like mechanisms. Future
commits will add support for mechanisms that support other authentication
 roles.
2024-04-08 10:45:05 -04:00
Ray Strode
508123c597 unlockDialog: Add Login Options menu button 2024-04-08 10:45:04 -04:00
Ray Strode
4b63f3db6f loginDialog: Add Login Options button
This commit maps the various auth services to their roles, and
calls this mapping an "auth mechanism". This list of auth
mechanisms is used to populate a new Login Options menu, as
speced out in the design here:

https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/master/lock-login/login-authentication.png
2024-04-08 10:45:04 -04:00
Ray Strode
b84c121d4d loginDialog: Port sessions menu over to AuthMenuButton
Now that AuthMenuButton exists, we should use it.

This commit changes the session menu over to use the new
control.
2024-04-08 10:45:04 -04:00
Ray Strode
cd4cad1462 gdm: Add new AuthMenuButton control
The latest login screen designs here:

https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/master/lock-login/login-authentication.png

shows a new "Login Options" menu in the corner.

As a first step toward acheiving that goal, this commit adds a new
AuthMenuButton class. It's a fairly generic control derived from
the code used to show the sessions menu button. One key difference
is it allows a multi-valued, partial key for its entries. This provides
flexibility that we'll need to leverage later.

Nothing uses this new class yet. A subsequent commit will change the
sessions menu button code over to use it, and a commit after that will
use it for Login Options.
2024-04-08 10:45:04 -04:00
Ray Strode
8f0dde4b34 loginDialog: Move authPrompt.begin to helper function
Soon, we're going to need to do some other things than firing
off the auth prompt when beginning verification.

In prepration for that, this commit creates a wrapper function,
_beginVerification, that can be easily augmented later.
2024-04-08 10:45:04 -04:00
Ray Strode
1af9b6acd2 authPrompt: Parameterize reset function
In the future, the code will need to do a partial reset where
some state is carried over or explicitly specified.

This commit prepares for that by allowing the request type and
querying service to be specified at reset time.
2024-04-08 10:45:04 -04:00
Ray Strode
ec6f4da20d unlockDialog: Support request type of REUSE_USERNAME
The unlock dialog currently fails to reuse the username, when requested
to do so. This commit fixes that.
2024-04-08 10:45:04 -04:00
Ray Strode
81d1903c4d authPrompt: Right align cancel button
The cancel button should always hug the input controls
to the right of it.

This commit fixes that.
2024-04-08 10:45:04 -04:00
Ray Strode
c05d8c3299 animation: Allow spinner to be sizes other than 16x16 pixels
Since sliced images are provided in a two dimensional grid, instead
of linear strip, there's no way to infer the size of an individual
cell inside a sliced image. Because of this limitation the texture
cache api for loading an image requires the cell size (called grid
size in the api) be explicitly specified. But because sliced images
are scalable SVGs, the texture cache code needs to know the output
animation size as well, to ensure the animation is rendered with an
appropriately high resolution. The API doesn't ask for this
information, however, instead just assuming the output size is the same
as the cell size. That effectively means that spinners can only be
16x16 pixels big (because our spinner slicable images have cells that
are nominally 16x16).

This commit changes the API to allow the output image size to be
specified as well, and fixes the code to render at the appropriate
output size.
2024-04-08 10:45:04 -04:00
Danial Behzadi
0cc6a2747d Update Persian translation 2024-04-05 13:17:49 +00:00
Artur S0
f4a529362b Update Russian translation 2024-04-04 14:44:12 +00:00
Robert Mader
490ecc536a screencastService: Use 'screen' encoder profile for openH264
There are "camera" and "screen", the former being the default. Using the
later should slightly increase image quality.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3259>
2024-04-02 11:20:36 +02:00
Nathan Follens
796f347fa7 Update Dutch translation 2024-03-31 10:30:37 +00:00
Martin
481657f948 Update Slovenian translation 2024-03-30 17:00:19 +00:00
Милош Поповић
54710d2d3a Update Serbian (Latin) translation 2024-03-29 14:44:36 +00:00
Милош Поповић
023ec7ba06 Update Serbian translation 2024-03-29 14:43:45 +00:00
Vincent Chatelain
39352d0afe Update French translation 2024-03-24 13:43:37 +00:00
Athmane MOKRAOUI
ee03cf5f64 Update Kabyle translation 2024-03-23 15:08:32 +00:00
Boyuan Yang
d54cc369b7 Update Chinese (China) translation 2024-03-21 23:37:22 +00:00
Sabri Ünal
1e58f76a80 Update Turkish translation 2024-03-20 22:20:46 +00:00
Jordi Mas
1b92c58b7c Update Catalan translation 2024-03-19 21:49:57 +01:00
Jordi Mas i Hernandez
bcd543b0d9 Update Catalan translation 2024-03-19 20:18:13 +00:00
Fran Dieguez
c5e3b16d81 Update Galician translation 2024-03-19 15:35:55 +00:00
Sebastian Keller
7f476e051c notificationDaemon: Use correct property name to enable markup
The property is named useBodyMarkup, not bannerMarkup. This was causing
markup to be disabled for FDO notifications.

Fixes: cc60ce7f94 ("notification: Stop using 'update()' from MessageTray.Notification")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7495
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3247>
2024-03-19 13:14:04 +01:00
Milo Casagrande
0ff4501b40 Update Italian translation 2024-03-19 11:03:18 +00:00
Christian Kirbach
3099a57cc0 Update German translation 2024-03-18 16:33:22 +00:00
A S Alam
2318d897ba Update Punjabi translation 2024-03-18 04:02:35 +00:00
Brage Fuglseth
64c47912d0 Update Norwegian Bokmål translation 2024-03-17 18:23:58 +00:00
Carlos Garnacho
d97bd4ab00 data: Add shift level to Korean OSK layout
This allows input of double consonants and other characters
typically hidden in the first level.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7455
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3222>
2024-03-17 14:22:43 +00:00
Yaron Shahrabani
2b2d6b718a Update Hebrew translation 2024-03-17 13:12:40 +00:00
Piotr Drąg
c390c58768 Update Polish translation 2024-03-17 11:54:15 +00:00
Jiri Grönroos
ab9b4997fe Update Finnish translation 2024-03-17 10:16:37 +00:00
Asier Sarasua Garmendia
b3f530096d Update Basque translation 2024-03-17 09:50:36 +00:00
Ekaterine Papava
978f3b592d Update Georgian translation 2024-03-17 02:24:11 +00:00
Daniel Rusek
61556c3c11 Update Czech translation 2024-03-16 22:52:21 +00:00
Yuri Chornoivan
e198c86772 Update Ukrainian translation 2024-03-16 20:54:03 +00:00
Aurimas Černius
5ba3f3a7d5 Update Lithuanian translation 2024-03-16 20:37:17 +00:00
Anders Jonsson
33c15d3380 Update Swedish translation 2024-03-16 19:26:23 +00:00
Baurzhan Muftakhidinov
a6e84c76f8 Update Kazakh translation 2024-03-16 18:15:54 +00:00
Danial Behzadi
1b5ae14d46 Update Persian translation 2024-03-16 17:51:54 +00:00