microsoft-authentication-library-for-android | Microsoft Authentication Library (MSAL) for Android | Azure library
kandi X-RAY | microsoft-authentication-library-for-android Summary
kandi X-RAY | microsoft-authentication-library-for-android Summary
Microsoft Authentication Library (MSAL) for Android.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- 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
microsoft-authentication-library-for-android Key Features
microsoft-authentication-library-for-android Examples and Code Snippets
Community Discussions
Trending Discussions on microsoft-authentication-library-for-android
QUESTION
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:13MSAL does not support SAML. It only supports OAuth / OpenID Connect.
You need to integrate with a SAML stack.
QUESTION
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:23The 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.
QUESTION
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:39You 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.
QUESTION
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:36The 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.
QUESTION
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:00In the "audience", change the "type" to "AzureADMyOrg" and add "tenant_id" after that like below.
QUESTION
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:15I 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.
QUESTION
I am getting this error:
...ANSWER
Answered 2020-May-05 at 12:59I added these two lines to the AndroidMainfest.xml file based on information provided by the Azure B2C team:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install microsoft-authentication-library-for-android
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page