allow app engine service account to edit calendar - java

I have Google app engine Java app. I have created a service account to access Google API.
My Java app is designed to update the Google calendar.
So I tried to share the calendar to service account email id. I am not able to choose the option 'Make changes to events' for the service account id. It defaults to 'See all event details'. Due to this, I am not able to make changes to calendar using my Java app.
I am the admin for the the google domain account that owns the calendar and the app engine. Please let me know the how to fix this.

The reason is most likely that your domain only allows at maximum read-only acls to users outside your domain. I suggest you take a look at the delegation of domain authority to service accounts, it might be what you are looking for: https://developers.google.com/drive/web/delegation

Related

What's the simplest way to request information from (own) other applications

The company that I work for has some small android applications running that communicate with their ERP software lately they requested to authenticate users and have sessions for safety reasons
Instead of integrating the autheticate and session code into every app (6) I want to build an Android app that acts like a dashboard. The app will authenticate the user, create a session and show the available apps on the device that the user can access with their user role.
The problem is I need the know which app requires which user role
I don't want to store this information in the dashboard app sinds that will require me to update the dashboard app each time i create or change an app
I was thinking or using an Content provider but that seems to be a lot of work and redundant since it has to be integrated into every app that I have (6)
So my question, is there a way to get data from apps that can easily be implemented. The data isn't big (only one Integer)
thanks in advance.

Firebase limited service account

I have a java client (Standalone app) that is using the Firebase Admin SDK, because I need to read values from the Realtime database whenever a value is changed. (A ValueChange listener is being used).
Currently I'm including the service-account.json in the app. Even if I set the roles to Viewer, using this service-account.json, I can create accounts usingFirebaseAuth.createCustomTokenAsync, which is something I dont want.
Is there a way to make a service-account with Realtime-database read only?
I know I can use setDatabaseAuthVariableOverride to "limit", but if someone extracts my service-account.json from the app/jar, they have the power to do everything..
I'm not using node.js, just Java with spring. And js firebase is a no, because I need to receive updates even without a web page.
Never distribute service accounts to end users. They should only go to trusted parties.
There is currently no fine-grained way to control access to Realtime Database via service accounts. Access control is performed via Firebase Authentication client libraries, which are not available for non-Android Java clients.

The proper way to manage a Google Drive account using Java console application?

I have enabled Google Drive API on Google Developer Console and created a service account credential which is bundled with a service account ID and key ID. Despite that I have tried various ways to manage my own Google Drive account, I could not find a solution which fits for my aim. I need to upload, download and delete the files stored in my own Google Drive. The application that I am going to connect Google Drive is a console one which will be solely used for an academic research.
it's pretty simple. The steps to achieve this are at How do I authorise an app (web or installed) without user intervention? (canonical ?)
Be careful about how securely the refresh token is being stored and what scopes you grant to the app.

Sync Google Account programmatically without going through the setup screen

I have a scenario where I have a server that holds username/password. So upon launching my android app and the user it authenticated I would like to automatically sync his account (Gmail for example) without going through the traditional setup screen.Are there any public googe/gmail APIs that I could use for this purpose. Any help at this point would be greatly appreciated.

Sign in/Sign up with Facebook - test users

I am fairly new to facebook integration. I got to add "Sign up/in with Facebook" option to register new users with my web site. I am following these steps: Server-Side Authentication
1) Which account do I use to test this? Will my personal account be suspended or banned if I use it to play with the api?
2) To test the api, do I have to create test users like this? test users
3) Also, to create test users, looks like I need to authenticate as App Can someone explain why I should authenticate as app to create test users?
4) Sometimes, I get confused by the usage of the word "app". My website is not considered a Facebook app just because I use facebook to sign Up/In my users. Correct?
No (if you are doing what you mentioned in the comments)
You don't have to create test users, but it helps to do so. For instance if you are testing wall posting from your app, then it's best to keep your personal profile/timeline clean. When you create an app, you also have the option to create test users in your app's settings page, so you don't need to do it programmatically.
Test users are associated with apps, so probably that's why you need app_access_token. However if you create test users with the ui in your app's settings page, then you don't need to mention any token.
Yes it is considered as one, that's how facebook's graph works, there are connections between external(3rd party) objects(they call them apps, as a generalization, after all your website can be called a web application) and facebook objects like users, pages etc. When you create an app you can see the different types/categories of apps that facebook lets you specify for your app. So it's just a name, nothing to worry about.

Categories