microsoft-authentication-library-for-android | Microsoft Authentication Library (MSAL) for Android | Azure library

 by   AzureAD Java Version: v4.5.0 License: MIT

kandi X-RAY | microsoft-authentication-library-for-android Summary

kandi X-RAY | microsoft-authentication-library-for-android Summary

microsoft-authentication-library-for-android is a Java library typically used in Cloud, Azure applications. microsoft-authentication-library-for-android has build file available, it has a Permissive License and it has low support. However microsoft-authentication-library-for-android has 24 bugs and it has 8 vulnerabilities. You can download it from GitHub, Maven.

Microsoft Authentication Library (MSAL) for Android.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              microsoft-authentication-library-for-android has a low active ecosystem.
              It has 170 star(s) with 112 fork(s). There are 126 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 707 have been closed. On average issues are closed in 267 days. There are 14 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of microsoft-authentication-library-for-android is v4.5.0

            kandi-Quality Quality

              microsoft-authentication-library-for-android has 24 bugs (0 blocker, 0 critical, 18 major, 6 minor) and 393 code smells.

            kandi-Security Security

              microsoft-authentication-library-for-android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              microsoft-authentication-library-for-android code analysis shows 8 unresolved vulnerabilities (0 blocker, 2 critical, 6 major, 0 minor).
              There are 21 security hotspots that need review.

            kandi-License License

              microsoft-authentication-library-for-android is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              microsoft-authentication-library-for-android releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              microsoft-authentication-library-for-android saves you 9149 person hours of effort in developing the same functionality from scratch.
              It has 19920 lines of code, 1360 functions and 262 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed microsoft-authentication-library-for-android and discovered the below as its top functions. This is intended to give you an instant insight into microsoft-authentication-library-for-android implemented functionality, and help decide if they suit your requirements.
            • Acquires a token using the provided parameters
            • Returns a callback for the loadAccounts callback
            • Gets accounts
            • Gets a list of accounts
            • Creates a claims request parameter from a WWW - Authenticate header
            • Deserialize a claims request
            • Acquires an access token using the provided parameters
            • Get authentication callback
            • Initialize the application
            • Checks if the browser tab activity is configured
            • Sign out
            • Gets command callback
            • Initializes the view
            • Appends the query parameter to the URL
            • Initializes the app manager
            • Generate signed HTTP request
            • Invoked when the user wants to create a new instance ID response
            • Launches a Chrome Custom Tab or Chrome Tab
            • Called when the activity has been launched
            • Returns whether the browser tab activity is configured or not
            • Decode the given url to map
            • Serialize the ClaimsRequest to JSON
            • Get the chrome package name of the chrome package
            • Returns a refresh token
            • Generate shr
            • Method to get the current account
            Get all kandi verified functions for this library.

            microsoft-authentication-library-for-android Key Features

            No Key Features are available at this moment for microsoft-authentication-library-for-android.

            microsoft-authentication-library-for-android Examples and Code Snippets

            No Code Snippets are available at this moment for microsoft-authentication-library-for-android.

            Community Discussions

            QUESTION

            MSAL + SAML Integration Android
            Asked 2022-Jan-13 at 20:13

            Looking to integrate SAML instead of oAuth using MSAL (Microsoft Authentication Library). I have a working android application with oauth login which was setup using the link. Now, since the application is configured with SAML for SSO in Enterprise application option in the azure portal I want the application to login using the SAML IDP but the application keeps loading the old oAuth authentication. What am I missing here?

            ...

            ANSWER

            Answered 2022-Jan-13 at 20:13

            MSAL does not support SAML. It only supports OAuth / OpenID Connect.

            You need to integrate with a SAML stack.

            Source https://stackoverflow.com/questions/70701487

            QUESTION

            Customize MSAL login screen in Android
            Asked 2021-Oct-29 at 15:23

            I am developing an android application which uses MSAL to login. Is there anyway to customize the default screen so that I can include a background image and all?

            I am referring the below url for MSAL

            https://github.com/AzureAD/microsoft-authentication-library-for-android

            ...

            ANSWER

            Answered 2021-Oct-29 at 15:23

            The customization options are limited to Azure AD to brining and some text fields. It allow you to customize the appearance of the sign-in page with your company logo and custom color schemes. Company branding is available only if you upgrade to premium or Basic edition of Azure AD.

            Here are the customization options. Learn more here.

            Source https://stackoverflow.com/questions/69756258

            QUESTION

            Android Authentication using MSAL
            Asked 2021-Sep-30 at 20:39

            I am trying to implement Authentication using MSAL for Android app but I can't figure out how to get this: enter link description here

            I figured out so I need to create signing keys for my application the instruction here - enter link description here

            I can not understand how to implement it. Please help me if somebody had experience with it

            ...

            ANSWER

            Answered 2021-Sep-30 at 20:39

            You are encountering this because you have not added the key of apk in the Configuration of the Android application.

            In the redirect_uri, the part refers to the package name returned by the context.getPackageName() method. This package name is the same as the application_id defined in your build.gradle file.

            NOTE: This is the minimum required configuration. MSAL relies on the defaults that ships with the library for all other settings. Refer to the configuration file documentation to understand the library defaults.

            In this case. This is the key of signed application. This value cannot be static. You need to provide Microsoft that this application is Authenticating against the real app.

            After registering your app in AAD it will prompt a keytool -exportcert -alias SIGNATURE_ALIAS -keystore PATH_TO_KEYSTORE | openssl sha1 -binary | openssl base64. From this command you can generate the signature of the android keystore keys.

            Source https://stackoverflow.com/questions/69275842

            QUESTION

            Android , How to access SharePoint data?
            Asked 2021-Feb-04 at 05:36

            Basically , I wanted the files in my Company Sharepoint after reading documents provide by microsoft. By using Microsoft Graph authentication API I be able to receive authenticationResult.accessToken by following this example https://github.com/AzureAD/microsoft-authentication-library-for-android

            After that I request https://graph.microsoft.com/v1.0/sites/{Mycompany}.sharepoint.com/drives/{Drives ID}/list/items

            the response is all the items in that drives.

            But

            I want to get specific file to display in my application by add item ID

            https://graph.microsoft.com/v1.0/sites/{Mycompany}.sharepoint.com/drives/{Drives ID}/list/items/{Item ID}

            I got this error

            ...

            ANSWER

            Answered 2021-Feb-04 at 05:36

            The above error is because there is no access token when you were calling the Graph API call. Make sure you pass the header with the HTTP call having access token in Authorization parameter. As suggested by @Dev you can also check in https://jwt.ms and see the access token claims. You can also try the below HTTP call.

            https://graph.microsoft.com/v1.0/sites/{siteid}/lists/{listid}/items/{itemid}

            in Graph Explorer and you could find the difference.

            Source https://stackoverflow.com/questions/66021895

            QUESTION

            MsalException: Applicationis not configured as a multi-tenant application. Android
            Asked 2020-Aug-22 at 13:00

            My Android app is using MSAL with this guide azure

            When I try to sign up I get this error

            MsalException: Applicationis not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.

            Now i don't want to configure the application to be multi-tenant. so that leaves me with the second option of

            Use a tenant-specific endpoint

            From what I've seen I need to add it to the msal.config file which now looks like this :

            ...

            ANSWER

            Answered 2020-Aug-22 at 13:00

            In the "audience", change the "type" to "AzureADMyOrg" and add "tenant_id" after that like below.

            Source https://stackoverflow.com/questions/63399759

            QUESTION

            Meanining of PACKAGE_SIGNATURE in MSAL
            Asked 2020-May-20 at 13:15

            In the README of MSAL, a configuration file is discussed, containing what is referred to by "YOUR_BASE64_URL_ENCODED_PACKAGE_SIGNATURE".

            They also advise the user to store this as a "raw" resource.

            This is the template given:

            ...

            ANSWER

            Answered 2020-May-20 at 13:15

            I think it makes sense, it shouldn't be static. you want to microsoft to be able to prove that it is authenticating against your real app and not a modified or different application. this is the signed application for release with apk,

            you need to sign your app in order to be able to put it on the play store or to have it validate:https://developer.android.com/studio/publish/app-signing

            per the microsoft documentation: https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-android#integrate-with-microsoft-authentication-library

            it tells you how to generate the hash. in the portal when you set up the authentication on app reg it will give you a command like: keytool -exportcert -alias SIGNATURE_ALIAS -keystore PATH_TO_KEYSTORE | openssl sha1 -binary | openssl base64

            to generate the signature it just gets gets the signature of the android keystore keys. Hopefully this helps.

            Source https://stackoverflow.com/questions/61906433

            QUESTION

            com.microsoft.identity.client.exception.MsalClientException: Unable to perform cloud discovery
            Asked 2020-May-05 at 12:59

            I am getting this error:

            ...

            ANSWER

            Answered 2020-May-05 at 12:59

            I added these two lines to the AndroidMainfest.xml file based on information provided by the Azure B2C team:

            Source https://stackoverflow.com/questions/61579786

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install microsoft-authentication-library-for-android

            You can download it from GitHub, Maven.
            You can use microsoft-authentication-library-for-android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the microsoft-authentication-library-for-android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AzureAD/microsoft-authentication-library-for-android.git

          • CLI

            gh repo clone AzureAD/microsoft-authentication-library-for-android

          • sshUrl

            git@github.com:AzureAD/microsoft-authentication-library-for-android.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link