Show / Hide Table of Contents

Class TokenController

Inheritance
object
ControllerBase
Controller
AbpController
AbpOpenIdDictControllerBase
TokenController
Implements
IActionFilter
IAsyncActionFilter
IFilterMetadata
IDisposable
IAvoidDuplicateCrossCuttingConcerns
Inherited Members
AbpOpenIdDictControllerBase.GetOpenIddictServerRequestAsync(HttpContext)
AbpOpenIdDictControllerBase.GetResourcesAsync(ImmutableArray<string>)
AbpOpenIdDictControllerBase.HasFormValueAsync(string)
AbpOpenIdDictControllerBase.PreSignInCheckAsync(IdentityUser)
AbpOpenIdDictControllerBase.SignInManager
AbpOpenIdDictControllerBase.UserManager
AbpOpenIdDictControllerBase.ApplicationManager
AbpOpenIdDictControllerBase.AuthorizationManager
AbpOpenIdDictControllerBase.ScopeManager
AbpOpenIdDictControllerBase.TokenManager
AbpOpenIdDictControllerBase.OpenIddictClaimsPrincipalManager
AbpOpenIdDictControllerBase.AbpClaimsPrincipalFactory
AbpOpenIdDictControllerBase.AbpClaimsPrincipalFactoryOptions
AbpController.ValidateModel()
AbpController.CreateLocalizer()
AbpController.RedirectSafelyAsync(string, string)
AbpController.GetRedirectUrlAsync(string, string)
AbpController.NormalizeReturnUrlAsync(string)
AbpController.GetAppHomeUrlAsync()
AbpController.LazyServiceProvider
AbpController.ServiceProvider
AbpController.UnitOfWorkManager
AbpController.ObjectMapperContext
AbpController.ObjectMapper
AbpController.GuidGenerator
AbpController.LoggerFactory
AbpController.Logger
AbpController.CurrentUser
AbpController.CurrentTenant
AbpController.AuthorizationService
AbpController.CurrentUnitOfWork
AbpController.Clock
AbpController.ModelValidator
AbpController.FeatureChecker
AbpController.AppUrlProvider
AbpController.StringLocalizerFactory
AbpController.L
AbpController.LocalizationResource
AbpController.AppliedCrossCuttingConcerns
Controller.View()
Controller.View(string)
Controller.View(object)
Controller.View(string, object)
Controller.PartialView()
Controller.PartialView(string)
Controller.PartialView(object)
Controller.PartialView(string, object)
Controller.ViewComponent(string)
Controller.ViewComponent(Type)
Controller.ViewComponent(string, object)
Controller.ViewComponent(Type, object)
Controller.Json(object)
Controller.Json(object, object)
Controller.OnActionExecuting(ActionExecutingContext)
Controller.OnActionExecuted(ActionExecutedContext)
Controller.OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Controller.Dispose()
Controller.Dispose(bool)
Controller.ViewData
Controller.TempData
Controller.ViewBag
ControllerBase.StatusCode(int)
ControllerBase.StatusCode(int, object)
ControllerBase.Content(string)
ControllerBase.Content(string, string)
ControllerBase.Content(string, string, Encoding)
ControllerBase.Content(string, MediaTypeHeaderValue)
ControllerBase.NoContent()
ControllerBase.Ok()
ControllerBase.Ok(object)
ControllerBase.Redirect(string)
ControllerBase.RedirectPermanent(string)
ControllerBase.RedirectPreserveMethod(string)
ControllerBase.RedirectPermanentPreserveMethod(string)
ControllerBase.LocalRedirect(string)
ControllerBase.LocalRedirectPermanent(string)
ControllerBase.LocalRedirectPreserveMethod(string)
ControllerBase.LocalRedirectPermanentPreserveMethod(string)
ControllerBase.RedirectToAction()
ControllerBase.RedirectToAction(string)
ControllerBase.RedirectToAction(string, object)
ControllerBase.RedirectToAction(string, string)
ControllerBase.RedirectToAction(string, string, object)
ControllerBase.RedirectToAction(string, string, string)
ControllerBase.RedirectToAction(string, string, object, string)
ControllerBase.RedirectToActionPreserveMethod(string, string, object, string)
ControllerBase.RedirectToActionPermanent(string)
ControllerBase.RedirectToActionPermanent(string, object)
ControllerBase.RedirectToActionPermanent(string, string)
ControllerBase.RedirectToActionPermanent(string, string, string)
ControllerBase.RedirectToActionPermanent(string, string, object)
ControllerBase.RedirectToActionPermanent(string, string, object, string)
ControllerBase.RedirectToActionPermanentPreserveMethod(string, string, object, string)
ControllerBase.RedirectToRoute(string)
ControllerBase.RedirectToRoute(object)
ControllerBase.RedirectToRoute(string, object)
ControllerBase.RedirectToRoute(string, string)
ControllerBase.RedirectToRoute(string, object, string)
ControllerBase.RedirectToRoutePreserveMethod(string, object, string)
ControllerBase.RedirectToRoutePermanent(string)
ControllerBase.RedirectToRoutePermanent(object)
ControllerBase.RedirectToRoutePermanent(string, object)
ControllerBase.RedirectToRoutePermanent(string, string)
ControllerBase.RedirectToRoutePermanent(string, object, string)
ControllerBase.RedirectToRoutePermanentPreserveMethod(string, object, string)
ControllerBase.RedirectToPage(string)
ControllerBase.RedirectToPage(string, object)
ControllerBase.RedirectToPage(string, string)
ControllerBase.RedirectToPage(string, string, object)
ControllerBase.RedirectToPage(string, string, string)
ControllerBase.RedirectToPage(string, string, object, string)
ControllerBase.RedirectToPagePermanent(string)
ControllerBase.RedirectToPagePermanent(string, object)
ControllerBase.RedirectToPagePermanent(string, string)
ControllerBase.RedirectToPagePermanent(string, string, string)
ControllerBase.RedirectToPagePermanent(string, string, object, string)
ControllerBase.RedirectToPagePreserveMethod(string, string, object, string)
ControllerBase.RedirectToPagePermanentPreserveMethod(string, string, object, string)
ControllerBase.File(byte[], string)
ControllerBase.File(byte[], string, bool)
ControllerBase.File(byte[], string, string)
ControllerBase.File(byte[], string, string, bool)
ControllerBase.File(byte[], string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(byte[], string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.File(byte[], string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(byte[], string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.File(Stream, string)
ControllerBase.File(Stream, string, bool)
ControllerBase.File(Stream, string, string)
ControllerBase.File(Stream, string, string, bool)
ControllerBase.File(Stream, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(Stream, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.File(Stream, string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(Stream, string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.File(string, string)
ControllerBase.File(string, string, bool)
ControllerBase.File(string, string, string)
ControllerBase.File(string, string, string, bool)
ControllerBase.File(string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.File(string, string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.File(string, string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.PhysicalFile(string, string)
ControllerBase.PhysicalFile(string, string, bool)
ControllerBase.PhysicalFile(string, string, string)
ControllerBase.PhysicalFile(string, string, string, bool)
ControllerBase.PhysicalFile(string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.PhysicalFile(string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.PhysicalFile(string, string, string, DateTimeOffset?, EntityTagHeaderValue)
ControllerBase.PhysicalFile(string, string, string, DateTimeOffset?, EntityTagHeaderValue, bool)
ControllerBase.Unauthorized()
ControllerBase.Unauthorized(object)
ControllerBase.NotFound()
ControllerBase.NotFound(object)
ControllerBase.BadRequest()
ControllerBase.BadRequest(object)
ControllerBase.BadRequest(ModelStateDictionary)
ControllerBase.UnprocessableEntity()
ControllerBase.UnprocessableEntity(object)
ControllerBase.UnprocessableEntity(ModelStateDictionary)
ControllerBase.Conflict()
ControllerBase.Conflict(object)
ControllerBase.Conflict(ModelStateDictionary)
ControllerBase.Problem(string, string, int?, string, string)
ControllerBase.Problem(string, string, int?, string, string, IDictionary<string, object>)
ControllerBase.ValidationProblem(ValidationProblemDetails)
ControllerBase.ValidationProblem(ModelStateDictionary)
ControllerBase.ValidationProblem()
ControllerBase.ValidationProblem(string, string, int?, string, string, ModelStateDictionary)
ControllerBase.ValidationProblem(string, string, int?, string, string, ModelStateDictionary, IDictionary<string, object>)
ControllerBase.Created()
ControllerBase.Created(string, object)
ControllerBase.Created(Uri, object)
ControllerBase.CreatedAtAction(string, object)
ControllerBase.CreatedAtAction(string, object, object)
ControllerBase.CreatedAtAction(string, string, object, object)
ControllerBase.CreatedAtRoute(string, object)
ControllerBase.CreatedAtRoute(object, object)
ControllerBase.CreatedAtRoute(string, object, object)
ControllerBase.Accepted()
ControllerBase.Accepted(object)
ControllerBase.Accepted(Uri)
ControllerBase.Accepted(string)
ControllerBase.Accepted(string, object)
ControllerBase.Accepted(Uri, object)
ControllerBase.AcceptedAtAction(string)
ControllerBase.AcceptedAtAction(string, string)
ControllerBase.AcceptedAtAction(string, object)
ControllerBase.AcceptedAtAction(string, string, object)
ControllerBase.AcceptedAtAction(string, object, object)
ControllerBase.AcceptedAtAction(string, string, object, object)
ControllerBase.AcceptedAtRoute(object)
ControllerBase.AcceptedAtRoute(string)
ControllerBase.AcceptedAtRoute(string, object)
ControllerBase.AcceptedAtRoute(object, object)
ControllerBase.AcceptedAtRoute(string, object, object)
ControllerBase.Challenge()
ControllerBase.Challenge(params string[])
ControllerBase.Challenge(AuthenticationProperties)
ControllerBase.Challenge(AuthenticationProperties, params string[])
ControllerBase.Forbid()
ControllerBase.Forbid(params string[])
ControllerBase.Forbid(AuthenticationProperties)
ControllerBase.Forbid(AuthenticationProperties, params string[])
ControllerBase.SignIn(ClaimsPrincipal)
ControllerBase.SignIn(ClaimsPrincipal, string)
ControllerBase.SignIn(ClaimsPrincipal, AuthenticationProperties)
ControllerBase.SignIn(ClaimsPrincipal, AuthenticationProperties, string)
ControllerBase.SignOut()
ControllerBase.SignOut(AuthenticationProperties)
ControllerBase.SignOut(params string[])
ControllerBase.SignOut(AuthenticationProperties, params string[])
ControllerBase.TryUpdateModelAsync<TModel>(TModel)
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string)
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider)
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string, params Expression<Func<TModel, object>>[])
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string, Func<ModelMetadata, bool>)
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, params Expression<Func<TModel, object>>[])
ControllerBase.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, Func<ModelMetadata, bool>)
ControllerBase.TryUpdateModelAsync(object, Type, string)
ControllerBase.TryUpdateModelAsync(object, Type, string, IValueProvider, Func<ModelMetadata, bool>)
ControllerBase.TryValidateModel(object)
ControllerBase.TryValidateModel(object, string)
ControllerBase.HttpContext
ControllerBase.Request
ControllerBase.Response
ControllerBase.RouteData
ControllerBase.ModelState
ControllerBase.ControllerContext
ControllerBase.MetadataProvider
ControllerBase.ModelBinderFactory
ControllerBase.Url
ControllerBase.ObjectValidator
ControllerBase.ProblemDetailsFactory
ControllerBase.User
ControllerBase.Empty
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.OpenIddict.Controllers
Assembly: Volo.Abp.OpenIddict.AspNetCore.dll
Syntax
[Route("connect/token")]
[IgnoreAntiforgeryToken]
[ApiExplorerSettings(IgnoreApi = true)]
public class TokenController : AbpOpenIdDictControllerBase, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable, IAvoidDuplicateCrossCuttingConcerns

Constructors

TokenController()

Declaration
public TokenController()

Properties

AbpIdentityOptions

Declaration
protected IOptions<AbpIdentityOptions> AbpIdentityOptions { get; }
Property Value
Type Description
IOptions<AbpIdentityOptions>

IdentityDynamicClaimsPrincipalContributorCache

Declaration
protected IdentityDynamicClaimsPrincipalContributorCache IdentityDynamicClaimsPrincipalContributorCache { get; }
Property Value
Type Description
IdentityDynamicClaimsPrincipalContributorCache

IdentityOptions

Declaration
protected IOptions<IdentityOptions> IdentityOptions { get; }
Property Value
Type Description
IOptions<IdentityOptions>

IdentitySecurityLogManager

Declaration
protected IdentitySecurityLogManager IdentitySecurityLogManager { get; }
Property Value
Type Description
IdentitySecurityLogManager

ServiceScopeFactory

Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
Type Description
IServiceScopeFactory

SettingProvider

Declaration
protected ISettingProvider SettingProvider { get; }
Property Value
Type Description
ISettingProvider

TenantConfigurationProvider

Declaration
protected ITenantConfigurationProvider TenantConfigurationProvider { get; }
Property Value
Type Description
ITenantConfigurationProvider

Methods

HandleAsync()

Declaration
[HttpGet]
[HttpPost]
[Produces("application/json", new string[] { })]
public virtual Task<IActionResult> HandleAsync()
Returns
Type Description
Task<IActionResult>

HandleAuthorizationCodeAsync(OpenIddictRequest)

Declaration
protected virtual Task<IActionResult> HandleAuthorizationCodeAsync(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task<IActionResult>

HandleChangePasswordAsync(OpenIddictRequest, IdentityUser, string, ChangePasswordType)

Declaration
protected virtual Task<IActionResult> HandleChangePasswordAsync(OpenIddictRequest request, IdentityUser user, string currentPassword, TokenController.ChangePasswordType changePasswordType)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
string currentPassword
TokenController.ChangePasswordType changePasswordType
Returns
Type Description
Task<IActionResult>

HandleClientCredentialsAsync(OpenIddictRequest)

Declaration
protected virtual Task<IActionResult> HandleClientCredentialsAsync(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task<IActionResult>

HandleConfirmUserAsync(OpenIddictRequest, IdentityUser)

Declaration
protected virtual Task<IActionResult> HandleConfirmUserAsync(OpenIddictRequest request, IdentityUser user)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
Returns
Type Description
Task<IActionResult>

HandleDeviceCodeAsync(OpenIddictRequest)

Declaration
protected virtual Task<IActionResult> HandleDeviceCodeAsync(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task<IActionResult>

HandlePasswordAsync(OpenIddictRequest)

Declaration
[UnitOfWork]
protected virtual Task<IActionResult> HandlePasswordAsync(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task<IActionResult>

HandlePeriodicallyChangePasswordAsync(OpenIddictRequest, IdentityUser, string)

Declaration
protected virtual Task<IActionResult> HandlePeriodicallyChangePasswordAsync(OpenIddictRequest request, IdentityUser user, string currentPassword)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
string currentPassword
Returns
Type Description
Task<IActionResult>

HandleRefreshTokenAsync(OpenIddictRequest)

Declaration
protected virtual Task<IActionResult> HandleRefreshTokenAsync(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task<IActionResult>

HandleShouldChangePasswordOnNextLoginAsync(OpenIddictRequest, IdentityUser, string)

Declaration
protected virtual Task<IActionResult> HandleShouldChangePasswordOnNextLoginAsync(OpenIddictRequest request, IdentityUser user, string currentPassword)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
string currentPassword
Returns
Type Description
Task<IActionResult>

HandleTwoFactorLoginAsync(OpenIddictRequest, IdentityUser)

Declaration
protected virtual Task<IActionResult> HandleTwoFactorLoginAsync(OpenIddictRequest request, IdentityUser user)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
Returns
Type Description
Task<IActionResult>

IsTfaEnabledAsync(IdentityUser)

Declaration
protected virtual Task<bool> IsTfaEnabledAsync(IdentityUser user)
Parameters
Type Name Description
IdentityUser user
Returns
Type Description
Task<bool>

ReplaceEmailToUsernameOfInputIfNeeds(OpenIddictRequest)

Declaration
protected virtual Task ReplaceEmailToUsernameOfInputIfNeeds(OpenIddictRequest request)
Parameters
Type Name Description
OpenIddictRequest request
Returns
Type Description
Task

SetSuccessResultAsync(OpenIddictRequest, IdentityUser)

Declaration
protected virtual Task<IActionResult> SetSuccessResultAsync(OpenIddictRequest request, IdentityUser user)
Parameters
Type Name Description
OpenIddictRequest request
IdentityUser user
Returns
Type Description
Task<IActionResult>

Implements

IActionFilter
IAsyncActionFilter
IFilterMetadata
IDisposable
IAvoidDuplicateCrossCuttingConcerns

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform