Can we change the admin after creating the Keeper? - chainlink

Is it possible to give the authority of cancel and withdraw functions to another address after creating the Keeper in the interface? (Admin address) Or is it possible to create a keeper from the contract by giving the desired admin address?

It's not possible to change upkeep admin once it has been created, in case it's needed then the only option is to cancel & reregister upkeep.
At the moment, you can't programmatically register the upkeep.

Related

Is there a way to programmatically switch accounts on metamask using web3?

I'm trying to add a utility to my dApp where the user doesn't need to access their metamask extension to switch accounts. Is it possible to integrate this?
For example, I would like my user to click on a button and it shall call a method, say switchAccount(address) and it will switch the account to this particular address I just mentioned.
As far as I have researched, this isn't possible "yet". But I just want to make sure this is correct.

How to verify public address owner with crypto wallets

I am currently thinking about creating a dapp that connects to a phantom wallet on solana. A user account will be created upon connection Signup/Login a User. I'm not sure how to verify the public address. Wallets will pass information to the frontend and i would have to forward this information to the backend, thus it is manipulable and useless... How do I prevent people from sending fake addresses to the server and signing up to any account they want? I thought about signing a message but why is this not done on e.g. opensea.io(Eth/Metamask)?
How do I prevent people from sending fake addresses to the server and signing up to any account they want?
Make them sign a message.
I thought about signing a message but why is this not done on e.g. opensea.io(Eth/Metamask)?
This is not done on OpenSea because OpenSea does not create or manage user accounts for its users. The app relies entirely on the PKI of the user's Web3 provider (such as MetaMask).
Ask yourself why you need to create a user account for your users on your backend. If you need to create such an account, then make the user sign a message. If you don't need to create a user account, then just let the user authenticate directly with the blockchain using their own PKI like OpenSea does.
Why not create the Keypair (public + private key) in the backend itself? Since you're creating a new account on signup. Send a request to the backend and create account and return the public key to the user.
But instead of doing this. You can ask the user to create a new wallet and singup using something like a phantom wallet. Did that help?

G Suite Martkeplace: Get user who granted domain wide delegation to an app

Assume we have an app on G Suite Marketplace, and a G Suite domain administrator wants to delegate domain-wide access to the domain's users' data (as explained here).
For signup purposes, the 3rd service itself needs to know the domain name and the username of the administrator who performed domain-wide delegation of authority. This is needed to be able to use the Directory API (see note here)
I can easily get the domain name (by using Universal Navigation Extension, and adding ${DOMAIN_NAME} to the callback URL, as explained here). However, I didn't find a way to programmatically access the username of the administrator who performed DWD.
Any hints how to do that? Or if that is possible at all?
Thanks in advance!
Method 1:
When the user clicks in the launcher link (or just during installation with the configuration link you can configure) you need to do the OAuth2 flow and obtain the user email. Then you use the email assuming it is from an admin and it usually should be. If not, just return an error and wait for the admin login.
Method 2: ONLY TO GET THE DOMAIN, not the user.
Use the Marketplace License API https://developers.google.com/gsuite/marketplace/v2/reference
You can periodically use the list endpoint and find the user that installs (or removes) your application.
In any case you should store the list of domain super admins to be used when necessary.

Cognito: One account with multiple login names

I am trying to realise a system with AWS Cognito where a user registers an account for one email and later on registers some IoT Device with this account. It should then be possible to login with deviceId and password for the account. So basically i would like to have several login names for the same account.
I was hoping to make this behaviour work with Cognito triggers and the help of a serverside API , but unfortunately there is none.
I would be really grateful for any ideas or pointers. I am new to Cognito so i might be missing something.
Yes, it is possible.
While configuring your userpool, in the attributes section, for How do you want your end users to sign in? select Username.
After this, you can create multiple usernames all pointing to the same email address.

Manager multiple user calendar from a single program

Is it possible to manage multiple calendars from a single program? The task is to add events for different users in a domain, but do it from single program without knowing all users domain passwords. What type of authentication should be used to connect EWS? Is there any admin account exists? How to specify which calendar to update on each operation?
sure is this possible. You will have to create an ExchangeService-instance for each user and set the ImpersonatedUserId property to the mailbox of the user you want to the appointment or whatever you want to add.
have a look at http://msdn.microsoft.com/en-us/library/exchange/dd633680(v=exchg.80).aspx there you can find how to work with impersonation and also have a look at http://msdn.microsoft.com/en-us/library/bb204095.aspx where you can see how to set the rights your user needs to impersonate.
hope that answers your questions...

Resources