apply sorting ...
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xIdentityModels.Dtos;
|
using xIdentityModels.Dtos;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Configurations {
|
namespace xIdentityModels.Configurations {
|
||||||
public class XIdentityConfiguration {
|
public class XIdentityConfiguration {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos
|
namespace xIdentityModels.Dtos
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
using xIdentityModels.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos
|
namespace xIdentityModels.Dtos
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos
|
namespace xIdentityModels.Dtos
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos {
|
namespace xIdentityModels.Dtos {
|
||||||
public class XProfileImageDto : XBaseDto {
|
public class XProfileImageDto : XBaseDto {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos {
|
namespace xIdentityModels.Dtos {
|
||||||
public class XUserNameIdRequest : XBaseDto {
|
public class XUserNameIdRequest : XBaseDto {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using xModels.Base;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using xIdentityModels.Constants;
|
using xIdentityModels.Constants;
|
||||||
using xModels.Base;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Dtos {
|
namespace xIdentityModels.Dtos {
|
||||||
public class XUserProfileDto : XBaseDto {
|
public class XUserProfileDto : XBaseDto {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Interfaces;
|
|
||||||
using xIdentityModels.Providers;
|
using xIdentityModels.Providers;
|
||||||
|
using xIdentityModels.Interfaces;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace xIdentityModels.Extensions {
|
namespace xIdentityModels.Extensions {
|
||||||
public static class DIExtensions {
|
public static class DIExtensions {
|
||||||
@@ -10,6 +10,7 @@ namespace xIdentityModels.Extensions {
|
|||||||
/// user not provided we create this helper ...
|
/// user not provided we create this helper ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="services"></param>
|
/// <param name="services"></param>
|
||||||
|
/// <param name="helper"></param>
|
||||||
public static void AddXUserRoleHandler (
|
public static void AddXUserRoleHandler (
|
||||||
this IServiceCollection services,
|
this IServiceCollection services,
|
||||||
IXUserRoleHelper helper = null
|
IXUserRoleHelper helper = null
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Extensions {
|
namespace xIdentityModels.Extensions {
|
||||||
public static class XIdentityExtensions {
|
public static class XIdentityExtensions {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Descriptors;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Descriptors;
|
||||||
using xIdentityModels.Navigations;
|
using xIdentityModels.Navigations;
|
||||||
|
|
||||||
namespace xIdentityModels.Extensions {
|
namespace xIdentityModels.Extensions {
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IdentityModel.Tokens.Jwt;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net.Http.Headers;
|
|
||||||
using System.Security.Claims;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IdentityModel.Client;
|
|
||||||
using Microsoft.AspNetCore.Authentication;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.AspNetCore.Mvc.Filters;
|
|
||||||
using Microsoft.IdentityModel.Tokens;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using IdentityModel.Client;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
using xIdentityModels.Constants;
|
using System.Security.Claims;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Net.Http.Headers;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using Microsoft.IdentityModel.Tokens;
|
||||||
|
using System.IdentityModel.Tokens.Jwt;
|
||||||
|
using Microsoft.AspNetCore.Mvc.Filters;
|
||||||
|
using Microsoft.AspNetCore.Authentication;
|
||||||
|
|
||||||
namespace xIdentityModels.Extensions {
|
namespace xIdentityModels.Extensions {
|
||||||
public static class XTokenExtensions {
|
public static class XTokenExtensions {
|
||||||
@@ -440,6 +440,7 @@ namespace xIdentityModels.Extensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
|
/// <param name="secret"></param>
|
||||||
public static void SetXAuthenticationTokens (
|
public static void SetXAuthenticationTokens (
|
||||||
this IHeaderDictionary source,
|
this IHeaderDictionary source,
|
||||||
XLoginResponse model,
|
XLoginResponse model,
|
||||||
@@ -469,6 +470,7 @@ namespace xIdentityModels.Extensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
|
/// <param name="secret"></param>
|
||||||
public static void SetXAuthenticationTokens (
|
public static void SetXAuthenticationTokens (
|
||||||
this IHeaderDictionary source,
|
this IHeaderDictionary source,
|
||||||
XTokenResponse model,
|
XTokenResponse model,
|
||||||
@@ -596,6 +598,7 @@ namespace xIdentityModels.Extensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
|
/// <param name="secret"></param>
|
||||||
public static void SetXAuthenticationTokens (
|
public static void SetXAuthenticationTokens (
|
||||||
this HttpResponse source,
|
this HttpResponse source,
|
||||||
XLoginResponse model,
|
XLoginResponse model,
|
||||||
@@ -612,6 +615,7 @@ namespace xIdentityModels.Extensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
|
/// <param name="secret"></param>
|
||||||
public static void SetXAuthenticationTokens (
|
public static void SetXAuthenticationTokens (
|
||||||
this HttpResponse source,
|
this HttpResponse source,
|
||||||
XTokenResponse model,
|
XTokenResponse model,
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Configurations;
|
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Dtos;
|
using xIdentityModels.Dtos;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Configurations;
|
||||||
|
|
||||||
namespace xIdentityModels.Extensions
|
namespace xIdentityModels.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using xModels.Base;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Navigations;
|
using xIdentityModels.Navigations;
|
||||||
using xModels.Base;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Models {
|
namespace xIdentityModels.Models {
|
||||||
public class XBannedDevice : XBaseIntIDEntity {
|
public class XBannedDevice : XBaseIntIDEntity {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using xIdentityModels.Navigations;
|
using xIdentityModels.Navigations;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace xIdentityModels.Models {
|
namespace xIdentityModels.Models {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using xIdentityModels.Constants;
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Models {
|
namespace xIdentityModels.Models {
|
||||||
public class XProfileUpdateRequest {
|
public class XProfileUpdateRequest {
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using xModels.Base;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Constants;
|
using xIdentityModels.Constants;
|
||||||
using xIdentityModels.Navigations;
|
using xIdentityModels.Navigations;
|
||||||
using xModels.Base;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Models {
|
namespace xIdentityModels.Models {
|
||||||
public class XToken : XBaseIntIDEntity {
|
public class XToken : XBaseIntIDEntity {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Security.Claims;
|
using xModels.Base;
|
||||||
|
using xCommons.Helpers;
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xCommons.Helpers;
|
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using System.Security.Claims;
|
||||||
using xIdentityModels.Constants;
|
using xIdentityModels.Constants;
|
||||||
using xModels.Base;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityModels.Models
|
namespace xIdentityModels.Models
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using xModels.Base;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Navigations;
|
using xIdentityModels.Navigations;
|
||||||
using xModels.Base;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Models {
|
namespace xIdentityModels.Models {
|
||||||
public class XVerificationRequest : XBaseIntIDEntity {
|
public class XVerificationRequest : XBaseIntIDEntity {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using xCommons.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Constants;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Navigations {
|
namespace xIdentityModels.Navigations {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Navigations {
|
namespace xIdentityModels.Navigations {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels.Navigations {
|
namespace xIdentityModels.Navigations {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xModels.Base;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xIdentityModels.Navigations {
|
namespace xIdentityModels.Navigations {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace xIdentityModels {
|
namespace xIdentityModels {
|
||||||
public class XApiToken : XBaseIntIDEntity {
|
public class XApiToken : XBaseIntIDEntity {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Navigations;
|
||||||
|
using Microsoft.AspNetCore.Identity;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using Microsoft.AspNetCore.Identity;
|
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Navigations;
|
|
||||||
|
|
||||||
namespace xIdentityModels
|
namespace xIdentityModels
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user