Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions assemblies/assembly-authentication-troubleshooting.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:_mod-docs-content-type: ASSEMBLY

[id="authentication-troubleshooting"]

= Troubleshooting authentication issues

Learn how to troubleshoot authentication issues.

include::modules/authentication/proc-reducing-token-size.adoc[leveloffset=+1]
2 changes: 2 additions & 0 deletions assemblies/assembly-enabling-authentication.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ include::modules/authentication/proc-enabling-user-authentication-with-github.ad

include::modules/authentication/proc-enabling-user-authentication-with-microsoft-azure.adoc[leveloffset=+1]

include::assembly-authentication-troubleshooting.adoc[leveloffset=+1]

20 changes: 20 additions & 0 deletions modules/authentication/proc-reducing-token-size.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:_mod-docs-content-type: PROCEDURE

[id="reducing-token-size"]
= Reducing the size of issued tokens

By default, the authentication backend issues user identity tokens with ownership references of the user in the `ent` claim of the JSON Web Token (JWT) payload.
This makes it easier for consumers of the token to resolve ownership of the user.
However, depending on the structure of your organization and how you resolve ownership claims, the tokens can grow large and cause HTTP errors that prevent you from accessing parts of {product-very-short}.
Use the `omitIdentityTokenOwnershipClaim` flag to remove the `ent` claim from tokens and reduce their size.

.Procedure

. In the `{my-app-config-file}` file, set `omitIdentityTokenOwnershipClaim` to `true` as follows:
+
[source,yaml]
----
auth:
omitIdentityTokenOwnershipClaim: true
----