Skip to content
Snippets Groups Projects
Commit 1ca56b9d authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

style fixes

parent dca6e884
Branches
Tags
No related merge requests found
...@@ -33,18 +33,13 @@ ...@@ -33,18 +33,13 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Security.Cryptography;
using Grpc.Core;
using Grpc.Core.Utils;
using Google.Apis.Auth.OAuth2; using Google.Apis.Auth.OAuth2;
using System.Security.Cryptography.X509Certificates;
using Newtonsoft.Json.Linq;
using Mono.Security.Cryptography; using Mono.Security.Cryptography;
using Newtonsoft.Json.Linq;
using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Crypto.Parameters;
using System.Security.Cryptography;
using Org.BouncyCastle.Security; using Org.BouncyCastle.Security;
namespace Grpc.Auth namespace Grpc.Auth
......
...@@ -35,14 +35,14 @@ using System; ...@@ -35,14 +35,14 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Grpc.Core;
using Grpc.Core.Utils;
using Google.Apis.Auth.OAuth2; using Google.Apis.Auth.OAuth2;
using System.Security.Cryptography.X509Certificates; using Grpc.Core;
using Grpc.Core.Utils;
namespace Grpc.Auth namespace Grpc.Auth
{ {
...@@ -54,9 +54,8 @@ namespace Grpc.Auth ...@@ -54,9 +54,8 @@ namespace Grpc.Auth
credential.RequestAccessTokenAsync(CancellationToken.None).Wait(); credential.RequestAccessTokenAsync(CancellationToken.None).Wait();
string accessToken = credential.Token.AccessToken; string accessToken = credential.Token.AccessToken;
// TODO: token refresh logic!! // TODO(jtattermusch): implement token refresh logic!!
return new HeaderInterceptorDelegate((b) => { b.Add(new Metadata.MetadataEntry("Authorization", "Bearer " + accessToken)); }); return new HeaderInterceptorDelegate((b) => { b.Add(new Metadata.MetadataEntry("Authorization", "Bearer " + accessToken)); });
} }
} }
} }
...@@ -33,21 +33,14 @@ ...@@ -33,21 +33,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Google.ProtocolBuffers; using Google.ProtocolBuffers;
using grpc.testing; using grpc.testing;
using Grpc.Auth; using Grpc.Auth;
using Grpc.Core; using Grpc.Core;
using Grpc.Core.Utils; using Grpc.Core.Utils;
using NUnit.Framework; using NUnit.Framework;
using Newtonsoft.Json.Linq;
using System.Threading;
using Google.Apis.Auth.OAuth2;
using System.Security.Cryptography.X509Certificates;
namespace Grpc.IntegrationTesting namespace Grpc.IntegrationTesting
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment