Commit c31a3ed9 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

refactor: don't use KeyshareAttribute from scheme xml

parent a46bb870
......@@ -20,9 +20,10 @@ var _ Handler = (*keyshareEnrollmentHandler)(nil)
func (h *keyshareEnrollmentHandler) RequestIssuancePermission(request irma.IssuanceRequest, ServerName irma.TranslatedString, callback PermissionHandler) {
// Fetch the username from the credential request and save it along with the scheme manager
smi := request.Credentials[0].CredentialTypeID.IssuerIdentifier().SchemeManagerIdentifier()
attr := irma.NewAttributeTypeIdentifier(h.client.Configuration.SchemeManagers[smi].KeyshareAttribute)
h.kss.Username = request.Credentials[0].Attributes[attr.Name()]
for _, attr := range request.Credentials[0].Attributes {
h.kss.Username = attr
// Do the issuance
callback(true, nil)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment