diff --git a/api/openapi.yaml b/api/openapi.yaml index 6be919d..139a512 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -688,7 +688,7 @@ components: properties: result: type: string - enum: [pass, fail, none, neutral, softfail, temperror, permerror] + enum: [pass, fail, none, neutral, softfail, temperror, permerror, declined] description: Authentication result example: "pass" domain: diff --git a/pkg/analyzer/authentication.go b/pkg/analyzer/authentication.go index f18bbb7..e89cb77 100644 --- a/pkg/analyzer/authentication.go +++ b/pkg/analyzer/authentication.go @@ -566,7 +566,7 @@ func (a *AuthenticationAnalyzer) CalculateAuthenticationScore(results *api.Authe switch results.Bimi.Result { case api.AuthResultResultPass: score += 10 - case api.AuthResultResultNone: + case api.AuthResultResultDeclined: score += 5 default: // fail score += 0 diff --git a/pkg/analyzer/scoring.go b/pkg/analyzer/scoring.go index 84756a7..ae91d4f 100644 --- a/pkg/analyzer/scoring.go +++ b/pkg/analyzer/scoring.go @@ -30,7 +30,7 @@ func ScoreToGrade(score int) string { switch { case score > 100: return "A+" - case score > 95: + case score >= 95: return "A" case score >= 85: return "B" diff --git a/web/src/lib/components/AuthenticationCard.svelte b/web/src/lib/components/AuthenticationCard.svelte index c14d4ec..344495c 100644 --- a/web/src/lib/components/AuthenticationCard.svelte +++ b/web/src/lib/components/AuthenticationCard.svelte @@ -22,6 +22,8 @@ case "softfail": case "neutral": return "text-warning"; + case "declined": + return "text-info"; case "none": return noneIsFail ? "text-danger" : "text-muted"; default: @@ -40,6 +42,8 @@ return "bi-exclamation-circle-fill"; case "missing": return "bi-dash-circle-fill"; + case "declined": + return "bi-dash-circle"; case "none": return noneIsFail ? "bi-x-circle-fill" : "bi-question-circle"; default: