-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup: Use const values to handle layout / entries well known values and generate strings instead of hardcoding them #626
base: main
Are you sure you want to change the base?
Commits on Nov 26, 2024
-
brokers: Move auth results to auth package so that can be used everyw…
…here We were duplicating this in the example broker, so let's make the same content be available everywhere.
Configuration menu - View commit details
-
Copy full SHA for f1e5e07 - Browse repository at this point
Copy the full SHA f1e5e07View commit details -
cleanup: Define layout type names as constants and reuse them in code
Avoid (re)using string values for layout types as is, since they are prone to errors and they're hard to maintain.
Configuration menu - View commit details
-
Copy full SHA for 96a0fce - Browse repository at this point
Copy the full SHA 96a0fceView commit details -
cleanup: Define entries names as constants and reuse them in code
Avoid (re)using string values for entries types as is, since they are prone to errors and they're hard to maintain.
Configuration menu - View commit details
-
Copy full SHA for a8a4e0d - Browse repository at this point
Copy the full SHA a8a4e0dView commit details -
brokers/layouts: Add simple formatter for optional/required items
Avoid building the list manually now that we've consts values and use this for both optional booleans and supported entries
Configuration menu - View commit details
-
Copy full SHA for 11125b2 - Browse repository at this point
Copy the full SHA 11125b2View commit details -
brokers/layouts: Add parser for joined layout items
It can be used to parse optional or required values or entries. Use this both in broker and example brokers logic
Configuration menu - View commit details
-
Copy full SHA for 2dcd274 - Browse repository at this point
Copy the full SHA 2dcd274View commit details -
cleanup: Use layouts.True instead of strings
Avoid repeating the same string allover the places
Configuration menu - View commit details
-
Copy full SHA for b64d869 - Browse repository at this point
Copy the full SHA b64d869View commit details -
Configuration menu - View commit details
-
Copy full SHA for a75ec45 - Browse repository at this point
Copy the full SHA a75ec45View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6f86e9 - Browse repository at this point
Copy the full SHA b6f86e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1c18d3 - Browse repository at this point
Copy the full SHA e1c18d3View commit details -
examplebroker: Simplify auth modes handling by using a maps of structs
We were using a maps of maps that made code hard to read and maintain and doing some unneeded conversions to json back and forth. Avoid this by just using structured data instead
Configuration menu - View commit details
-
Copy full SHA for aa5ad2d - Browse repository at this point
Copy the full SHA aa5ad2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8a76c8 - Browse repository at this point
Copy the full SHA e8a76c8View commit details -
examplebroker: Define authentication modes we support globally
So that we can reuse their ID across the file without further constants
Configuration menu - View commit details
-
Copy full SHA for ecfe7d6 - Browse repository at this point
Copy the full SHA ecfe7d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a47a3a - Browse repository at this point
Copy the full SHA 6a47a3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4617a9a - Browse repository at this point
Copy the full SHA 4617a9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3188862 - Browse repository at this point
Copy the full SHA 3188862View commit details -
cleanup: Move authd protocol definitions to internal library
We don't need to expose the proto externally, since we are now re-usable so if something of it has to be exposed we should do it manually
Configuration menu - View commit details
-
Copy full SHA for 04cce75 - Browse repository at this point
Copy the full SHA 04cce75View commit details -
services/pam: Set qrcode rendering to false if the flag is false
It's what the oidc broker expects to be set in case the rendering is not supported, while we were unsetting the value by default.
Configuration menu - View commit details
-
Copy full SHA for 6d67ab9 - Browse repository at this point
Copy the full SHA 6d67ab9View commit details -
brokers/layouts: Add functions to create UILayout definitions and par…
…se them We use to create UI options manually and converting them to maps for being transferred via DBus, it's something we also need to do in the broker side, so let's expose this publicly for being reused by brokers too
Configuration menu - View commit details
-
Copy full SHA for 44c2f42 - Browse repository at this point
Copy the full SHA 44c2f42View commit details -
brokers/layouts: Do not include unset values on string maps objects
If some values are unset, there's no point to expose them to the brokers
Configuration menu - View commit details
-
Copy full SHA for 06d6b8d - Browse repository at this point
Copy the full SHA 06d6b8dView commit details -
cleanup: Use layouts to create layouts for tests
Now that it has been tested with the manually generated version we can use the utility functions.
Configuration menu - View commit details
-
Copy full SHA for a30d228 - Browse repository at this point
Copy the full SHA a30d228View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4231f0 - Browse repository at this point
Copy the full SHA f4231f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8055c8b - Browse repository at this point
Copy the full SHA 8055c8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f27057 - Browse repository at this point
Copy the full SHA 3f27057View commit details -
brokers/layouts: Add simple functions to parse lists of layout maps
It can be useful for brokers to handle the received messages
Configuration menu - View commit details
-
Copy full SHA for fa7fe3e - Browse repository at this point
Copy the full SHA fa7fe3eView commit details -
examplebroker: Use native layouts.UILayout to parse the supported UI …
…layouts It adds a convenient way to handle the value as a native type.
Configuration menu - View commit details
-
Copy full SHA for ec4c3b2 - Browse repository at this point
Copy the full SHA ec4c3b2View commit details -
brokers/auth: Add authentication Mode abstraction utilities
These can be used by brokers and authd to parse the results back and forth from the dbus format.
Configuration menu - View commit details
-
Copy full SHA for 4a8d440 - Browse repository at this point
Copy the full SHA 4a8d440View commit details -
Configuration menu - View commit details
-
Copy full SHA for be8d273 - Browse repository at this point
Copy the full SHA be8d273View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee38984 - Browse repository at this point
Copy the full SHA ee38984View commit details -
examplebroker: Move to internal package
Now that authd can be imported we should not expose anything that isn't an API.
Configuration menu - View commit details
-
Copy full SHA for 8d7abc1 - Browse repository at this point
Copy the full SHA 8d7abc1View commit details