Coder Social home page Coder Social logo

mc5eamus / microsoft-authentication-library-for-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azuread/microsoft-authentication-library-for-dotnet

0.0 2.0 0.0 4.06 MB

Microsoft Authentication Library (MSAL) Preview for .NET

Home Page: https://aka.ms/aaddev

License: MIT License

C# 99.48% Batchfile 0.19% PowerShell 0.16% JavaScript 0.13% CSS 0.05%

microsoft-authentication-library-for-dotnet's Introduction

Microsoft Authentication Library (MSAL) Preview for .NET, Windows Store, UWP, NetCore, Xamarin Android and iOS

Conceptual documentation Getting Started Sample Code Library Reference Support

The MSAL library for .NET gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. The library also supports Azure AD B2C.

Stable (master branch) Nightly (dev branch)
NuGet MyGet
Branch Status Notes
dev (VSTS) Builds the entire MSAL solution

Important Note about the MSAL Preview

This library is suitable for use in a production environment. We provide the same production level support for this library as we do our current production libraries. During the preview we may make changes to the API, internal cache format, and other mechanisms of this library, which you will be required to take along with bug fixes or feature improvements. This may impact your application. For instance, a change to the cache format may impact your users, such as requiring them to sign in again. An API change may require you to update your code. When we provide the General Availability release we will require you to update to the General Availability version within six months, as applications written using a preview version of library may no longer work.

Requirements

  • Windows 7 or greater
  • .NET 4.5 or greater

Community Help and Support

We use Stack Overflow with the community to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.

If you find and bug or have a feature request, please raise the issue on GitHub Issues.

To provide a recommendation, visit our User Voice page.

Contribute

We enthusiastically welcome contributions and feedback. You can clone the repo and start contributing now. Read our Contribution Guide for more information.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Security Library

This library controls how users sign-in and access services. We recommend you always take the latest version of our library in your app when possible. We use semantic versioning so you can control the risk associated with updating your app. As an example, always downloading the latest minor version number (e.g. x.y.x) ensures you get the latest security and feature enhancements but our API surface remains the same. You can always see the latest version and release notes under the Releases tab of GitHub.

Security Reporting

If you find a security issue with our libraries or services please report it to [email protected] with as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting this page and subscribing to Security Advisory Alerts.

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License");

Using MSAL

Step 1: Add MSAL to your Solution/Project

  1. Right click on your project > Manage packages.
  2. Select include prerelease > search msal.
  3. Select the Microsoft.Identity.Client package > install.

Step 2: Instantiate MSAL and Acquire a Token

  1. Create a new PublicClientApplication instance. Make sure to fill in your app/client id
    PublicClientApplication myApp = new PublicClientApplication(CLIENT_ID);
  1. Acquire a token
    AuthenticationResult authenticationResult = await myApp.AcquireTokenAsync(SCOPES).ConfigureAwait(false);

Step 3: Use the token!

The access token can now be used in an HTTP Bearer request.

microsoft-authentication-library-for-dotnet's People

Contributors

abhishek58g avatar bgavrilms avatar brandwe avatar danieldobalian avatar henrik-me avatar hsar avatar jackj93 avatar jennyf19 avatar jmprieur avatar migueldeicaza avatar oriain avatar rayluo avatar somkape avatar trwalke avatar twsouthwick avatar weijjia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.