Developer Dashboard Bug. No OAuth token for packaged app - oauth

Seriously, how do I do this? I've looked and Googled for two days, and it's not there.
I'm trying to sell an app through the Google Web Store. It is a packaged off-line app, with a custom server backend.
I think to do this I need the Licensing API, and that says I need an OAuth Token. I'm following these instructions to get the token.
Here are screenshots of my view of the Chrome App in the Developer Dashboard. My app's id is: lhhdccfgjpdaidjegbioednlnlidefno
I figured out app needs to be "public" to get the "Change Pricing"
button. Ok. Changed it to Chrome Web Store Payments.
After setting the pricing to Chrome Web Store Payments, I publish the app publicly,
but no OAuth token link appears. I don't see an option for this in
any of the UI.
How do I use the Licensing API with a packaged app?
Please help!
Mike

thanks everyone who read/answered this. The missing piece was here:
https://developer.chrome.com/apps/app_identity
Chrome has a browser API to call to get the token. There is no need to get it from the Developer Dashboard, hence I couldn't find it. I think much of the documentation is out of date and written before Chrome had the browser API for this.
This URL is likely a good example even for subscriptions. https://developer.chrome.com/webstore/one_time_payments
Thanks for your help!
Mike

Related

How to authenticate using the installed Twitter app

If the user is logged-in with the native Twitter app installed, I want my app to open the Twitter app to request authorization.
I already implemented the flow to get the oauth_token in order to start the login process through Twitter's api. Only, the current API Documentation do not mention anything about how to use the native iOS app in the process. It only sends back a url for the user to log in.
let url = URL(string: "https://api.twitter.com/oauth/authorize?oauth_token=\(result.oauthToken)")!
DispatchQueue.main.async {
UIApplication.shared.open(url)
}
On getting the requested oauth_token, I get this link. Opening the link will display a Webview to login. Not the native Twitter iOS app.
I tried to use a deeplink to manually launch the Twitter app, but I couldn't found any resources on how to setup the link properly.
So far I have tried things like:
twitterauth://authorize?consumer_key=[KEY]&consumer_secret=[SECRET]&oauth_callback=swifter-[KEY]
or
twitterauth://authorize?oauth_token=\(result.oauthToken)
without any success...
As mentioned in another post, Clubhouse has implemented exactly this flow. So it is possible. The question is how ? 😅
This flow seems to have not been officially supported since the retirement of TwitterKit on May 1, 2018. Any applications that still offer this functionality to their end users likely have some sort of partnership with Twitter to allow for this which is otherwise undocumented publicly.
The reasoning for this was detailed sparsely in a related Twitter Developer Forums thread:
Unfortunately at this time we have had to make some incremental adjustments that are not so smooth for everyone; especially as you’ve found, for mobile app developers. We’re in the middle of a transition to a new API platform (via Twitter Developer Labs) and there will be some changes as we go along - we are asking for your feedback to help us, and if you check the ideas, authentication and authorization is something we’ve heard a lot about.
I cannot tell you today exactly when we’ll get to an enhanced solution, but this is something we are actively working on.
Direct link
The official guidance is to use the traditional WebView method until Twitter officially re-releases this capability:
I don’t believe that this is possible any longer, so I would encourage you to use the full OAuth flow. I apologise that this may not be what your users prefer, but this is the documented way to gain authorisation (we do not document or support URL schemes for the native iOS app).
Direct link
We do not support or document any means of users signing in to Twitter outside of the OAuth flow; any use of undocumented features is subject to change without notice.
Direct link
As linked above Twitter appears to be soliciting feedback on this via their UserVoice page, should you feel so inclined to suggest the re-implementation of such a feature.

After review, we still get "sign in with google temporarily disabled for this app"

We have a mobile app and our users got a
"sign in with google temporarily disabled for this app"
When they tried to login their YouTube account with iOS (There's no problem with Android devices).
We submitted a verification request long time ago, and we got from YouTube an email (May 26th 2020),(May 26th 2020):
"Hi Adam,
Thanks for working with us on the YouTube API Services compliance review. We have completed your review and do not require any further actions from you at this time.
We may reach out again to re-review your API Client for compliance with YouTube API Services Terms and Policies.
We appreciate your time working with us on this and please continue to comply with the YouTube API Services Terms and Policies."
Since then, nothing had changed and our app hasn't been verified yet, and our users can't connect with their youtube accounts.
What can we do? We are just waiting and we don't even know how to contact YouTube and ask about our specific case/project.
Thanks you,
Adam.
sign in with google temporarily disabled for this app
Means that your application has not been verified by google. You need to go through the verification process.
You can use a project for development without verification. However there are some limitations (more information here). Basically, you have now reached the limit of 100 users accessing the application.
If you still havent heard anything from google after they say they have verified your application I think the only thing you can do is to submit it again and double check that you are using a client that was created under the project that you requested verification for there's really nothing else you can do.

How to use Luis.ai Auth Settings

Can anyone provide a URL or tutorial to the help with setting up the Auth Settings tab in Luis.ai?  I am building a tool that allows anyone without coding experience to create a Chat Bot exclusively based on Luis.ai and it's Cognitive Services API.  I could ask users to provide their app id and subscription id; but I would rather have an Oauth login so they wouldn't have to share those keys with my service. 
I asked Microsoft through there support over a week ago, and no response. I am just trying to understand if Oauth configuration is possible and how?   Any insight would be much appreciated.
Spoke with Microsoft and currently the ability to Share the service without divulging the subscription key is not available; however if you visit this Microsoft URL and vote for the feature, they will consider it.
https://cognitive.uservoice.com/forums/551524-luis/suggestions/15365835-sharing-luis-applications
It is currently under review for implementation.

Open LinkedIn profile page from ios native app

I want to directly open LinkedIn app (already installed) from our app. I followed the LinkedIn deep link URL scheme like:
linkedin://profile?id=35932112
The LinkedIn app opens and shows the target person. However, when it is above 3rd degree connection, it shows very limited information and asks to upgrade to premium account. But if I navigates to other persons within LinkedIn app, I can still see the full profile even above 3rd degree connection.
Did I miss anything? Is it LinkedIn policy or I have to do some more configurations?
Thank you very much in advance!
Try using the profile's public url instead, it's working well for me. The LinkedIn app will intercept it and open to the profile instead. The url is usually right under the profile picture and has the following format:
https://www.linkedin.com/in/userid
That's right, you cannot display information based on people that are not your primary connections. On newer versions of the app they restricted it even more; now it returns an error for second and third connections.
There is a way to do that but it's not that straight forward. Not sure what your logic is like and will it be helpful but it's something.
So when you login with LinkedIn you can request the public-profile-url property, it will be returned in the result as publicProfileUrl and then you can save it in your backend. This way it will be saved for all the users that has authenticated for the app. When you try to open that link it will open the LinkedIn app or Safari with that profile.
PS: Hope this helps someone, I can see you question is some time ago :)

Google Plus Over the Air installs via server-side oauth

Google released nice feature called Over-The-Air Installs. But documentation has example only for google's sign-in button.
Checked Google API PHP Client and it doesn't have anything related. Tried adding apppackagename and app_package_name to authorization url - didn't help. Another problem is that Google doesn't enable this feature for all clients.
Is it possible to use it via oauth triggered on server-side? Does Google somehow indicate that you're allowed to use this feature?
It is currently not possible to trigger Over-The-Air Installs using the server-side flow. It is recommended that you use the client-server flow as described and demonstrated in the quick-start sample apps instead of using a server-side flow.
You can direct users to install the app at the conclusion of your install by linking to your app in the play store. From the play store, the user could still install your app directly to their device, it would just not happen in the sign-in dialog.
Even hybrid client-server flow needs to implement the "sign-in button" to your page...
https://developers.google.com/+/web/signin/server-side-flow
https://developers.google.com/+/web/signin/client-to-server-flow
Don't know why Google is doing this way!

Resources