// itemToSAMLConnector attempts to decode the supplied `backend.Item` as
// a saml connector resource.
itemToSAMLConnector attempts to decode the supplied `backend.Item` as
a saml connector resource.
// itemToSAMLConnector attempts to decode the supplied ` backend . Item ` as // a saml connector resource .
func itemToSAMLConnector(item backend.Item) (services.SAMLConnector, error) {
	connector, err := services.GetSAMLConnectorMarshaler().UnmarshalSAMLConnector(
		item.Value,
		services.WithResourceID(item.ID),
		services.WithExpires(item.Expires),
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return connector, nil
}
func itemToSAMLConnector ( item backend . Item ) ( services . SAMLConnector , error ) { connector , err := services . GetSAMLConnectorMarshaler ( ) . UnmarshalSAMLConnector ( item . Value , services . WithResourceID ( item . ID ) , services . WithExpires ( item . Expires ) , ) if err != nil { return nil , trace . Wrap ( err ) } return connector , nil }
itemToSAMLConnector attempts to decode the supplied `backend.Item` as
a saml connector resource.
itemToSAMLConnector attempts to decode the supplied ` backend . Item ` as a saml connector resource .