linoman
4e5bff0ada
Auth Drawer: Use redux store to load settings ( #85110 )
...
* use actions instead of importing the backend service
* Replace the test render for redux-rtl
2024-03-26 14:56:31 +01:00
Mihai Doarna
6ddced7ba8
SSO: add the missing fields to the okta provider ( #85152 )
...
* add the missing allowSignUp field to okta provider
* add autoLogin to okta
2024-03-26 14:45:45 +02:00
Mihai Doarna
6febfdffd2
Auth: add the missing fields for all SSO providers ( #83813 )
...
* add the missing fields for sso providers
* remove fields array
* add the validate_hd field for google
* submit only fields defined on the provider
* fix unit tests
* add unit tests for the new fields/sections from the form
* add hosted_domain field for the google provider
* reorder fields in user mapping
* remove authStyle field from gitlab and okta
---------
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-03-19 12:20:19 +02:00
linoman
6287e1f8ed
Auth: Auth Drawer ( #83910 )
...
* add drawer for auth settings
* add auth drawer component
* include AuthDrawer component in auth providers page
* protect the feature as enterprise only
* add unit test
2024-03-06 17:27:55 +01:00
Misi
07e26226b7
Auth: Add all settings to Azure AD SSO config UI ( #83618 )
...
* Add all settings to AzureAD UI
* prettify
* Fixes
* Load extra keys with type assertion
2024-03-04 11:55:59 +01:00
Misi
371aced092
Chore: Add enabled status to authentication_ui_provider_clicked ( #83766 )
...
Add enabled metadata to authentication_ui_provider_clicked
2024-03-01 13:49:06 +01:00
Misi
75b020c19d
Cfg: Add a setting to configure if the local file system is available ( #83616 )
...
* Introduce environment.local_filesystem_available
* Only show TLS client cert, client key, client ca when local_filesystem_available is true
* Rename LocalFSAvailable to LocalFileSystemAvailable
2024-03-01 10:39:50 +01:00
Misi
0218e94d93
Auth: Add Save and enable, Disable buttons to SSO UI ( #83672 )
...
* Add Save and enable and Disable button
* Change to use Dropdown, reorder buttons
* Improve UI
* Update public/app/features/auth-config/ProviderConfigForm.tsx
* Apply suggestions from code review
* Use Stack instead of separate Fields
---------
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-02-29 17:41:08 +01:00
Misi
91cd17f012
Chore: Move TLS settings to the Extra Security Measures section (SSO Settings UI) ( #83602 )
...
Move TLS settings to the Extra Security Measures section
2024-02-28 16:01:02 +01:00
Misi
12b1170631
Auth: Validation fixes for SSO Settings ( #82252 )
...
* Validation fixes
* Add URL validations + tests
* Add ApiUrl validation
* Refactor validators
* lint
* Clean up
* Improvements
2024-02-14 16:06:52 +01:00
Misi
00e96e4584
Auth: SSO Settings UI frontend improvements ( #82264 )
...
* Add frontend fixes
* Update labels + link
2024-02-12 11:12:08 +01:00
Misi
b1dc505a2b
Auth: Validate admin assignment in SSO Settings ( #82233 )
...
* Add validation for allowAssignGrafanaAdmin
* Update default values
* Do not render hidden fields
* Change error message
* Improve tests
---------
Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-02-09 13:10:23 +01:00
Misi
74d7cd2cad
Auth: Add name to be configurable from the UI ( #82144 )
...
* Add name to be configurable from the UI
* Update public/app/features/auth-config/ProviderConfigPage.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Align test
---------
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-02-08 13:33:47 +01:00
Mihai Doarna
c43a170009
SSO Auth: fix typos on field description ( #81685 )
...
fix typos on field description
2024-02-01 11:27:39 +01:00
Misi
69a1e7b510
Auth: Remove unnecessary field from Generic OAuth UI ( #81565 )
...
* Remove unnecessary field
* Update interaction event key
2024-01-30 16:17:38 +01:00
Misi
8ffcf32f83
Auth: Add interaction tracking to SSO settings UI ( #81497 )
...
Add interaction tracking
2024-01-30 11:04:55 +01:00
Misi
bcc2409564
Auth: Add validation to Generic OAuth API and UI ( #81345 )
...
* wip
* Update validation
* Chore: Remove InputControl usage
* Fixes, validation
* Remove empty option
* Validation changes
* Add tests, rename
* lint
---------
Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-01-29 12:04:22 +01:00
Misi
4577e61ee7
Auth: Improve /admin/authentication permission checks and include new SSO pages ( #81183 )
...
* Move evalAuthSettings to ssoutils
* Improve permission check for auth page
2024-01-25 11:13:24 +01:00
Misi
8246d97587
Auth: Introduce configurable_providers
config option for SSO settings ( #80911 )
...
* Add SSOSettingsConfigurableProviders config option
* Add check to Delete and ListWithRedactedSecrets
* Add check to GET, small improvements
2024-01-23 15:48:06 +01:00
Misi
c196bde2e0
Auth: Include missing SSO settings from system settings on read paths ( #80421 )
...
* first touches
* Merge missing SSO settings to support Advanced Auth pages
* fix
2024-01-12 15:20:50 +01:00
Alex Khomenko
370fd5a5af
SSO Config: Add generic OAuth ( #79972 )
...
* Setup route
* Set up the page
* Add orgs
* Load settings
* Make API call
* Remove log
* Add FormPrompt
* Update types
* Add tests
* Fix tests
* Cleanup
* Load settings
* Fix naming
* Switch to PUT endpoint
* Switch to CSS object
* Setup fields
* Render fields
* Extend types
* Dynamic provider page
* Rename page
* Filter out non-implemented providers
* Fix types
* Add teamIDs validation
* Update tests
* Fix URL
* Update name
* Send full data
* Add password input
* Update test
* Expand default values
* Fix test
* Use SecretInput
* Remove dev mode for the feature toggle
* Convert fields
* Remove fieldFormat utils
* Update fields logic
* Update tests
* Update betterer
* SSO: Add Generic OAuth page
* SSO: Add Generic OAuth page
* SSO: Make client secret not required
* Update field name
* Revert feature toggle to dev mode
* Use provider endpoint
* Fix form state check
* Update tests
* Fix URL redirect after form submit
* Mock locationService
* Separate Form component
* Update fields
* Add more fields
* Add more fields
* Fix spacing
* Add UserMapping fields
* Add rest of the fields
* Add FieldRenderer
* Update types
* Update comment
* Update feature toggle
* Add checkbox
* Do not submit form if there are errors
* Fix revalidation
* Redirect on success only
* Fix redirect behavior
* Add missing descriptions
* Use inline checkbox
* Add enabled field
* Restore feature toggle
* Remove source field from PUT request
* Add URL to the fields
* Add hidden prop to fields and sections
* Add Delete button
* Prettier
* Add authStyle, still not working, description updates
* Fix saving select values
* Run prettier
* Use defaultValue in Select field
---------
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-01-11 11:23:38 +01:00
Alex Khomenko
99f7110e39
React Hook Form: Update to v 7.49.2 ( #79493 )
...
* Update RHF to latest
* Update Form types
* Fix alerting types
* Fix correlations types
* Update tests
* Fix tests
* Update LabelsField.tsx to use InputControl
* Update RuleEditorGrafanaRules.test.tsx
* Update RuleEditorCloudRules.test.tsx
* Only require one label
* Update RuleEditorRecordingRule.test.tsx
* Fix labels rules
* Revert
* Remove RHF from ignore rules
* Revert
* update form validation for overriding group timings
* Fix changes to correlations
* Fix auth type errors
---------
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-01-05 12:41:49 +02:00
Alex Khomenko
fde8a00721
SSO: Add GitHub auth configuration page ( #78933 )
...
* Setup route
* Set up the page
* Add orgs
* Load settings
* Make API call
* Remove log
* Add FormPrompt
* Update types
* Add tests
* Fix tests
* Cleanup
* Load settings
* Fix naming
* Switch to PUT endpoint
* Switch to CSS object
* Setup fields
* Render fields
* Extend types
* Dynamic provider page
* Rename page
* Filter out non-implemented providers
* Fix types
* Add teamIDs validation
* Update tests
* Fix URL
* Update name
* Send full data
* Add password input
* Update test
* Expand default values
* Fix test
* Use SecretInput
* Remove dev mode for the feature toggle
* Convert fields
* Remove fieldFormat utils
* Update fields logic
* Update tests
* Update betterer
* SSO: Make client secret not required
* Update field name
* Revert feature toggle to dev mode
* Use provider endpoint
* Fix form state check
* Update tests
* Fix URL redirect after form submit
* Mock locationService
* Separate Form component
* Fix trailing slash
2023-12-21 15:26:42 +02:00
Alex Khomenko
1141dd62ab
SSO: Display provider list ( #78472 )
...
* Load providers
* Display providers
* Rename
* Remove redundant styles
* Update Grid import
* Return data in camelCase from the OAuth fb strategy
* Update cards and remove empty state
* Add comment
* Add feature toggle
* Update betterer
* Add empty state
* Fix configPath
* Update betterer
* Revert backend changes
* Remove newline
* Enable auth routes
---------
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2023-11-29 19:09:36 +02:00
Eric Leijonmarck
6b9f51c209
Refactor: Move LDAP auth config frontend registration to OSS ( #73941 )
...
* Refactor: move ldap auth registration to OSS
* Update public/app/features/auth-config/types.ts
* fix: permission settingswrite
* fix: types for typescript find()
* fix: linting
* fix: removed types that are implicit
* added text for no available authentication providers
* refactor: make use of ldapenabled instead for minimal changes
2023-08-29 14:49:00 +01:00
Eric Leijonmarck
5d99fdeb46
SAML: Add onclick action to providercard if the provider is configured ( #72734 )
...
* adds missign onclick for provider card
* simplified version
2023-08-03 17:40:11 +02:00
Eric Leijonmarck
d28bb03ebc
SAML: UI update of providercards ( #71838 )
...
* UI update of providercards
* fixed the naming of the providercard and margin to top
* fix: add settings to the AuthConfigPage for the provider card to get the displayname
* removes the ldap name check
* refactor to account for the configured/enabled sitation and removed the LDAP name check
* added type to authstatus instead
* remove the settings from initiation of the component
* added name to the type
* removed the configAuth
* do not export all types
* add back types
2023-08-01 16:15:48 +01:00
Eric Leijonmarck
b4c4b512d7
SAML: Move type definitions to auth config to change ownership to authnz team ( #72463 )
...
* refactor: move file for ownership
* deleted the file
2023-08-01 09:45:41 +01:00
Eric Leijonmarck
649cd08a19
SAML: Remove mention of config found in inifile ( #71837 )
...
* remove config found in inifile
* remove the text from the provider card
* remove description that contained the notion of inifile
2023-07-27 15:34:27 +01:00
Alexander Zobnin
a2442ef620
Auth: Don't show LDAP CTA card ( #72121 )
2023-07-24 12:56:18 +02:00
Ashley Harrison
9852b24d61
Chore: Upgrade prettier to v3 ( #71764 )
...
* Update dependency prettier to v3 (#71586 )
* Update dependency prettier to v3
* run prettier
* ignore prettier update in legacy select scss
* update command line arg
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
* unplug prettier
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-17 15:58:22 +01:00
Ashley Harrison
5ca382c88a
Revert "Update dependency prettier to v3 ( #71586 )" ( #71755 )
...
This reverts commit 2e8cd1c021
.
2023-07-17 14:46:15 +01:00
renovate[bot]
2e8cd1c021
Update dependency prettier to v3 ( #71586 )
...
* Update dependency prettier to v3
* run prettier
* ignore prettier update in legacy select scss
* update command line arg
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-17 09:19:27 +01:00
Eric Leijonmarck
59be79b5f4
SAML UI: metric for provider card clicked ( #70894 )
...
provider card clicked
2023-06-29 15:42:52 +01:00
Alexander Zobnin
c731d9fe2c
Authentication UI: Add metric for the first usage ( #69779 )
2023-06-09 15:26:32 +02:00
Eric Leijonmarck
09d7d25c9f
SAML UI: Adds documentation link to the Authentication UI ( #68062 )
...
* adds documentation link to the saml ui
* add correct link
* add link to docuemntation
* add documentation etxt
* documentation update wordings
2023-05-12 12:10:19 +01:00
Eric Leijonmarck
9b10664560
SAML UI: configuration file tooltip info ( #67861 )
...
* adds icon and text to the card if enabled in inifile
* make use of verbose settings
* add state to enabledInIniFile
* rename to configFound and removal of default values
2023-05-11 14:08:37 +01:00
Alexander Zobnin
93b461bd96
Authentication UI: Remove auth settings ( #67647 )
2023-05-02 15:05:19 +03:00
Alexander Zobnin
a1b9eb1eea
Authentication UI: Hide empty settings section ( #67407 )
2023-04-28 08:58:01 +02:00
Alexander Zobnin
28a641aa50
Authentication UI: Fix permissions for saving settings ( #67086 )
...
Fix permissions for saving settings
2023-04-24 09:57:05 +02:00
Alexander Zobnin
7476219b0c
SAML: Configuration UI ( #64054 )
...
* Add initial authentication config page skeleton
* Add initial SAML config page WIP
* Add few more pages
* Add connect to IdP page
* Assertion mappings page stub and url params
* Able to save settings
* Some tweaks for authentication page
* Tweak behaviour
* Tweak provider name
* Move SAML config pages to enterprise
* minor refactor
* Able to reset settings
* Configure key and cert from UI
* Refactor WIP
* Tweak styles
* Optional save button
* Some tweaks for the page
* Don't show info popup when save settings
* Improve key/cert validation
* Fetch provider status and display on auth page
* Add settings list to the auth page
* Show call to action card if no auth configured
* clean up
* Show authentication page only if SAML available
* Add access control for SSO config page
* Add feature toggle for auth config UI
* Add code owners for auth config page
* Auth config UI disabled by default
* Fix feature toggle check
* Apply suggestions from review
* Refactor: use forms for steps
* Clean up
* Improve authentication page loading
* Fix CTA link
* Minor tweaks
* Fix page route
* Fix formatting
* Fix generated code formatting
2023-04-13 16:07:43 +02:00