I'm building a desktop app with Electron and React. When it first starts up checks if the user has allowed access to Camera, Screen, and Audio permissions. On windows, this is granted automatically, and on MacOS there is a popup that asks users to allow perms.
In the event a user clicks deny permissions, this modal will popup. I want to be able to hit the 'Grant permissions' button, and all denied permissions will get updated to allowed.
If this is not possible, is there an easy way to navigate to the device settings app to get users to change their settings? I have reviewed https://www.electronjs.org/docs/latest/api/window-open but this seems geared towards websites, rather than native applications.
Related
I'm building a ReactJS app that requires location, camera and flashlight permissions. The problem is that most (if not all) browsers only ask for permissions once. Once denied, it will never ask again.
In the Chrome browser on my PC I can manually enable permissions by clicking the corresponding icon in the URL bar:
However, in Android and iOS the app is supposed to run inside a mini webview without the URL. So I will need to redirect the user to the corresponding settings in the browser manually.
I've browsed through quite some solutions on SO but they all refer to the navigator permissions method which can only ask for permissions once.
How do I direct the user to the specific site settings in Android and iOS?
I recently logged into a web application and I got the standard user consent dialog.
I clicked "Accept".
How do I get to that dialog again or cancel?
Thanks
You cannot cancel the user's consent to the web application through the UI. You can revoke the administrator's consent to the application through the Azure portal. However, this obviously does not apply to the user's consent.
However, you can cancel user consent through power shell. First go to Enterprise Applications>your application>Permissions>User consent and you will see all user consent permissions.
Next, you can then click Review permissions -> This application has more permissions than I want. This will give you a PowerShell script that you can run to remove all user consent for that application. It can of course be customized to only remove certain permissions.
We have created APP registration in Azure tenant. After adding all necessary Graph API permissions to APP and clicking "Grant admin consent" button, end-user still receives a window with "Permissions requested".
However, if I log in to my APP from Windows using my Tenant admin, on the same login window there is a checkbox saying "Consent on behalf of your organization". Checking this box as an admin suppresses any subsequent windows from showing for any user.
Why is that? Why clicking Grant admin consent in API Permissions tab does not behave the same way as logging first as a tenant admin and checking the box "Consent on behalf of your organization"?
Please let me better understand this.
API Permissions
Permissions requested window
The lack of Mail.Send.Shared permissions is not the cause of the problem.
When you log in to the application as a normal user for the first time, the system will prompt you whether to accept the request permission of the application. After you click "Accept", the request window will not pop up when you log in to the application next time. It's not because you added the Mail.Send.Shared permission.
We have many ways to grant administrator consent for api permissions. You can click "Grant admin consent" in the "API permissions" tab, or check the "Consent on behalf of your organization" box when logging in to the application. The realized functions are all the same.
I got basic profile info permission from a user through my google app. And now i newly added "access_type=offline" in the api call. It will prompt the user in consent screen like "Have offline access". How do i avoid this screen and get automatically offline access from user without consent screen.
My api call:
https://accounts.google.com/o/oauth2/auth?client_id=CLIENTID&redirect_uri=REDIRECTURI&scope=email+profile+https://www.googleapis.com/auth/drive.readonly&response_type=code&access_type=offline&state=12345678909876543
in the above url i added access_type=offline newly. So it display a consent screen like "Have Offline Access". help me to get offline access from user without prompting the consent screen while user clicks my google app from their account.?
Thanks in advance.
It is not possible to get offline access without user consent.
But maybe you don't need offline access. When you have an administator install your app through gsuite marketplace, you can use a service account to do stuff in the users drive by impersonating.
That way you don't need each user of your domain to give consent.
Be aware that you cannot use the service account for everything. For instance: you cannot impersonate a user and than call an appscript script.
Google App Engine permissions.
I have GAE account and I am trying to invite access to another user
The email is sent and the user pasts the link into Chrome incognito window
The user is asked to login which works but then it says
You are not authorized to access this application
The user has its own app engines
I can think of nothing else - is there a limit to number who can be invited?
Make sure that the user is logging into the account that you invited (an easy way to do this is by having them just click the link rather than using an Incognito Window). If it still doesn't work, I would suggest you file a bug in the issue tracker.