Skip to content

Commit

Permalink
Add new interface IAuthProviderUserAccount (#95)
Browse files Browse the repository at this point in the history
* Add new interface IAuthProviderUserAccount

* Update IAuthProvider.cs
  • Loading branch information
reddyashish authored Apr 15, 2024
1 parent 53ae905 commit 3a9e1e9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/GregClient/AuthProviders/IAuthProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Greg.AuthProviders;
using System;
using Greg.AuthProviders;
using RestSharp;

namespace Greg
Expand Down Expand Up @@ -39,11 +39,23 @@ public interface IOAuth2AuthProvider : IAuthProvider
/// <param name="client"></param>
new void SignRequest(ref RestRequest m, RestClient client);
}

/// <summary>
/// Implement this interface to provide direct access to the current bearer token.
/// </summary>
public interface IOAuth2AccessTokenProvider
{
string GetAccessToken();
}

/// <summary>
/// Implement this interface to get user information.
/// </summary>
public interface IOAuth2UserIDProvider
{
/// <summary>
/// Gets the User ID.
/// </summary>
public string UserId { get; }
}
}

0 comments on commit 3a9e1e9

Please sign in to comment.