XML Element/Attribute | Explanation |
---|---|
samlp:AuthnRequest | Standard element to represent a SAML AuthnRequest |
ID | Unique value representing the ID of the request. When IDP responds, the assertion will have an attribute inResponseTo with the same value as this ID |
Protocol-Binding | Represents how the HTTP request for AuthnRequest is sent. The sample uses "Redirect" binding which means the payload is sent as query par |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func readBookDataset(protoInFile string) error { | |
var rLen uint32 | |
var book typedefs.Book | |
r, err := os.Open(protoInFile) | |
if err != nil { | |
return err | |
} | |
defer r.Close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func readBookDatasetOptimized(protoInFile string) error { | |
var rLen uint32 | |
var book typedefs.Book | |
//Buffer to read bytes for decoding | |
var buf bytes.Buffer | |
done := false | |
//Fixed Length Buffer for reading from the file | |
rbuf := make([]byte, 1024) | |
r, err := os.Open(protoInFile) | |
if err != nil { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" | |
ID="_423459839113526641" IssueInstant="2021-07-19T20:09:18+08:00" | |
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" | |
Version="2.0"> | |
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"> | |
http://sp.samltools.com | |
</saml:Issuer> | |
</samlp:AuthnRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<saml:Attribute | |
Name="email" | |
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> | |
<saml:AttributeValue xsi:type="xs:string"> | |
[email protected] | |
</saml:AttributeValue> | |
</saml:Attribute> |
OlderNewer