Socket
Socket
Sign inDemoInstall

github.com/microsoft/kiota/authentication/go/azure

Package Overview
Dependencies
12
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/microsoft/kiota/authentication/go/azure

Package microsoft_kiota_authentication_azure implements Kiota abstractions for authentication using the Azure Core library. In order to use this package, you must also add the github.com/Azure/azure-sdk-for-go/sdk/azidentity.


Version published

Readme

Source

To-do

Go

  • unit tests
  • move to its own repo and implement the guidelines to make referencing the module easier
  • add doc.go
  • rename module name, update reference and remove the replace directive

Using the Azure Authentication library

  1. Navigate to the directory where go.mod is located for your project.

  2. Run the following command:

    go get github.com/microsoft/kiota/authentication/go/azure
    
  3. In the code

    cred, err := azidentity.NewDeviceCodeCredential(nil)
    authProvider, err := kiotaazure.NewAzureIdentityAuthenticationProviderWithScopes(cred, []string{"User.Read"})
    

FAQs

Last updated on 31 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc