Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

document support for http proxies #6

Open

Description

@baywet
No description provided.

Activity

  1. added
    documentation
    on Dec 29, 2022
  2. sled commented on Oct 25, 2023

    @sled

    Here's how I configured a proxy:

    credentials = MicrosoftKiotaAuthenticationOAuth::ClientCredentialContext.new(
      ENV.fetch('MICROSOFT_GRAPH_TENANT_ID'),
      ENV.fetch('MICROSOFT_GRAPH_CLIENT_ID'),
      ENV.fetch('MICROSOFT_GRAPH_CLIENT_SECRET')
    )
    authentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(
      credentials, nil, %w[https://graph.microsoft.com/.default]
    )
    request_adapter = MicrosoftGraph::GraphRequestAdapter.new(authentication_provider)
    request_adapter.client.proxy = "http://example.org:8080"
    graph_client =  MicrosoftGraph::GraphServiceClient.new(request_adapter)
    
  3. baywet commented on Oct 25, 2023

    @baywet
    MemberAuthor

    Thanks for providing the information here. For information this is meant to go to this page but we'll add all the information in one shot for the section when we start putting documentation out there for ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions