You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -182,6 +179,7 @@ public class RolesAugmentor implements SecurityIdentityAugmentor {
182
179
}
183
180
}
184
181
----
182
+
<1> Augment the security identity. See the <<security-augmentation-request-context>> section for an example of how to augment the identity in a blocking mode.
185
183
186
184
Here is another example showing how to use the client certificate available in the current xref:security-authentication-mechanisms.adoc#mutual-tls[mutual TLS (mTLS) authentication] request to add more roles:
187
185
@@ -239,6 +237,9 @@ If more than one custom `SecurityIdentityAugmentor` is registered then they will
239
237
You can enforce the order by implementing a default `SecurityIdentityAugmentor#priority` method. Augmentors with higher priorities will be invoked first.
240
238
====
241
239
240
+
[[security-augmentation-request-context]]
241
+
=== Activate Request Context
242
+
242
243
By default, the request context is not activated when augmenting the security identity, this means that if you want to use for example Hibernate
243
244
that mandates a request context, you will have a `jakarta.enterprise.context.ContextNotActiveException`.
0 commit comments