CLI/SDK to create Google-cloud oAuth client - google-cloud-platform

Is it possible to create an OAuth client (https://developers.google.com/identity/protocols/OAuth2) using a script (gcloud or any library)?
Google recommended way (https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred) is to manually create from https://console.developers.google.com/apis/credentials.
I have multiple apps with different url_redirects like https://a.domain.com, https://b.domain.com https://c.domain.com, https://d.domain.com, this subdomain list is large to manage manually.
I want to automate this process for my use case. I'm not able to find any library to do this.
Update: Endpoint used by GCP console https://clientauthconfig.clients6.google.com/v1/clients and there is related permission also "clientauthconfig.clients.create" but there is no API provided for it.

You would need API client to create new API client anyway. Is it really necessary for you to create it this way? You can rather create multiple "user" credentials for your application using only that one API client.

I think you are looking for something like this, hope Java is good for you.
I've also found the following relevant information that might help you. Link
Also relevant for you. Link
Let me know.

Related

Does graphene-django dynamically create an API documentation?

I'm considering using GraphQL with a Django backend service but I couldn't find much information regarding the API documentation. I need some solution to dynamically generate the documentation, perhaps like npm's graphql-docs with a result similar to GitHub's API docs.
Is it feasible to accomplish with graphene-django? If not, what's a good alternative for a python environment?
Yes, it's very easy to do by using GraphiQL, which is embedded in to Graphene.
The instructions on how to integrate this with Graphene are here in the graphene-python documentation. --- basically you need to add the parameter graphiql=True when setting up the API route in your urls.py file.
After it is set up, if go to your API endpoint in your browser, you'll see a nice interface for sending API calls, getting API responses, and reading documentation for both queries and mutations. The documentation is initially hidden on the right until you click on the "< Docs" link.

jUDDI Installation and configuration

I have installed the basic jUDDI Server in my machine. I am able to Register the Service and able to read my Service info as a new user. I want to restrict the users who wants to look up my services. I want only my clients to access these information. I want to authenticate them so only my clients can view the business, service, tModel, Binding Template information. How can I achieve this? Can any body help me get through this?
Try turning on the setting the requires authentication for the inquiry API. You can find it in the juddiv3.xml config file for the server. Here's the xpath to get you there.
config/juddi/auth/Inquiry=true
Future readers, the documentation is located here for the current release (as of this time of this post)
https://juddi.apache.org/docs/3.3/juddi-guide/html/ch04.html#_administering_users_and_access_control
but the website https://juddi.apache.org/docs.html will get you to whatever is current. The docs (that website) is also available as part of the distribution and (i think) maven artifacts

Microsoft.SyncFileSyncProvider for REST Backend?

I am trying to build my own Sync Desktop application like onedrive to sync with a REST backend. MS Sync FW seemed to be a good base for that. Now my approach would be to use the FileSyncProvider to cover the local files and write another Provider - closely based on the FileSyncProvider for the REST backend. Is this a viable approach?
The deeper I get into the Sync Framework the more I think that I might to write two custom providers - my own LocalFileSyncProvider and a RemoteFileSyncProvider. Are there any good examples for something like that?
I believe you might need to implement only one simple custom provider, the one that interacts with the REST service. Then you can synchronize between the out of the box FileSyncProvider and your simple custom provider.
If you want more information on the type of custom providers, check the following link:
Choosing a Custom Provider type
The code sample that you are looking for is here:
File Sync with Simple Custom Provider Sample

how connect to echonest from enyo

I am new to Enyo and web services. I am looking to build a web page with Enyo that will require use of Echonest. Can anyone help me understand how to connect to the Echonest service from inside Enyo and whether to use SOAP, REST, or something else?
I assume you are talking about the Echo Nest found here: http://the.echonest.com ?
Briefly glancing at their API, you may not have to use SOAP or REST since everything is accessible with simple GET requests through the Web service. It looks like the hardest part of using their API will be generating OAuth signatures for authenticated requests.
As far as the enyo.WebService, http://enyojs.com/api/#enyo.WebService, goes, you should be able to include the kind, set the URL and call the .send() method on it. Then you response handler would get the data back (I recommend json) so you can do what you will with it.
Another option would be to use enyo.Ajax, http://enyojs.com/api/#enyo.Ajax, directly. enyo.WebService wraps that and provides a familiar (to Enyo 1 developers) way to use it.

How can I enable folder sharing in Google Docs? Can I write my own program/application for it?

Google Docs does provide sharing of files.But it does not provide sharing of folders.
Is there any way by which I can share the folders too? Can I write my own application/program for it?
If yes, then how?
UPDATE: Now this question is no longer
useful.Gmail now supports folder
sharing too.Cheers!
The best place to start is to go through the documentation. I would also recommend you check out this videocast (it shows how to do this in PHP, but you should be able to replicate this to any other language you might be using). Good luck.
I found a discussion at google (support forum, I'd link if I could have more than one/post)
Down the page there is a link to an app that supposedly uses new API features to implement folder sharing
http://tng.appspot.com/2009/9/Folder-Sharing-in-Google-Docs-now-possible
After reading my blog post mentioned by goorj you can try out my folder sharing app at
http://folders.gdoclab.com
You will be asked to login using you google account and give permission to manipulate you google docs sharing permission. It works for plain google accounts not for google apps accounts yet (but I am working on that too ...)
Yes you can write your own application using Google docs APIs.