mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
parent
b8f75b2b96
commit
06160d35e9
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/crewjam/saml"
|
||||
"github.com/fleetdm/fleet/v4/pkg/file"
|
||||
"github.com/fleetdm/fleet/v4/pkg/optjson"
|
||||
"github.com/fleetdm/fleet/v4/server/authz"
|
||||
|
|
@ -720,6 +721,8 @@ func (svc *Service) InitiateMDMAppleSSO(ctx context.Context, initiator string) (
|
|||
if err != nil {
|
||||
return "", 0, "", ctxerr.Wrap(ctx, err, "failed to create provider from metadata")
|
||||
}
|
||||
// Request the NameID as an email address instead of an unknown type
|
||||
samlProvider.AuthnNameIDFormat = saml.EmailAddressNameIDFormat
|
||||
|
||||
// originalURL is unused in the Setup Experience initiated MDM flow
|
||||
// however because we need slightly different behavior for account driven
|
||||
|
|
|
|||
Loading…
Reference in a new issue