MM-19872: Update dependencies for enterprise implementation of new SAML2 golib. (#13298)

* Update dependencies for enterprise implementation of new SAML2 golib.

* add indirect
Этот коммит содержится в:
Scott Bishel
2019-12-19 08:27:34 -07:00
коммит произвёл GitHub
родитель 155ada09fb
Коммит 3bccc03df3
53 изменённых файлов: 7563 добавлений и 0 удалений

19
vendor/github.com/mattermost/gosaml2/attribute.go сгенерированный поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,19 @@
package saml2
import "github.com/mattermost/gosaml2/types"
// Values is a convenience wrapper for a map of strings to Attributes, which
// can be used for easy access to the string values of Attribute lists.
type Values map[string]types.Attribute
// Get is a safe method (nil maps will not panic) for returning the first value
// for an attribute at a key, or the empty string if none exists.
func (vals Values) Get(k string) string {
if vals == nil {
return ""
}
if v, ok := vals[k]; ok && len(v.Values) > 0 {
return string(v.Values[0].Value)
}
return ""
}