assertionUID returns the value of the uid attribute DefaultAssertionMaker sets from Session.UserName.
(assertion *Assertion)
| 40 | // assertionUID returns the value of the uid attribute DefaultAssertionMaker |
| 41 | // sets from Session.UserName. |
| 42 | func assertionUID(assertion *Assertion) string { |
| 43 | for _, statement := range assertion.AttributeStatements { |
| 44 | for _, attr := range statement.Attributes { |
| 45 | if attr.FriendlyName == "uid" && len(attr.Values) == 1 { |
| 46 | return attr.Values[0].Value |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | return "" |
| 51 | } |
| 52 | |
| 53 | // postForm posts the hidden fields of form to its action and returns the |
| 54 | // parsed request. |
no outgoing calls
no test coverage detected