I need to know at any time what is the platform user is using: a mobile app or desktop web browser
You should be able to get the current platform using
$platform = empty($_SESSION['platform']) ? 'base' : $_SESSION['platform'];
Values:
base - default, used for regular web browser sessions
mobile - the official mobile app / mobile mode
portal - for Sugar (Enterprise/Ultimate/Sell/Serve) user portal sessions
opi - the official MS Outlook SugarCRM plugin
lpi - the official Lotus/IBM/HCL SugarCRM plugin
If you want to allow additional custom platform values, you can add them in Administration -> Configure API Platforms (in Developer Tools section)
see https://support.sugarcrm.com/Documentation/Sugar_Versions/10.0/Ent/Administration_Guide/Developer_Tools/#Configure_API_Platforms
Related
I'd like to publish an app on the G Suite Marketplace that allows user and group management/provisioning via SCIM 2.0. Where do I need to go to configure that?
This article from 2016 made me think it would be possible (https://gsuiteupdates.googleblog.com/2016/07/automatically-provision-users-with-scim.html) but I cannot find it anywhere in Google's documentation or Marketplace SDK?
We currently user SCIM as our primary method for integrating with the Identity Providers used by our enterprise clients. Some enterprises use GSuite for SSO though. Our current app in the Google Marketplace doesn't use SCIM and therefore has to be maintained separately.
I am stuck for the moment. I cannot obtain the source code for the mobile project and I do not know where is the problem. All my researches was without positive result.
My intention with IBM Bluemix is to develop myself a small project only in Swift (server side + iOS) because I am iOS mobile developer.
When I try to get the code for mobile project (iOS) I get these error:
Error Notification:
The Cloud Foundry App 'XXX' is missing a required environment variable: 'OPENAPI_SPEC'.
I want to use OpenWhisk SDK for iOS. I do not know where to set the variable OPENAPI_SPEC and what value to put in it.
I have setup a Cloud Foundry App started from "Runtime for Swift - Kitura" and a mobile project named started from "Code Starter - OpenWhisk".
Can you help me with some advice or some sample?
Thank you!
If you added a Swift server side Compute to your mobile project, you will need to add an environment variable called OPENAPI_SPEC to your backend to point to a valid Open API swagger document outlining the API.
This way when you download the project, it will auto-generate an SDK corresponding with your backend's Open API.
For instance, here is how you set the environment variable:
And here is a valid API doc that it's using (albeit not in the most elegant Open API compliant format yet but it works).
https://updatesdk.mybluemix.net/explorer/swagger.json
The idea is that the "project" concept takes an abstracted view of a Compute runtime (Cloud Foundry, Docker, etc.) and only cares that it exposes an API compliant with the Open API specification. Using that defined Open API spec, you can dynamically generate an SDK for a "project" when it's downloaded (for iOS, Android, etc.).
If your backend Compute exposes no Open API specification at this time, and you just want to download the code of OpenWhisk for iOS, you can just deassociate that backend Compute from your mobile project for now, and it should download the code. If you ever build on top of that backend and want to reconnect it in the future, you can add it and redownload at a later time (doing a git diff or using the Bluemix CLI SDK plugin to download an SDK from your Open API specification later in your project's lifecycle).
I am asking me if there is a way to deploy SAP hybrid apps (programmed in WEB IDE) for Android / iOS without having a "local" HAT connector installed?
My intention is that with all this cloud services it should be possible to consume a "build for Android" service in the cloud instead of installing the build stuff on a local developer machine.
This question is a little bit related with these posts:
SAP Mobile Integration with android
SAP HANA Cloud Platform for mobile apps
Yes, this has been implemented end of last year. The prerequisites are as follows:
Subscribe to Portal service
Subscribe to Fiori Mobile service
Create a "default" launchpad in Portal service
Enable the Hybrid App Toolkit plugin in the WebIDE
Now when you create new apps in the WebIDE, on the first page there is a "mobile" checkbox that you need to select. If you have done this, you can trigger a cloud build via the "Fiori Mobile" context menu that you get when you right-click your project. You can find a more elaborate guide here.
Is it possible to use authenticate user from mobile application using Active Directory credentials in IONIC? I have gone through many google, but could not find any thing specific to Active Directory.
Ionic Framework is a front end framework. You can authenticate by any means that's available from your backend API.
auth0.com offers a soultion that might work for your needs if you want to integrate against a pre-baked solution rather that writing your own. They have a library for Ionic Framework.
You can find github repo here: https://github.com/auth0-samples/auth0-ionic2-samples
Auth0 offers identity management as a service (authentication). The Ionic Framework library claims that you can integrate against:
Google,
Facebook,
Microsoft Account,
LinkedIn,
GitHub,
Twitter,
Box,
Salesforce,
Windows Azure AD,
Google Apps,
Active Directory,
ADFS
or any SAML Identity Provider
Keep in mind that your Active Directory server will have to be available to Auth0 in some way in order for the integration to work. This may not be appropriate if you're building a purely internal enterprise app.
We are using Provisioning API's(Readonly Scope) in Google Marketplace. We want to move to new Directory API's as they the older API's are getting deprecated. I couldn't find anywhere whether these new scopes are supported in Google Marketplace Manifest.
Are these new API's supported in marketplace app manifest.
Yes, you just need to turn Admin SDK on underneath the "Register Additional Profiles" page (which links to the API Console for your project) from the Vendor Profile page. You'll still need to perform 2-legged OAuth authentication to gain access.