apply sorting ...
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityService.Configuration {
|
namespace xIdentityService.Configuration {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using xCommons.Providers;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Attributes;
|
using xCommons.Attributes;
|
||||||
using xCommons.Configurations;
|
using xCommons.Configurations;
|
||||||
using xCommons.Providers;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace xIdentityService.Controllers
|
namespace xIdentityService.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using xCommons.Providers;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Attributes;
|
using xCommons.Attributes;
|
||||||
using xCommons.Configurations;
|
using xCommons.Configurations;
|
||||||
using xCommons.Providers;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace xIdentityService.Controllers
|
namespace xIdentityService.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Authentication;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Configurations;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Controllers;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Providers;
|
using xCommons.Providers;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xCommons.Controllers;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
using xIdentityModels.Constants;
|
using System.Threading.Tasks;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xCommons.Configurations;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.AspNetCore.Authentication;
|
||||||
|
|
||||||
namespace xIdentityService.Controllers
|
namespace xIdentityService.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
+15
-12
@@ -1,17 +1,17 @@
|
|||||||
using System;
|
using System;
|
||||||
using IdentityModel.AspNetCore.OAuth2Introspection;
|
using xCommons.Extensions;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using xCommons.Authorization;
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using xIdentityService.Security;
|
||||||
|
using xIdentityService.Constants;
|
||||||
|
using xIdentityService.Providers;
|
||||||
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using xIdentityService.Configuration;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using xCommons.Authorization;
|
using IdentityModel.AspNetCore.OAuth2Introspection;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xIdentityService.Configuration;
|
|
||||||
using xIdentityService.Constants;
|
|
||||||
using xIdentityService.Interfaces;
|
|
||||||
using xIdentityService.Providers;
|
|
||||||
using xIdentityService.Security;
|
|
||||||
|
|
||||||
namespace xIdentityService.DI {
|
namespace xIdentityService.DI {
|
||||||
public static partial class XDIHelperExtension {
|
public static partial class XDIHelperExtension {
|
||||||
@@ -31,6 +31,7 @@ namespace xIdentityService.DI {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="services"></param>
|
/// <param name="services"></param>
|
||||||
/// <param name="configuration"></param>
|
/// <param name="configuration"></param>
|
||||||
|
/// <param name="lifeTime"></param>
|
||||||
public static void AddXIdentityService (
|
public static void AddXIdentityService (
|
||||||
this IServiceCollection services,
|
this IServiceCollection services,
|
||||||
IConfiguration configuration,
|
IConfiguration configuration,
|
||||||
@@ -50,6 +51,7 @@ namespace xIdentityService.DI {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="services"></param>
|
/// <param name="services"></param>
|
||||||
/// <param name="configuration"></param>
|
/// <param name="configuration"></param>
|
||||||
|
/// <param name="lifeTime"></param>
|
||||||
public static void AddXIdentityService (
|
public static void AddXIdentityService (
|
||||||
this IServiceCollection services,
|
this IServiceCollection services,
|
||||||
XIdentityServiceConfiguration configuration,
|
XIdentityServiceConfiguration configuration,
|
||||||
@@ -62,14 +64,15 @@ namespace xIdentityService.DI {
|
|||||||
/// Register Custome Token Provider
|
/// Register Custome Token Provider
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="services"></param>
|
/// <param name="services"></param>
|
||||||
|
/// <param name="lifeTime"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
public static void AddXTokenProvider<T> (
|
public static void AddXTokenProvider<T> (
|
||||||
this IServiceCollection services,
|
this IServiceCollection services,
|
||||||
ServiceLifetime lifetime = ServiceLifetime.Singleton)
|
ServiceLifetime lifeTime = ServiceLifetime.Singleton)
|
||||||
where T : IXTokenProvider {
|
where T : IXTokenProvider {
|
||||||
//
|
//
|
||||||
Console.WriteLine ("IdentityService: Add Custom Token Provider ...");
|
Console.WriteLine ("IdentityService: Add Custom Token Provider ...");
|
||||||
services.Add (new ServiceDescriptor (typeof (IXTokenProvider), typeof (T), lifetime));
|
services.Add (new ServiceDescriptor (typeof (IXTokenProvider), typeof (T), lifeTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Authentication;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
|
using Microsoft.AspNetCore.Authentication;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace xIdentityService.Extensions {
|
namespace xIdentityService.Extensions {
|
||||||
public static class HttpContextExtensions {
|
public static class HttpContextExtensions {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityService.Extensions
|
namespace xIdentityService.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using xIdentityModels.Dtos;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xIdentityModels.Dtos;
|
||||||
|
|
||||||
namespace xIdentityService.Extensions
|
namespace xIdentityService.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net.Http.Headers;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IdentityModel.Client;
|
|
||||||
using Microsoft.AspNetCore.Authentication;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.AspNetCore.Mvc.Filters;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xExceptions.Models;
|
using xExceptions.Models;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using IdentityModel.Client;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Net.Http.Headers;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Mvc.Filters;
|
||||||
|
using Microsoft.AspNetCore.Authentication;
|
||||||
|
|
||||||
public static partial class XTokenExtensions {
|
public static partial class XTokenExtensions {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -182,7 +182,12 @@ public static partial class XTokenExtensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
public static void SetXAuthenticationTokens (this IHeaderDictionary source, XLoginResponse model, string secret = null) {
|
/// <param name="secret"></param>
|
||||||
|
public static void SetXAuthenticationTokens (
|
||||||
|
this IHeaderDictionary source,
|
||||||
|
XLoginResponse model,
|
||||||
|
string secret = null
|
||||||
|
) {
|
||||||
//
|
//
|
||||||
source.Remove (XAuthorization.Header);
|
source.Remove (XAuthorization.Header);
|
||||||
source.Remove (XAuthorization.RefreshToken);
|
source.Remove (XAuthorization.RefreshToken);
|
||||||
@@ -248,7 +253,12 @@ public static partial class XTokenExtensions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source"></param>
|
/// <param name="source"></param>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
public static void SetXAuthenticationTokens (this HttpResponse source, XLoginResponse model, string secret) {
|
/// <param name="secret"></param>
|
||||||
|
public static void SetXAuthenticationTokens (
|
||||||
|
this HttpResponse source,
|
||||||
|
XLoginResponse model,
|
||||||
|
string secret
|
||||||
|
) {
|
||||||
source.Headers.SetXAuthenticationTokens (model, secret);
|
source.Headers.SetXAuthenticationTokens (model, secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
|
||||||
namespace xIdentityService.Extensions {
|
namespace xIdentityService.Extensions {
|
||||||
public static class XUserClaimsInfoDtoExtensions {
|
public static class XUserClaimsInfoDtoExtensions {
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using RestSharp;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using RestSharp;
|
|
||||||
using xCommons.Providers;
|
using xCommons.Providers;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
using xIdentityService.Models;
|
using xIdentityService.Models;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces
|
namespace xIdentityService.Interfaces
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ namespace xIdentityService.Interfaces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="endpoint"></param>
|
/// <param name="endpoint"></param>
|
||||||
/// <param name="addXPoweredValue"></param>
|
/// <param name="addXPoweredValue"></param>
|
||||||
/// <param name=""></param>
|
/// <param name="@params"></param>
|
||||||
/// <param name="headers"></param>
|
/// <param name="headers"></param>
|
||||||
/// <param name="queryStrings"></param>
|
/// <param name="queryStrings"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -129,7 +129,7 @@ namespace xIdentityService.Interfaces
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handle Call Specified Request and Retrieve XBaseRestResponse<T> ...
|
/// Handle Call Specified Request and Retrieve XBaseRestResponse ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
@@ -137,7 +137,7 @@ namespace xIdentityService.Interfaces
|
|||||||
/// <param name="supportRefreshingTokens"></param>
|
/// <param name="supportRefreshingTokens"></param>
|
||||||
/// <param name="cancellationToken"></param>
|
/// <param name="cancellationToken"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <returns>an instance of XBaseRestResponse<T></returns>
|
/// <returns>an instance of XBaseRestResponse</returns>
|
||||||
Task<XBaseRestResponse<T>> RunRestRequestByResponse<T>(
|
Task<XBaseRestResponse<T>> RunRestRequestByResponse<T>(
|
||||||
RestClient client,
|
RestClient client,
|
||||||
RestRequest request,
|
RestRequest request,
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
|
using System.Threading;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces
|
namespace xIdentityService.Interfaces
|
||||||
{
|
{
|
||||||
@@ -89,7 +87,6 @@ namespace xIdentityService.Interfaces
|
|||||||
/// <param name="providedFor"></param>
|
/// <param name="providedFor"></param>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <param name="cancellationToken"></param>
|
/// <param name="cancellationToken"></param>
|
||||||
/// <typeparam name="TReferenceKey"></typeparam>
|
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<IEnumerable<XReference<string>>> GetReferences(
|
Task<IEnumerable<XReference<string>>> GetReferences(
|
||||||
string providedFor,
|
string providedFor,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using xModels.Base;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using xDataService.Models;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using xDataService.Models;
|
using System.Collections.Generic;
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces
|
namespace xIdentityService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xDataService.Models;
|
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xDataService.Models;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces
|
namespace xIdentityService.Interfaces
|
||||||
{
|
{
|
||||||
@@ -61,6 +61,7 @@ namespace xIdentityService.Interfaces
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieve References of Specific Provided ID as Query ...
|
/// Retrieve References of Specific Provided ID as Query ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="query"></param>
|
||||||
/// <param name="providedForId"></param>
|
/// <param name="providedForId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<XQueryResult<TModel>> QueryReferences(
|
Task<XQueryResult<TModel>> QueryReferences(
|
||||||
@@ -84,7 +85,7 @@ namespace xIdentityService.Interfaces
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add Reference a Model to Specific XRefence<TKey> ...
|
/// Add Reference a Model to Specific XRefence ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
/// <param name="reference"></param>
|
/// <param name="reference"></param>
|
||||||
@@ -114,10 +115,10 @@ namespace xIdentityService.Interfaces
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove Reference a Model for Specific XRefence<TKey> ...
|
/// Remove Reference a Model for Specific XRefence ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
/// <param name="providedForId"></param>
|
/// <param name="reference"></param>
|
||||||
/// <param name="connectionId"></param>
|
/// <param name="connectionId"></param>
|
||||||
/// <param name="userInfo"></param>
|
/// <param name="userInfo"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IdentityModel.Client;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
using xHttpService.Constants;
|
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Dtos;
|
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xIdentityModels.Navigations;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using IdentityModel.Client;
|
||||||
|
using xIdentityModels.Dtos;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xHttpService.Constants;
|
||||||
|
using xIdentityModels.Models;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Navigations;
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces
|
namespace xIdentityService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Configuration;
|
using xIdentityService.Configuration;
|
||||||
|
|
||||||
namespace xIdentityService.Interfaces {
|
namespace xIdentityService.Interfaces {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using xIdentityModels.Extensions;
|
using xIdentityModels.Extensions;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace xIdentityService.Middlewares {
|
namespace xIdentityService.Middlewares {
|
||||||
public partial class XIdentityTokenRefresherMiddleware {
|
public partial class XIdentityTokenRefresherMiddleware {
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using xModels.Base;
|
||||||
using IdentityModel;
|
using IdentityModel;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using System.Net.Http;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityService.Constants;
|
||||||
|
using xIdentityService.Providers;
|
||||||
|
using xIdentityService.Interfaces;
|
||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using xIdentityService.Configuration;
|
||||||
using Microsoft.AspNetCore.WebUtilities;
|
using Microsoft.AspNetCore.WebUtilities;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xExceptions.Constants;
|
|
||||||
using xIdentityService.Configuration;
|
|
||||||
using xIdentityService.Constants;
|
|
||||||
using xIdentityService.Interfaces;
|
|
||||||
using xIdentityService.Providers;
|
|
||||||
using xModels.Base;
|
|
||||||
|
|
||||||
namespace xIdentityService.Middlewares {
|
namespace xIdentityService.Middlewares {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xHttpService.Constants;
|
|
||||||
using xIdentityModels.Dtos;
|
using xIdentityModels.Dtos;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using IdentityModel.Client;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using IdentityModel.Client;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Extensions;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Extensions;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using System.Collections.Generic;
|
using xModels.Dtos;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using xIdentityModels.Dtos;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
|
using xIdentityModels.Models;
|
||||||
using xHttpService.Extensions;
|
using xHttpService.Extensions;
|
||||||
using xIdentityModels.Constants;
|
using xIdentityModels.Constants;
|
||||||
using xIdentityModels.Dtos;
|
using System.Collections.Generic;
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xIdentityModels.Navigations;
|
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xModels.Dtos;
|
using xIdentityModels.Navigations;
|
||||||
|
|
||||||
namespace xIdentityService.Providers
|
namespace xIdentityService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using MongoDB.Bson;
|
using MongoDB.Bson;
|
||||||
|
using xModels.Dtos;
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
|
||||||
using xHttpService.Constants;
|
|
||||||
using xIdentityModels.Dtos;
|
using xIdentityModels.Dtos;
|
||||||
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xHttpService.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xModels.Dtos;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace xIdentityService.Providers
|
namespace xIdentityService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using xCommons.Extensions;
|
|
||||||
using xHttpService.Constants;
|
|
||||||
using xHttpService.Extensions;
|
|
||||||
using xIdentityModels.Dtos;
|
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xIdentityModels.Navigations;
|
|
||||||
using xIdentityService.Constants;
|
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
|
using xCommons.Extensions;
|
||||||
|
using xIdentityModels.Dtos;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xHttpService.Constants;
|
||||||
|
using xIdentityModels.Models;
|
||||||
|
using xHttpService.Extensions;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityService.Constants;
|
||||||
|
using xIdentityModels.Navigations;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
public partial class XIdentityProvider {
|
public partial class XIdentityProvider {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Extensions;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Extensions;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
using System;
|
using xModels.Dtos;
|
||||||
using System.Collections.Generic;
|
using xIdentityModels.Dtos;
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xHttpService.Extensions;
|
|
||||||
using xIdentityModels.Dtos;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xHttpService.Extensions;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xModels.Dtos;
|
|
||||||
|
|
||||||
namespace xIdentityService.Providers
|
namespace xIdentityService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,27 +1,24 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using RestSharp;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using RestSharp;
|
|
||||||
using RestSharp.Authenticators;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Providers;
|
using xCommons.Providers;
|
||||||
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Extensions;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using xIdentityService.Models;
|
||||||
|
using RestSharp.Authenticators;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Extensions;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
using xIdentityService.Models;
|
using Microsoft.Extensions.Logging;
|
||||||
using xIdentityService.Extensions;
|
|
||||||
using System.Diagnostics.Tracing;
|
|
||||||
using MySqlX.XDevAPI.Common;
|
|
||||||
|
|
||||||
namespace xIdentityService.Providers
|
namespace xIdentityService.Providers
|
||||||
{
|
{
|
||||||
@@ -246,7 +243,7 @@ namespace xIdentityService.Providers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="endpoint"></param>
|
/// <param name="endpoint"></param>
|
||||||
/// <param name="addXPoweredValue"></param>
|
/// <param name="addXPoweredValue"></param>
|
||||||
/// <param name=""></param>
|
/// <param name="@params"></param>
|
||||||
/// <param name="headers"></param>
|
/// <param name="headers"></param>
|
||||||
/// <param name="queryStrings"></param>
|
/// <param name="queryStrings"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
@@ -1,27 +1,27 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using RestSharp;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Serialization;
|
using System.Threading;
|
||||||
using RestSharp;
|
|
||||||
using RestSharp.Authenticators;
|
|
||||||
using xCommons.Constants;
|
using xCommons.Constants;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Providers;
|
using xCommons.Providers;
|
||||||
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xHttpService.Constants;
|
using xHttpService.Constants;
|
||||||
using xIdentityModels.Constants;
|
|
||||||
using xIdentityModels.Extensions;
|
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
using xIdentityService.Configuration;
|
using xIdentityService.Models;
|
||||||
|
using RestSharp.Authenticators;
|
||||||
|
using xIdentityModels.Constants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using xIdentityModels.Extensions;
|
||||||
using xIdentityService.Constants;
|
using xIdentityService.Constants;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
using xIdentityService.Models;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Newtonsoft.Json.Serialization;
|
||||||
|
using xIdentityService.Configuration;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
public partial class XIdentityProvider : IXIdentityProvider {
|
public partial class XIdentityProvider : IXIdentityProvider {
|
||||||
@@ -230,6 +230,7 @@ namespace xIdentityService.Providers {
|
|||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <param name="method"></param>
|
/// <param name="method"></param>
|
||||||
|
/// <param name="supportRefreshingTokens"></param>
|
||||||
/// <typeparam name="T"></typeparam>
|
/// <typeparam name="T"></typeparam>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<T> RunRestRequest<T> (
|
public async Task<T> RunRestRequest<T> (
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using xIdentityModels.Models;
|
using xIdentityModels.Models;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using System.Linq;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
using xIdentityService.Configuration;
|
using System.Linq.Expressions;
|
||||||
|
using System.Collections.Generic;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using xIdentityService.Configuration;
|
||||||
|
|
||||||
namespace xIdentityService.Providers {
|
namespace xIdentityService.Providers {
|
||||||
public class XProxyHelper : IXProxyHelper {
|
public class XProxyHelper : IXProxyHelper {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Security.Cryptography;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using xCommons.Extensions;
|
|
||||||
using xCommons.Helpers;
|
|
||||||
using xCommons.Providers;
|
using xCommons.Providers;
|
||||||
using xIdentityService.Configuration;
|
using xCommons.Extensions;
|
||||||
using xIdentityService.Interfaces;
|
using xIdentityService.Interfaces;
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
using xIdentityService.Configuration;
|
||||||
|
|
||||||
namespace xIdentityService.Security {
|
namespace xIdentityService.Security {
|
||||||
public partial class XSecurityProvider : IXSecurityProvider {
|
public partial class XSecurityProvider : IXSecurityProvider {
|
||||||
|
|||||||
Reference in New Issue
Block a user