Integration of angular based web application with Freshdesk - oauth

WE have our current Angular based SPA application which we would like to integrate within Freshdesk ticketing system. It would be like a IFRAME on ticket page which will render our application and agent who is working on ticket can use our application in IFRAME.
I installed Freshdesk CLI and tried to create sample freshdesk app and it did show up in ticket window, but now when I tried to create another app using "fdk create", it does not even go to next step.
My questions:
can you direct me to correct documentation which will guide me step by step how I can integrate my SPA application in freshdesk using IFRAME apporach?
can you share some examples?
How can I direct freshdesk logged in agent to our SPA url within IFRAME, where our application will authorize freshdesk logged in agent to view our app?
Thanks in advance.
I have sample custom app that I am able to render in ticket view page. This way I am able to render my application home page, but how do I get authorization from Freshdesk and render my app in iframe?
Once I created the application using "fdk create" , now I am not able to create the another app using the same command.

Freshdesk now supports a newer App location called full_page_app that can be accessed from global side bar.
Example: To render an app in iframe, after you create your_first_app try adding <iframe> tag and embed your website in template.html
You can read this blog on how to do it.
Download the code from the sample app here.
Freshworks developer platform now supports OAuth 2.0 capabilities. As soon as you add an config/oauth_config.json with respect to this documentation, the app will be loaded only after OAuth handshake is performed. In either case you can use Basic Auth as well.
You cannot use same fdk create command if the directory is not empty. Make sure you create a new folder and navigate there first.

Related

Sign in with Apple for react.js app hosted on GitHub Pages

I am building a small web app with react.js to learn how to use it and I would like to learn how to integrate Sign-in with Apple button but I have run into an issue. My project is hosted in GitHub Pages and Apple doesn’t recognize https://username.github.io/repo/ as a valid url when doing the "Web Authentication Configuration” step. I figure I can move my project and get a domain, a real url and, all that but that's far too much work to get a button on a web app that no one will ever see. Is there another way to get it working while still using GitHub Pages? I have been following this tutorial for reference.

Issue with implementing "Login with Github" in iOS app

I am trying to understand how I can authenticate my iOS app using github. I understand from the documentation, that I need to implement this using OAuth.
I also understood that in my github profile, I need to register a new OAuth application, the form to do that looks like this:
I don't understand what info I have to provide for Homepage URL and Authorization callback URL as I am building an iOS app and not a webapp that is actually hosted on some server.
I would suggest trying FireBase. It has an infrastructure to enable GitHub login specifically. Also, there are sufficient examples to create the app.

Any way to access resource from ADAL.NET Library (native apps) on a web browser without having to do login activity again?

I am currently creating Universal Windows App (native) that uses Microsoft Graph API. For authentication, I used ADAL for .NET library by calling GetTokenAsync() on the AuthenticationContext (https://github.com/AzureAD/azure-activedirectory-library-for-dotnet). The library will automatically prompt a login window for the user to enter its credentials.
Later I was required to open a OneNote URL on a web browser. I managed to get the note URL from the Microsoft Graph API (OneNote API) and then I realized when I tried to open the URL on a browser I was redirected to the Microsoft login page (http://login.microsoftonline.com).
This is not very good for user experience because they needed to enter their credentials twice (on the ADAL prompt window and on the browser). Is there any way whatsoever so that the user can do the login activity only once?
User needs to enter their creds on Microsoft online website but not twice. please debug the app and store this context ticket so you can use it in your win universial app. by the way, make sure that you are not pointing your app to two different api endpoints. go with the Microsoft graph api endpoint but not any other legacy endpoint for your app. Hope this helps.

Is there a way to use an existing Facebook application token when invoking operations via the JS api?

I have a hybrid native/HTML iOS app that utilizes Facebook. Within the app I've authenticated the user via single sign on API and I have a valid auth token. Within a web view in the, I embed a web component that also utilizes FB (in my case, a Like box and button for our app page). If I click on the Like button I am forced to authenticate yet again in the context of the browser. Is there a way for me to utilize the token obtained by the container app within this web view so that a second authentication can be avoided?

Using Google + API and LinkedIn API within a desktop application (without prompting user for username-password)

I'm going to create a page which will download user's activity and save it in an .xml file because my iphone app needs to process it. The problem is that I cannot prompt the user for login-password... so I was wondering if there is a sort of permanent key that I can use to access into linkedin and gplus?
Thank you.
Google+
I can field the Google+ part of your question :)
You can access your users' public activity using the REST API's activity list method. To identify who they are you'll need to send them through an OAuth flow during which they will authorize you to know who they are on Google+.
The best way to get started doing server side OAuth flows in Google+ is to grab one of the starter projects and go through the included readme. That will give you a working project to copy code out of, or develop upon.
I'd include a code sample to show you how it works, but I don't know what would best apply to your back end :)
Linkedin
I'm far from an expert on their APIs, but it looks like the flow would be similar using OAuth.

Resources