mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Update expression-based.adoc
Removed a duplicate paragraph that was phrased a bit differently.
This commit is contained in:
parent
7dd5cc6082
commit
2b36499700
@ -396,10 +396,6 @@ fun doSomething(contact: Contact?)
|
|||||||
----
|
----
|
||||||
====
|
====
|
||||||
|
|
||||||
Here we are accessing another built-in expression, `authentication`, which is the `Authentication` stored in the security context.
|
|
||||||
You can also access its "principal" property directly, using the expression `principal`.
|
|
||||||
The value will often be a `UserDetails` instance, so you might use an expression like `principal.username` or `principal.enabled`.
|
|
||||||
|
|
||||||
.[[el-pre-post-annotations-post]]
|
.[[el-pre-post-annotations-post]]
|
||||||
Here, we access another built-in expression, `authentication`, which is the `Authentication` stored in the security context.
|
Here, we access another built-in expression, `authentication`, which is the `Authentication` stored in the security context.
|
||||||
You can also access its `principal` property directly, by using the `principal` expression.
|
You can also access its `principal` property directly, by using the `principal` expression.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user