-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7b73ae
commit 65da40c
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Fortnox.SDK.Auth; | ||
|
||
/// <summary> | ||
/// Represents methods of a Fortnox legacy auth workflow. | ||
/// </summary> | ||
[Obsolete("2021-12-09: End-of-life for the static authorization. Use StandardAuth.")] | ||
public interface IStaticTokenAuthWorkflow | ||
{ | ||
/// <summary> | ||
/// Use this function to activate new integration and retrieve Access-Token. | ||
/// </summary> | ||
/// <param name="authCode">The API-code (authorization code) given to you by Fortnox.</param> | ||
/// <param name="clientSecret">The Client-Secret code given to you by Fortnox.</param> | ||
/// <returns>The Access-Token to use with Fortnox.</returns> | ||
/// <remarks>Note that an authorization-code can be used only once. Save the retrieved Access-Token in order to use it for FortnoxClient.</remarks> | ||
Task<string> GetTokenAsync(string authCode, string clientSecret); | ||
} |