mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
issue/18405
Clear-Tenant-Cache
dev
rel-8.0
rel-7.4
denizdemirkan/L
onurdeniz/L
sinan-update-doc
openiddict-5
update-latest-versions-7.4.3
datatables-extensions.js
Asp.Versioning.Mvc
IdentitySession
vs-int-issue-#2760
IInjectPropertiesService
8.0-prevent-stackoverflow-blazor
auto-merge/rel-7-4/2276
maliming-patch-1
salihozkara/ImproveBundleFile
remove-deprecateds
auto-merge/rel-7-4/2263
salihozkara/fixDatePicker
update-doc
auto-merge/rel-7-4/2239
rel-7.3
devnot-demo
updating-angular-packages
EngincanV/maui-docs
rel-7.2
rel-7.1
rel-7.0
rel-6.0
rel-5.0
rel-5.3
rel-5.2
rel-2.4
rel-2.5
rel-2.6
rel-2.7
rel-2.9
rel-2.8
rel-5.1
rel-4.4
document-index-backgroundjob
InboxProcessor-OutboxSender
rel-4.3
maliming/ShouldValidatePredicates
rel-4.2
maliming/RequestLocalizationOptionsProvider
rel-4.1
rel-4.0
enisn/blobstoring-bunnycdn
feat/typescript-on-mvc
rel-3.3
maliming/ParameterApiDescriptionModel
rel-3.2
rel-3.1
rel-3.0
rel-2.3
rel-2.2
rel-2.1
rel-2.0
rel-1.1
rel-1.0
4.4.0
3.0.0
2.8.0
2.4.0
v1.1.1
v0.6.2
0.10.0
0.11.0
0.12.0
0.13.0
0.14.0
0.15.0
0.16.0
0.17.0.0
0.18.0
0.18.1
0.19.0
0.20.0
0.20.1
0.21.0
0.22.0
0.3.7
0.4.0
0.4.1
0.4.1.1
0.5.0
0.6.0
0.6.1
0.7.0
0.7.1
0.8.0
0.9.0
1.0.0
1.0.2
1.1.0
1.1.1
1.1.2
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.3
2.3.0
2.4.1
2.5.0
2.6.0
2.6.1
2.6.2
2.7.0
2.9.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.1.0
3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0.3.2.1
v0.3.2.2
v0.3.3
v0.3.3.1
v0.3.3.2
v0.3.4
v0.3.5
v0.3.6
${ noResults }
736 B
736 B
Blazor UI: Current User
ICurrentUser service is used to obtain information about the currently authenticated user. Inject the ICurrentUser into any component/page and use its properties and methods.
Example: Show username & email on a page
@page "/"
@using Volo.Abp.Users
@inject ICurrentUser CurrentUser
@if (CurrentUser.IsAuthenticated)
{
<p>Welcome @CurrentUser.UserName</p>
}
If you (directly or indirectly) derived your component from the
AbpComponentBase, you can directly use the baseCurrentUserproperty.
ICurrentUser provides Id, Name, SurName, Email, Roles and some other properties.
See the Server Side Current User service for more information.