---
title: Assertion issuer not trusted
summary: Code: assertionuntrusted
section: errors
order: 9
---
# Assertion issuer not trusted

Code: `assertion_untrusted`

- HTTP status: 400 Bad Request
- OAuth `error`: `invalid_grant`
- Shown to the end user: Assertion issuer not trusted

Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.

## Cause

The assertion's issuer or audience is not a trusted issuer of this realm, or not allowed for this subject.

## Fix

Register the issuer as a trusted issuer (with its allowed subjects), or fix iss and aud.

[All error codes](/errors/index.md)
