fleet/server/service/contract/sessions.go
Victor Lyuboslavsky df71307eeb
Added scim/details endpoint (#28007)
For #27281

This PR adds `/api/{version}/fleet/scim/details` endpoint, along with
some frontend fixes.

# Checklist for submitter
- [x] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [x] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
- [x] Added/updated automated tests
- [x] A detailed QA plan exists on the associated ticket (if it isn't
there, work with the product group's QA engineer to add it)
- [x] Manual QA for all new/changed functionality
2025-04-10 14:08:45 -05:00

11 lines
587 B
Go

package contract
type LoginRequest struct {
Email string `json:"email"`
Password string `json:"password"`
// If false/omitted, users that require email verification (Fleet MFA) to log in will fail to log in, rather than
// sending an MFA email, since the MFA email will land the user in a browser and complete the login there, rather
// than e.g. in the CLI that initiated the login. As with SSO, the expected behavior for users with MFA is to log
// in with MFA, then grab an API token for use elsewhere.
SupportsEmailVerification bool `json:"supports_email_verification"`
}