Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth: manual token expiration, better auxiliary token handling, improve tests #665

Merged
merged 15 commits into from
Nov 27, 2023

Commits on Sep 26, 2023

  1. auth: ability to manually expire a cached token

    Whilst the new ExpireToken() method only has any meaning or effect when
    a token is being cached, in practise this all the existing Authorizers wrap
    themselves with a CachedAuthorizer. For consistency this is added to the
    Authorizer interface to make downstream implementation simpler and this
    should not cause any incompatibility or errors where one of the provided
    constructors is used.
    manicminer committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    2ba693b View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    96793a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca32de0 View commit details
    Browse the repository at this point in the history
  3. auth: add a SetAuthHeaders() function for decorating the Request wi…

    …th both standard and auxiliary access tokens
    manicminer committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    5165d82 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1072418 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    60af3f3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82cc448 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e0f271 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    15a78fe View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Configuration menu
    Copy the full SHA
    e2ff919 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    48750d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Implement optional custom authorization function for API clients

    * Add a custom authorization function for ResourceManagerClient, which
      sets the `Authorization` and `x-ms-authorization-auxiliary` headers.
    * When custom authorization function is not defined, use the
      auth.SetAuthHeader() function to decorate requests with a standard
      `Authorization` header having a bearer token.
    manicminer committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    3dd1893 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Configuration menu
    Copy the full SHA
    ff6a279 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55249e0 View commit details
    Browse the repository at this point in the history
  3. resourcemanager: don't set x-ms-authorization-auxiliary header when n…

    …o aux tokens are present
    manicminer committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    6445851 View commit details
    Browse the repository at this point in the history