I am trying to configure single sign-on feature of SAML 2.0 in my iOS application.
I have successfully configured Auth2.0 using MSAL iOS SDK.
Link: https://cocoapods.org/pods/MSAL
I have also looked into docs also.
LinkL: https://learn.microsoft.com/en-us/azure/active-directory/develop/single-sign-on-saml-protocol
But I am unable to figure out way to integrate SAML 2.0 by MSAL iOS sdk.
I am not sure whether MSAL iOS SDK provide support for SAML 2.0 integration or not.
In BASIC SAML Configuration section, I need to provide "identifier" and "Reply URL"
I am not sure, what I need to provide in these options. Currently in attached picture, I have used dummy url for now.
Pardon me for my poor grammar.
Does anyone know how to setup SAML 2.0 in iOS application.
I got the complete answer from Microsoft support.
If anyone want, then he/she can take a look on this url:
https://learn.microsoft.com/answers/questions/14212/setup-microsoft-azure-saml-20-into-ios-application.html
Related
We've migrated to the latest LinkedIn IOS SDK which only supports single sign-on (SSO) authentication, in conjunction with the official LinkedIn mobile application. Our app works really well with this, however Apple will not approve our latest version, because it requires the LinkedIn app to be installed for the authentication to work.
We need a solution which handles the scenario when the LinkedIn app is not present, to use web authentication, however LinkedIn are very specific stating Mobile SDK-enabled applications require the official LinkedIn iOS app to be installed on the device to function properly" https://developer.linkedin.com/docs/ios-sdk - The Mobile SDK was released in July, so presume we are not alone in having our app rejected by Apple approvals.
Could you test for the presence of the linked-in app:
if it is not there: implement OAuth2 directly through your app
if it is there: use it or your OAuth2 implementation (which you'd probably err on the side of using their app for the link-ability between any features of the app you may need in yours).
Thereby avoiding the REQUIREMENT to have the app installed.
Researching for this I did find:
Mobile vs server-side access tokens
Presently, there is no mechanism available to exchange them. If you
require tokens that can be used in both the mobile and server-side
environment, you will need to implement a traditional OAuth 2.0
solution within your iOS environment to acquire tokens that can be
leveraged in both situations.
from: https://developer.linkedin.com/docs/ios-sdk-auth
which suggests that authentication away from the app is supported.
Pleased to confirm that the solution kindly suggested by Madivad of using the new LinkedIn SDK if the LinkedIn app is installed and when it's not reverting to traditional OAuth 2.0 works fine. Apple are also back on our Christmas card list as they approved this latest version today within 40 minutes of submission:) Thanks Madivad for helping out with this.
I would like to work with Google's .NET API while using OAuth 2.0 flow for devices.
I didn't find any way to use GoogleWebAuthorizationBroker or Create UserCredentials object in .NET when working with OAuth 2.0 flow for devices.
Is there a way to make the above requirement work? or should I use only REST API?
Thanks,
Ronen
Assuming you refer to this flow: https://developers.google.com/accounts/docs/OAuth2ForDevices, it is not supported in the Google APIs Client Library for .NET. So you need to build it yourself though you may be able to reuse large parts of Google's stuff.
Notice that the "OAuth 2.0 flow for devices" is not a standardized OAuth 2.0 flow, so support is not ubiquitous. Also, the Google says elsewhere:
If your app will run on devices that do not have access to a system
browser, or devices with limited input capabilities (for example, if
your app will run on game consoles, video cameras, or printers), then
see Using OAuth 2.0 for Devices.
If that's really your use case you should pursue my suggestions, otherwise you should switch to https://developers.google.com/accounts/docs/OAuth2InstalledApp (see the flow chart on the right side there as well).
The .NET client library for Google APIs supports OAuth 2.0 and it supports several devices including Windows Phone 8.1 and Windows Store applications.
The OAuth 2.0 documentation (including snippets) is available at: https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth.
My obvious recommendation is to use the library, because it will refresh tokens for you automatically (using the stored refresh token) and it's a light OO library which will do a lot of "magics" for you (such as media upload).
By the way, our samples repository includes full sample for a universal app, take a look at Blogger.Sample for more details.
Has anyone had success in using the Gmail API's authorization in a Phonegap application? I found this (http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html) that describes using the generic Google API OAuth with Phonegap's inappbrowser plugin, but the newly released Gmail API does OAuth authorization differently, and I'm not sure how to get it to work with Phonegap.
Note: It does work when I try a web version of my app, but the button that brings up the authorization screen doesn't do anything in Phonegap..not sure why. I do have the appropriate Android credentials for the app in the Google Developer's Console.
UPDATE: Using OAuth's Phonegap SDK (found after registering your app here: https://oauth.io/), I am able to authenticate a Google Account. However, I am unsure how to then call Gmail API methods or correctly pass whatever authentication tokens from the OAuth SDK to any Gmail API code. Has anyone done this and can share their knowledge?
I found a solution using the OAuthio Phonegap SDK. Then I can call the appropriate HTTPS requests from the Gmail API.
If you want to login your users via Google on iOS and Android, then use this new plugin I just created: https://github.com/EddyVerbruggen/cordova-plugin-googleplus
You will also receive the name and gender etc from the plugin. The plugin will also try SSO with any other Google apps installed on your device by using the Google+ SDK on both platforms.
I have a appcelerator titanium app, and I would like to use the same users and password for other apps, not related to appcelerator ACS or titanium, the question is: can I use appcelerator ACS as oauth for other applications?
I'm not familiar with ACS to much but from documentation I can find below:
it is not proffered as the ACS mention in its documentation
Your app must prove that it is allowed to talk to ACS. This keeps your
data secure by preventing anyone from making requests to ACS that
impersonate your app.
but you can create new app with new client-id as in ACS mention that:
You can integrate ACS into your application using the REST API, the
Titanium SDK, or the ACS native iOS and Android SDKs.
http://docs.appcelerator.com/cloud/latest/#!/guide/acs_quickstart
http://docs.appcelerator.com/cloud/latest/#!/guide/acs_authentication
1.How to programmatically connect with QuickBooks Online using .NET? We followed the below article but this needs manual intervention to connect.
http://ippdocs.intuit.com/0025_QuickBooksAPI/0010_Getting_Started/0020_Connect/0010_From_Within_Your_App/Test_the_In-App_Connect_Flow
Initially we developed the sample application using the code:
https://github.com/IntuitDeveloperRelations/IPP_Sample_Code/tree/master/QuickbooksAPI/DotNet/WebForms%20application
2.Which type of integration method we have to use Json or .NET SDK library? Most of the Json examples are code fragment only, Where we can download the sample application using Json with .NET
You cannot connect to Quickbooks APIs without manual intervention as it is a part of the 3 legged OAUTH flow.
The .Net SDK supports XML and JSON. There is no separate JSON library. The sample app for Dotnet in v3 is not yet available. Please refer to the docs for generating the JSON requests.
https://developer.intuit.com
If you want to create SaaS application and want to publish it in Appcenter then you need to implement OAuth flow which needs user's input for authorization. In the dev env, using the above sample app, you can get the OAuth tokens(consumer key, consumer secret, access key and access token) which you can use in your app to call all API endpoints.
https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0150_ipp_.net_devkit_3.0/0002_synchronous_calls/0001_data_service_apis#Step_3:_Build_the_ServiceContext
FAQ - https://developer.intuit.com/docs/0025_quickbooksapi/0058_faq
.Net V3 Link - https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0150_ipp_.net_devkit_3.0
But Intuit Quickbooks API(V2/V3) are only for SaaS app. If you want to create some custom solution for one company then you should use QBSDK.
Ref -https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0250_qb
Thanks