Skip to content

Conversation

@martincostello
Copy link
Member

@martincostello martincostello commented Sep 10, 2021

PR Title

Use one-shot static hash methods

PR Description

  • Use one-shot static HashData() methods for SHA1 and HMACSHA*.
  • Fix or update some documentation links.
  • Expand the test coverage for the TwitterHandler class based on the Facebook handler's tests.
  • Minor readability change to use Convert.ToHexString() in a test helper.

Use one-shot static hash methods for SHA1 and HMACSHA*.
Also a readability change to use Convert.ToHexString().
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Sep 10, 2021
Assert that the correct secret proof is added to the request URL.
Update URL that redirects.
@martincostello
Copy link
Member Author

While I was playing around with Javier's suggestion I found that the tests didn't explicitly assert on the appsecret_proof value generated by the Facebook handler, so I've added an assert for that. I also updated a link that now redirects elsewhere.

Update link that resulted in a 404.
Add test coverage for CreateTicketAsync(), ObtainAccessTokenAsync() and RetrieveUserDetailsAsync().
@Pilchie Pilchie added the area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer label Sep 10, 2021
@Tratcher Tratcher merged commit 6f5d122 into dotnet:main Sep 13, 2021
@Tratcher
Copy link
Member

Thanks

@ghost ghost added this to the 7.0-preview1 milestone Sep 13, 2021
@martincostello martincostello deleted the Use-OneShot-Hashes branch September 13, 2021 16:04
@davidfowl davidfowl added the Perf label Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer community-contribution Indicates that the PR has been added by a community member Perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants