You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AuthenticationRequestProvider -> AuthenticationRequestStore
AuthenticationRequestStore is now an element for the developers to take care of. Tweetinvi no longer relies on it.
Copy file name to clipboardexpand all lines: CHANGELOG.md
+10-9
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,12 @@ As a result, changing a `TwitterClient` credentials will only be possible by cre
40
40
41
41
## Authentication Flow
42
42
43
-
`IAuthenticationTokenProvider` is a new interface that let developers customize how Tweetinvi retrieves the AuthenticationToken.
44
-
*`CallbackTokenIdParameterName` query parameter added to the callback url.
45
-
*`ExtractTokenIdFromCallbackUrl` method extracting a token from a callback url.
46
-
*`GenerateAuthTokenId` generates an identifier that will be used by `GetAuthenticationTokenFromId`
47
-
*`GetAuthenticationTokenFromId` retrieves an AuthenticationToken from its unique identifier
48
-
*`AddAuthenticationToken` defines how to add a token into your store
49
-
*`RemoveAuthenticationToken` defines how to remove a token from your store.
43
+
`IAuthenticationRequestStore` is a new interface that guides developers through the authentication flow of redirection urls. A default in-memory solution is provided but developers are free to implement their own.
44
+
*`AppendAuthenticationRequestIdToCallbackUrl` append an authenticationRequestId to a url
45
+
*`ExtractAuthenticationRequestIdFromCallbackUrl` logic to extract an authenticationRequestId from a callback url
46
+
*`GetAuthenticationRequestFromId` returns the AuthenticationRequest from its identifier
47
+
*`AddAuthenticationToken` stores the AuthenticationRequest information
48
+
*`RemoveAuthenticationToken` removes an AuthenticationRequest from the store
50
49
51
50
A default implementation `new AuthenticationTokenProvider` is an implementation that allow you to make the `AuthenticationToken` accessible from an in-memory store.
52
51
@@ -67,14 +66,16 @@ A default implementation `new AuthenticationTokenProvider` is an implementation
67
66
68
67
**`AuthFlow.InitAuthentication`** was moved to `TwitterClient.Auth.RequestAuthenticationUrl`
69
68
69
+
`RequestAuthenticationUrl` returns an `AuthenticationRequest` which contains the url to redirected the user and authorization information to proceed with the request of credentials.
@@ -50,19 +45,19 @@ public void Validate(IRequestCredentialsParameters parameters)
50
45
thrownewArgumentNullException($"{nameof(parameters)}{nameof(parameters.VerifierCode)}","If you received a null verifier code, the authentication failed");
0 commit comments