v1.5.1
The default in-memory attribute store now uses a LRU caching process and expires items after 1-hour of inactivity.
This is currently hard-coded in the compiled executable, however this is configurable when using the sp
package using the following example:
root, _ := url.Parse("https://localhost:8080")
store := sp.NewMemoryAttributeStore(time.Hour * 8)
serviceProvider, err := sp.NewServiceProvider("./samlsp.crt", "./samlsp.key", root, sp.WithMetadataURL("https://mocksaml.com/api/saml/metadata"), sp.WithAttributeStore(store))