We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fa828 commit d63bd58Copy full SHA for d63bd58
lib/saml/forgerock_client.go
@@ -114,10 +114,10 @@ func (c *forgerockSamlClient) auth() error {
114
// try push, if fail ... try code, if fail ... try no mfa?
115
c.MfaType = MfaTypePush
116
if err := c.auth(); err != nil {
117
- if err.Error() == "auth status code 401" {
+ if strings.HasPrefix(err.Error(), "auth status code 401") {
118
c.MfaType = MfaTypeCode
119
120
121
// this may or may not be a good idea
122
c.MfaType = MfaTypeNone
123
return c.auth()
0 commit comments