Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
90b3a53b
Commit
90b3a53b
authored
Oct 04, 2017
by
Sietse Ringers
Browse files
Add stub for irma_configuration downloading
parent
6784df96
Changes
3
Hide whitespace changes
Inline
Side-by-side
configstore.go
View file @
90b3a53b
...
...
@@ -266,3 +266,7 @@ func (store *ConfigurationStore) Copy(source string, parse bool) error {
}
return
nil
}
func
(
store
*
ConfigurationStore
)
Download
(
set
*
IrmaIdentifierSet
)
error
{
return
nil
}
messages.go
View file @
90b3a53b
...
...
@@ -98,6 +98,8 @@ const (
ErrorApi
=
ErrorType
(
"api"
)
// Server returned unexpected or malformed response
ErrorServerResponse
=
ErrorType
(
"serverResponse"
)
// Error during downloading of credential type, issuer, or public keys
ErrorConfigurationStoreDownload
=
ErrorType
(
"configurationStoreDownload"
)
)
func
(
e
*
SessionError
)
Error
()
string
{
...
...
session.go
View file @
90b3a53b
...
...
@@ -163,6 +163,14 @@ func (session *session) start() {
}
}
if
err
=
session
.
credManager
.
ConfigurationStore
.
Download
(
session
.
irmaSession
.
Identifiers
());
err
!=
nil
{
session
.
Handler
.
Failure
(
session
.
Action
,
&
SessionError
{
ErrorType
:
ErrorConfigurationStoreDownload
,
Err
:
err
},
)
return
}
missing
:=
session
.
credManager
.
CheckSatisfiability
(
session
.
irmaSession
.
DisjunctionList
())
if
len
(
missing
)
>
0
{
session
.
Handler
.
UnsatisfiableRequest
(
session
.
Action
,
missing
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment