Can I use external APIs to authenticate users?

I have been asked to develop a lightswitch application either as desktop client or HTML client. Now I am confused about the authentication
mechanism in LightSwitch, and it leads a question: Can I authenticate my users from an external website or application?  
For the HTML client, I have been thinking that whether I could use external APIs like Facebook Login API to authenticate my users? If I could, the code should be JavaScript, then where should I put it, and how can I configure my LS application?
For the desktop client, same question, if I could identify my users by pulling some user information from an external website, what kind of code/Programming Language shall I use? 

Hey ConnorTx!
This is not supported out of the box.
For in-browser desktop applications, you can hack around this by setting up the social media credentials, then redirecting to your desktop application while passing the self-encrypted credentials.  I explained this workaround in
this article.
I don't have enough production experience with HTML apps yet.  However when you use Forms authentication, I suspect you can simply fill in the IPrincipal on the HttpContext.Current, then redirect to your HTML app, and the LightSwitch Forms Auth mechanism
would pick up your principal as valid credentials.  I wish I had time to show you some code for this, would make a great blog post :/
Keep rocking LS!
Jan
It's your story - time to switch on the innovation.||About me||LightSwitch blog

Similar Messages

  • How to access Task details using BPM API for substituting user

    Hi Expert,
    I need one help, we have a requirement, in which I wanted to access the BPM task details of a user which is substituting user using BPM API.
    Substituting user's name is not exist in Potential owner of Task. That’s why Using method "getMyTaskAbstracts(Status)" we cant acess those task which assigned by Substited user.
    Kindly let me know if there is any way, we can get task details of the task which assigned by substituted user to substituting user.
    Regards
    Div

    Pl use this api.
    getTaskAbstractsForMySubstitutedUsers.There are couple of variations u can use.
    Thanks
    Manish

  • Using KM APIs with Anonymous user

    Dear SDNites,
    I have gone thorough one of the SAP notes on possible CM scenarios with anonymous users. It says the the supported scenarios are Search, browse and download.
    My question is that can we use KM apis in these areas with anonymous users?  I got some documentation on KM Indexmanagement APIs for searching with TREX, which requires authenticated user. I am wondering is there any way to use those APIs with anonymous user access.
    Thanks a lot in advance.
    Regards
    Pavan

    Hi Pavan,
    if you access the KM via Web Service you'll find parameters in each service to send username and password.
    If you browse the KM reposiroties via http you may need to do an authentication first. If your portal accepts basic authentication (as it does by default) you may call the KM explorer iView with some URL like:
    http://<username>:<password>@<hostname>.<domain>:<port>/<path to KM iView>
    If this does not work, maybe you need to use a client that supports basic authentication (digest). This may be e.g. the OpenSourcer library [HttpClient|http://hc.apache.org/] from the Apache project.
    See [RFC2617|http://www.faqs.org/rfcs/rfc2617.html] for more details on Basic Authentication and Basic Authentication (digest).
    If you have some more questions, please come back.
    Carsten

  • Can I use iCloud to since many users to one account for my business and have me as a administrator to oversee and change peoples calendars?

    Can I use iCloud to since many users to one account for my business and have me as a administrator to oversee and change my employees calendars and contacts??

    Go to System Preferences and click Sign Out, select Delete at all the prompts, then sign back in with the changed ID?   (Your iCloud data will disappear from your Mac when you sign out and choose Delete, but will still be in iCloud.  Provided you are signing back into the same account your data will reappear on your Mac when you sign back in.)

  • Can you use external hard drives with the HP Omni 10 5600US

    Since this a Windows tablet, can you use external hard drives with the HP Omni 10 5600US?
    I know there is a micro-sd reader for additional storage but can you use the usb for external hard drives like a regular pc?
    I tried looking at the spec's for this tablet and it said the usb port was host only. I'm not sure what that means exactly.

    Yes you can.  You'll need to purchase a USB OTG (on-the-go) cable.  I recommend using a drive that has its own power supply but I've successfully used small USB powered drives also.

  • Can i use 2D API with out using JRE.

    hi,
    can i use 2d API with out using JRE 1.3 .
    please reply
    ravi

    Yes, it was (still is?) supported in Java 1.2 - but no
    earlier.How is it done.can u please give some sample code.
    Thanks and regards,
    Ravikumar

  • Can we use external drive with ipad air

    can we use external drive with ipad air?

    There are some wifi-enabled drives that allow you to stream content (music, films, tv programmes) to an iPad, but you can't directly connect one to an iPad.

  • Can I use external speakers with the iPad when using Facetime?

    Can I use external speakers with the iPad when using Facetime?  How do I do that?

    They have to be either plugged in via headphone jack or the dock port at the bottom. If you can. I've used it on apple tv, but that's it. I don't know if the others work, but I don't see why not. Try plugging in speakers in the headphone jack. You will get an answer :)

  • How to get all GroupSpaces name using Spaces API, irrespective of user logged in?

    Hi
    Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups.
    Is there any way to get all groupspaces details?
    Regards
    Raj

    i don't think so other than admin user can get all group spaces informaiton, is it possible in webcenter portal:spaces default deployment?

  • Internally installed Outlook 2010 prompts for password using external smtp email as user id

    Hi,
    After exchange 2007 to exchange 2013 migration all internally connected outlooks 2010 (xp, vista, win7, win8) prompt for password using external email user address as user id.
    Below some of my settings and informations.
    Internal domain: contoso.local
    External domain: contoso.com
    Exchange is NOT published to Internet at all.
    Internally OWA, ECP runs OK.
    Test-OutlookWebservices with user.name(at)contoso.local or contoso\user.name - runs OK
    Test-OutlookWebservices with user.name(at)contoso.com - fails
    Common scenario - (all happens internally):
    1.User starts Outlook
    2.Outlook prompts for password with default user.name(at)contoso.com as id
    - while user tries to authenticate using his domain password - outlook re-prompts
    - while user changes id from user.name(at)contoso.com to user.name(at)contoso.local or contoso\user.name and authenticates - Outlook connets to exchange and till next Outlook it runs ok.
    I am bus with that issue since 1 week and I am already bit tired. I was looking for answer via gogle/bing and went through tons of "Outlook perpetually prompts for password" threads and blogs. No success.
    Do you have any clue where else start to play with that?

    Hi,
    Thank you for answer - no luck
    >NExt og to Connection tab - Exchange Proxy settings - Proxy authentication settings - is it set
    >to NTLM or Basic?Give it a try on one of them.(if set to NTLM change to basic and vise versa).
    On both settings the same results - Outlook is prompting for password.
    >Another thing you could try is og to Internet Explorer - tool -internet options- Security - click local
    >intranet - >custom Level and scroll Down to bottom and put check mark on automaticly logon
    >With current username >and password.
    >Do this on Trusted sites as well,if Your domain is listed under trusted sites
    The same results - Outlook isprompting for password.
    Should not be some kind of mapping set somehow in AD between user.name(at)contoso.com and user.name(at)contoso.local?
    I have impresion that issue is somewhere in the fact that outlook is trying to connect using contoso.com instead of contoso.local in ntlm credentials.

  • Help; Using External APIs in CLDC, adding AGUI

    I was wondering if it were possible to add JSR 209 to the external APIs that the toolkit uses so I can use AGUI functions.
    If it is possible how do I do this?
    Thanks

    Hi Pascal,
    Thank you so much for your help. Your suggestion has helped to make my life a lot easier.
    Regards,
    Van

  • How can I use external clock to implement a delay?

    Hi all,
      I am testing to use external clock to drive dev/PFI0 (on device 6711) which is used as the clock for the analog ouput. I have thinking two applications by using the external clock but I don't have much idea on the implementation yet.
    First of all, I have a sequence of data (array) with each sample being sent at the interval of 1us. I use an external clock (10MHz) driving the PFI0 so it is pretty easy to achieve that goal. I am thinking what happen if I want each sampel being sent at different time. For example, if I have 5 samples, I want the first one sent 1us after the task start and wait 2us to send the 2nd sample, wait 5us to send the 3rd sample and wait 11 us to send the 4th sample, and wait 1us to send the last sample. Is it possible to achieve that based on the external clock?
    Second question is about the delay. My code require ciritcal timing and the builtin delay doesn't behave very well because I am running in windows. I can increase the priority of the vi to highest, it helps a bit but still not perfect. I am thinking if it is possible to implement hardward delay based on the external clock. Any idea?

    Hello dragondriver,
    To answer your first question, yes you could send data in that fashion. You would have to programmatically build a pulse train and use that to trigger the sending of data. The answer to the second question is essentially the same. You should be able to programmatically build a pulse train with a delay and use it as trigger to begin whatever operation you have.
    Jonathan L.
    Applications Engineer
    National Instruments

  • How can i use external hard drive with mac and pc!

    I've been using a Lacie external hard drive with my mac to keep the itunes library and other things since day one. Since i have a dvd with files for windows and an old pc without a dvd drive, i decided to copy and paste the content of the dvd to the external hard drive. The only problem now is that when i plug the external hard drive to pc, it won't open. I know it has to be formatted in a different way, but i need to find out the best solution!
    Any idea?

    You can format the external drive in Fat32 (which I don't recommend but is the most compatible between both platforms), or NTFS (which requires some work to get your Mac to recognize), or HFS+ (which requires special software on your PC so your PC can use it).
    If you use this drive mostly with your Mac, get MacDrive for your PC:
    http://www.mediafour.com/products/macdrive
    If you use this drive mostly with your PC, here's some software for you Mac. I haven't tried this myself, but the professional reviews have been good:
    http://www.paragon-software.com/home/ntfs-mac/

  • Can't Use Video with other Mac users who use AIM

    I know that ichat is compatible for video chats with other pc users who use aim, but does it work with other mac users who use aim?
    Everytime I try to chat with my friend, I get an error message when trying to start of a video chat.
    BTW, I use a iMac G5 with an isight camera.

    Hi Staci,
    For a Bit of Clarity.
    AOL have their Instant Message App. referred to as AIM.
    Apple decided and did a deal with AOL that iChat could join their service Buddy Lists.
    On these Discussions we tend to refer iChat as Logging into AIM, as they are the servers that the Buddy Lists are held on.
    As iChat can also use Bonjour and Jabber, both of which have their own Buddy list window on your Mac. The Jabber side needs you to have a Jabber screen name - so again people differentiate between this and the AIM side.
    I would guess you friend is trying to make it clear that she is using the AIM side of iChat as opposed to the Jabber side.
    As has been said already, the Application side of things also tend to get referred to generically as "AIM" as well.
    The Mac version has stopped and 4.7 and will only Text chat.
    The PC side needs 5.9 to clearly Video or Audio chat with a Mac using iChat. (AIM 6.0 is not stable enough to A/V chat to iChat).
    1:13 PM Saturday; January 27, 2007

  • How can I use MapQuest API in Adobe Flash CC?

    Hi all,
    Since Google Maps API will be deprecated in 3 months I'm trying to use MapQuest instead. (MapQuest Developer Network: Map APIs, SDKs and Web Services - MapQuest Developer Network)
    But I can't import the component MQFlashMapsAPI_7.1.5_MQ_MOBILE.swc into my project.. Any idea why?
    I've read that I have to import the core.swc from the Flex SDK.. I've put the core.swc file in the components folder, but when I'm going into the components window in Adobe Flash, neither core.swc or MQFlashMapsAPI are visible.
    Do you what should I do in order to import MQFlashMapsAPI in my project ?
    I'm using Adobe Flash pro CC
    Thank you for your help,

    I would be really shocked if it requires ActionScript 2.0 but CC doesn't support that. Otherwise I honestly don't know why it would want a flex library in a place you can't utilize Flex.
    You say you've used this API before. Is this the same MapQuest SWC version you successfully used before or is it updated? What version of flash did you successfully use this in? Lastly did you get Flex from Adobe (4.6.0) or Apache?

Maybe you are looking for