3 Star 0 Fork 0

mirrors_AzureAD/microsoft-authentication-cli

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
7 months ago
Loading...
README
MIT

Microsoft Authentication CLI

Tests Release GitHub release (latest by SemVer) License


AzureAuth is a CLI wrapper for performing AAD Authentication. It makes use of MSAL for authentication and caching.

The CLI is designed for authenticating and returning an access token for public client AAD applications. This acts like a credential provider for Azure Devops and any other public client app.

Platform Support

[!WARNING] AzureAuth support for Ubuntu was suspended as of version 0.8.6. Please file an issue if this lack of support causes issues for you.

[!IMPORTANT] At this time AzureAuth does NOT support headless Linux environments unless you are using device code flow. See msal#3033 and #410 for more information.

Operating System Integrated Windows Auth Auth Broker Integration Web Auth Flow Device Code Flow Token Caching Multi-Account Support
Windows ⚠️ --domain account filtering
OSX (MacOS) N/A ⚠️ via Web Browser ⚠️ --domain account filtering
Ubuntu (Linux) N/A ⚠️ via Edge ⚠️ in GUI environments ⚠️ in GUI environments. See msal#3033 ⚠️ --domain account filtering

Installation

Windows

On Windows we provide a PowerShell bootstrap script, which will download and extract the application to %LOCALAPPDATA%\Programs\AzureAuth and automatically add the azureauth binary to your $PATH. You can set an alternative installation location via the $AZUREAUTH_INSTALL_DIRECTORY environment variable. We don't currently provide a means of downloading the latest release, so you must specify your desired version via the $AZUREAUTH_VERSION environment variable.

To install the application, run

# 0.9.2 is an example. See https://github.com/AzureAD/microsoft-authentication-cli/releases for the latest.
$env:AZUREAUTH_VERSION = '0.9.2'
$script = "${env:TEMP}\install.ps1"
$url = "https://raw.githubusercontent.com/AzureAD/microsoft-authentication-cli/${env:AZUREAUTH_VERSION}/install/install.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $url -OutFile $script; if ($?) { &$script }; if ($?) { rm $script }

Note: The script does not signal currently running processes to update their environments, so you'll need to relaunch applications before the $PATH changes take effect.

Note: Uninstalling can be done with the uninstallation script. Read more

macOS

On macOS we provide a shell bootstrap script, which will download and extract the application to $HOME/.azureauth and automatically add the azureauth binary to your $PATH. You can set an alternative installation location via the $AZUREAUTH_INSTALL_DIRECTORY environment variable. We don't currently provide a means of downloading the latest release, so you must specify your desired version via the $AZUREAUTH_VERSION environment variable.

To install the application, run

# 0.9.2 is an example. See https://github.com/AzureAD/microsoft-authentication-cli/releases for the latest.
export AZUREAUTH_VERSION='0.9.2'
curl -sL https://raw.githubusercontent.com/AzureAD/microsoft-authentication-cli/$AZUREAUTH_VERSION/install/install.sh | sh

Note: The script currently only updates the $PATH in ~/.bashrc and ~/.zshrc. It does not update the environment of currently running processes, so you'll need to relaunch applications (or source your shell profile) before the $PATH changes take effect.

Using AzureAuth

Instructions on using AzureAuth CLI in your applications are available here.

Data Collection Is Off By Default

No telemetry will be collected unless you set the AZUREAUTH_APPLICATION_INSIGHTS_INGESTION_TOKEN environment variable or the registry key ApplicationInsightsIngestionToken under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AzureAuth to a valid Application Insights ingestion token.

If you choose to turn data collection on, the software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Microsoft Authentication CLI Copyright (c) Microsoft Corporation. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No release

Activities

3年多前创建了仓库
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_AzureAD/microsoft-authentication-cli.git
git@gitee.com:mirrors_AzureAD/microsoft-authentication-cli.git
mirrors_AzureAD
microsoft-authentication-cli
microsoft-authentication-cli
main

Search