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

Initial support for Microsoft Graph with opt-in beta #373

Merged
merged 62 commits into from May 19, 2021

Commits on Apr 22, 2021

  1. Preliminary support for Microsoft Graph

    - Using https://github.com/manicminer/hamilton
    - Supports service principal authentication via client certificate or client secret
    - Configures an Authorizer struct for acquiring access tokens using MSID v2.0
    - Currently only works for https://graph.microsoft.com (i.e. not other clouds)
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    edb870a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3681234 View commit details
    Browse the repository at this point in the history
  3. Parse claims in access tokens to surface useful authentication metada…

    …ta, use in azuread_client_config to retrieve authenticated object ID
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    b7c7dff View commit details
    Browse the repository at this point in the history
  4. Update Hamilton SDK

    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    a8566eb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fbabf7e View commit details
    Browse the repository at this point in the history
  6. Fix bug in acceptance helper that fails to check a resource is deleted

    - We haven't hit this with AAD Graph because it continues to report
      resources exist long after they're gone
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    7bac950 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9b96641 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fe4b93a View commit details
    Browse the repository at this point in the history
  9. Microsoft Graph support for Applications

    - Except for azuread_application_password because MS Graph no longer
      supports user-supplied password values.
    - This needs further investigation. We may need to drop the `value`
      attribute in v2.0
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    c3fc383 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8e2ec58 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c671e90 View commit details
    Browse the repository at this point in the history
  12. Microsoft Graph support for Service Principals

    - Except for azuread_service_principal_password because MS Graph no longer
      supports user-supplied password values.
    - This needs further investigation. We may need to drop the `value`
      attribute in v2.0
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    fa9b4f1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8ad6b16 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9ce8550 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    435c23c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a14294f View commit details
    Browse the repository at this point in the history
  17. Bump Hamilton to v0.7.0

    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    813a063 View commit details
    Browse the repository at this point in the history
  18. Update Hamilton to v0.8.0

    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    81f5ff7 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2d3c912 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    b585e46 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    86ea39f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    c3e37a9 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    09db981 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    2624022 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    0f0eef3 View commit details
    Browse the repository at this point in the history
  26. Don't pre-size arrays for slices

    Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
    manicminer and tombuildsstuff committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    ab019ac View commit details
    Browse the repository at this point in the history
  27. Provider adjustments for Microsoft Graph

    - Use `use_microsoft_graph` for provider toggle attribute
    - Handle a nil AuthConfig
    - Document `public` environment (former name for `global`)
    - Logging user agent string is a bit spammy, stop doing that
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    a8ed16a View commit details
    Browse the repository at this point in the history
  28. Graph helpers

    - Better error handling
    - Crash mitigation
    - More reasoned flatten functions
    - Use timeout from context for WaitForState functions
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    7ef3633 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    67d810a View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0efb2f7 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    c59c8ac View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3bcf4b7 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d07577a View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    dc09b39 View commit details
    Browse the repository at this point in the history
  35. More crash mitigation

    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    e464b2c View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4df050e View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    3b5c114 View commit details
    Browse the repository at this point in the history
  38. Provider: add the option to disable CLI authentication (the default r…

    …emains to use CLI auth)
    manicminer committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    51c8499 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Upgrade guide for v2.0

    manicminer committed May 5, 2021
    Configuration menu
    Copy the full SHA
    d0c2030 View commit details
    Browse the repository at this point in the history
  2. Update v2.0 upgrade guide

    manicminer committed May 5, 2021
    Configuration menu
    Copy the full SHA
    a9ce167 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2021

  1. Deprecated/new Attribute handling for Applications

    - Ensure correct handling of all new attributes/properties
    - Always set optional_claims block when not empty
    - Use `is_enabled` for deprecated `oauth2_permissions` and `enabled` for new `oauth2_permission_scopes`
    - Add new attributes to azuread_application data source
    - Remove certificates and password from state when parent application is gone
    - Test coverage for new and deprecated properties
    - Differentiate error messages
    - More error handling
    manicminer committed May 11, 2021
    Configuration menu
    Copy the full SHA
    42c11e4 View commit details
    Browse the repository at this point in the history
  2. Docs updates and validation

    - Address review for v2.0 upgrade guide
    - Update documentation for application related resources/data sources
    - Improve validation for new application properties
    manicminer committed May 11, 2021
    Configuration menu
    Copy the full SHA
    af025f2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dab1031 View commit details
    Browse the repository at this point in the history
  4. Update docs for remaining resources/data sources, update service prin…

    …cipals
    
    - Document new fields and deprecations
    - Improve test coverage for azuread_service_principal
    - oauth2_permissions -> oauth2_permission_scopes deprecation for service
      principal resource and data source
    manicminer committed May 11, 2021
    Configuration menu
    Copy the full SHA
    4bfce61 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    784082f View commit details
    Browse the repository at this point in the history
  6. More todos

    manicminer committed May 11, 2021
    Configuration menu
    Copy the full SHA
    4bf6041 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f680f3f View commit details
    Browse the repository at this point in the history

Commits on May 13, 2021

  1. Configuration menu
    Copy the full SHA
    c7fa48e View commit details
    Browse the repository at this point in the history
  2. Migration guide fixups

    manicminer committed May 13, 2021
    Configuration menu
    Copy the full SHA
    5cdc32a View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

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

Commits on May 18, 2021

  1. Configuration menu
    Copy the full SHA
    c6ce6c1 View commit details
    Browse the repository at this point in the history
  2. Changelog for #373

    manicminer committed May 18, 2021
    Configuration menu
    Copy the full SHA
    0681240 View commit details
    Browse the repository at this point in the history
  3. Compatibility fixes for azuread_application_password and azuread_serv…

    …ice_principal_password
    
    For both resources:
    
    - Since `value` is to be removed, generate a value for AAD Graph if one
      is not specified in configuration, mimicking characteristics of
      msgraph-generated passwords
    - As `end_date` / `end_date_relative` are also being removed, default
      `end_date_relative` to 17520h (2 years) which mimics MS Graph
    manicminer committed May 18, 2021
    Configuration menu
    Copy the full SHA
    8d8f987 View commit details
    Browse the repository at this point in the history
  4. Update Hamilton to v0.13.0

    manicminer committed May 18, 2021
    Configuration menu
    Copy the full SHA
    e56ebf2 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Configuration menu
    Copy the full SHA
    02a6a58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44e470f View commit details
    Browse the repository at this point in the history
  3. AAD Graph test fixes

    manicminer committed May 19, 2021
    Configuration menu
    Copy the full SHA
    d08ab44 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1015701 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4cd4d74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b2de421 View commit details
    Browse the repository at this point in the history
  7. Update dependencies

    manicminer committed May 19, 2021
    Configuration menu
    Copy the full SHA
    141b076 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1aea423 View commit details
    Browse the repository at this point in the history