show auth popup in spotify preview api - spotify

I'm trying to migrate a spotify app into the new preview API.
Using the old framework I could get access to auth module and show an oauth popup using showAuthenticationDialog method.
However, I can't find the equivalent in the preview API.
Would appreciate any help
Thx,
Adaf

Currently there is no equivalent to the auth module in the Preview API. This API is still under development, so changes will be made until it is finally released.

Related

oAuth in a regular MVC application

I just finished integrating DocuSign API into my C# MVC application. My MVC app is NOT .net core. So far I worked with OAuth Token Generator from the developer portal of DocuSign and hard coding the returned token.
Now I need to implement the oAuth token generation on the fly and
I need to do the Authorization Code Grant. But not sure how to implement it with C#. When I make a request to
https://account-d.docusign.com/oauth/auth?XXXXXX
from MVC app I am getting a cross domain error. Please advise how to proceed?
Once again I am using a regular MVC app and NOT Core. In the sample app is in Core and
that doesn't help me.
Any help is greatly appreciated.
thanks
Are you using latest Chrome? its default mode would have strict cookies and not allow an app launched from localhost to store cookies in other domains.
Another option is that you're using an iframe, that is not allowed for auth either.
I would suggest you install the VS Extension and add DocuSign to your app as a way of a shortcut.
Otherwise, may need to debug the issue, try a different browser, host your code somewhere or change the way you do auth.

How can i safely pass access token generated from Google OAuth to a NodeJS REST API?

I am creating two application :
1. Chrome extension for gmail.
2. It's IOS version
Now, since both the applications have same behavior and uses same google apis extensively, i decided to create a single project in google cloud platform for both. Now, when creating credentials, what will be my application type? I see both 'IOS' and 'Chrome App' under application type. Should i generate two Client IDs for chrome app and ios app?
To use single Client ID, i also tried creating a Node REST API (created a new project and set application type to 'web application' in google cloud platform) that will be used by both of my application to make request to google apis? But the authorization process includes, setting a callback url to get the authorization code and later use this code to get the access token. I guess this is not feasible for a REST API. Where should i keep the authorization part? In the application itself and later send the access token to my rest api? Is it possible?
I am very much confused about how should i start. Please could anyone suggest a better way to do this?
I generated two client ids, one for ios and for the web. Isolating both applications is a good way to start. Both the apps generate their own token id, pass the id to Node Rest API and later the use that token to make a request to Google APIs.

How to authenticate google api to insert calendar events - NodeJs

How can I authenticate my api access to insert new events to my google calendar without OAuth? I'm writing a node script without any front end/website and everywhere seems to recommend using OAuth with a redirect to your website...
The best solution I have come up with is write a secondary application purely to listen for that redirect and save the auth code returned.
Any suggestions would be greatly appreciated!
I think it was designed that OAuth be used to handle authentication and authorization when you're using Google APIs. You can read that from the Using OAuth 2.0 to Access Google APIs.
Google APIs use the OAuth 2.0 protocol for authentication and
authorization. Google supports common OAuth 2.0 scenarios such as
those for web server, installed, and client-side applications.
If you're using NodeJS for Calendar API, you can try the Node.js Quickstart. You'll be needing the following:
Node.js installed.
The npm package management tool (comes with Node.js).
Access to the internet and a web browser.
A Google account with Google Calendar enabled.

How to integrate Flickr API to my android app?

What are the steps involved to integrate the flickr api to my android app ,so that I can view my photos in a gallery.
Use scribejava for auth/requests.
More about authentication read here.
Then get tokens, try calls api methods.
Also you can test methods direct from web by API Explorer (https://www.flickr.com/services/api/explore/{method}.

Library to authenticate user using their Facebook and Google accounts using OAuth on Mono Droid and Mono Touch

I'm very new to Mono Droid and Mono TOuch, but I would like to know if there is any library that allows me to authenticate users of my application using their Facebook and Google accounts?
I've seen some examples for the Facebook SDK on "Mono for Android" and "Mono Touch" , but since I don't need the full facebook SDK and I only need a small set of info from the user I was wondering if there is a simple library that will allow me to authenticate to any site using OAuth (I'm only interested on Google and Facebook for now).
Did you try community-based implementations from OAuth site?
About Facebook API binding: I tried Facebook API binding for MonoTouch with no success. After that I started using official JSON-based Facebook Graph API. It's relatively easy to implement calling of any API method. For more information about using Facebook API in MonoTouch/MonoDroid apps please see that answer.

Resources