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
25829ac5
Commit
25829ac5
authored
Feb 14, 2019
by
Sietse Ringers
Browse files
Expand log message when requestor uses wrong authentication method
parent
d0e64d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/requestorserver/conf.go
View file @
25829ac5
...
...
@@ -182,7 +182,8 @@ func (conf *Configuration) initialize() error {
for
name
,
requestor
:=
range
conf
.
Requestors
{
authenticator
,
ok
:=
authenticators
[
requestor
.
AuthenticationMethod
]
if
!
ok
{
return
errors
.
Errorf
(
"Requestor %s has unsupported authentication type"
,
name
)
return
errors
.
Errorf
(
"Requestor %s has unsupported authentication type %s (supported methods: %s, %s, %s)"
,
name
,
requestor
.
AuthenticationMethod
,
AuthenticationMethodToken
,
AuthenticationMethodHmac
,
AuthenticationMethodPublicKey
)
}
if
err
:=
authenticator
.
Initialize
(
name
,
requestor
);
err
!=
nil
{
return
err
...
...
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