desktop-cli | Declutter your Desktop
kandi X-RAY | desktop-cli Summary
kandi X-RAY | desktop-cli Summary
Works on macOS and Linux. Requires Node.js greater than or equal to v8.11.2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of desktop-cli
desktop-cli Key Features
desktop-cli Examples and Code Snippets
Community Discussions
Trending Discussions on desktop-cli
QUESTION
The goal of the steps below is to create a custom oath client ID which will be used only for my instance of rclone
. rclone
already is registered as an app with google API with it's own set of client ID credentials, but the recommended way is create another set for the sake of performance.
In the google api developers console I create a new project called my-rclone-project
.
Once the project is created I proceed to the OAuth consent screen
where I choose the type External
. As I proceed to the OAuth consent screen
there is a setting paragraps called Scopes for Google APIs
. Here I leave the default scopes (email
, profile
, openid
) explicitly not selecting the scopes which would allow access to google drive.
I call the application my-rclone-app
and use the defaults.
After that I go to the Credentials
screen and do CREARTE CREDENTIALS -> OAuth client ID
.
I choose the Desktop app
and name the client my-rclone-desktop-client
. Finishing this results in the reation of the Client ID
and Client secret
. Given the scope selected in the OAuth consent screen
i would expect that these credentials won't allow the app to ask permision for anything besides what was defined in the scope. So it shouln't be able to ask for permission to access the google drive APIs.
I than proceed to configure the rclone from my pc rclone config
. I enter the oauth credentials I created in the step above. During the config process I'm asked to define the scope to use when accessing google drive as if the OAuth consent screen
isn't relevant at all. As the config nears it's end, I'm redirected to the browser where the app is requesting to See and download all your Google Drive files
. I accept that end end the config with defaults selected.
As I try listing with ./rclone lsd google-drive:
I get an error about the drive API not being enabled with a link in the error on how to enable it. Going on that link and enabling it results in ./rclone lsd google-drive:
listing the content of my drive.
What is the purpose of having to define an OAuth consent screen
and the API scope as a part of it when the app can request an arbitrary scope completly bypassing the scope selected in the OAuth consent screen
setup?
Reference: Create a client ID in google API
...ANSWER
Answered 2020-Sep-25 at 02:47Why you want to have custom OAuth consent page?
In order for you app to use one of Google's auth servers, your application needs some way to be identified by auth servers and that is where Client ID and Client Secret comes in to play and consent page server as a screen on which you application specific information such as application name, contact info, privacy policy, term of use etc. will be displayed to the user.
What are scopes that you define on consent screen setup?
On consent screen set up you are supposed to include all possible scopes that you application is going to request from Google APIs, but that doesn't mean you app is limited to those scopes only. Scope listed here will be used by Google for application verification purpose and once Google verifies you application, it will no longer display This app isn't verified warning page as long as your app is requesting one of those verified scopes.
Even after verification, if you application completes verification, requesting any scope access which isn't included in this list will still display This app isn't verified warning message.
and clicking on learn more link will open Google Account help page which clearly states once you provide access to application, when you allow third-party apps to access your Google Account, they can copy and save your data on their own servers. Because Google can’t protect the data on another company’s servers, your data may be subject to greater data security and privacy risks.
What is the purpose of having to define an OAuth consent screen and the API scope as a part of it when the app can request an arbitrary scope completely bypassing the scope selected in the OAuth consent screen setup?
The main purpose of the consent screen configuration is to allow app developer to present information about application it's terms and privacy policy during authorization process. And of course not to have warning once application is verified.
Please refer following link to better understand about unverified apps and scope verification:
- https://support.google.com/cloud/answer/7454865?hl=en
- https://support.google.com/cloud/answer/9110914
- https://www.gmass.co/blog/five-annoying-issues-google-oauth-scope-verification/
- https://support.google.com/accounts/answer/3466521?p=app_notverified&visit_id=637365968258169095-220403864&rd=2#notverified
QUESTION
When adding a Sharepoint Online site to a MS Teams static Tab referring to this Q&A helps greatly, but how would I go about when having a React single page application Tab and and a Sharepoint online Tab in the same application?
...ANSWER
Answered 2020-Apr-01 at 06:02@AdoTbo, Your webapplicationinfo look good, just make sure correct values are passed. You need to perform AD authentication only. SharePoint authentication also internally uses AD authentication. You can exchange the AAD token with SharePoint which is getting generated for app resource. Please check the detailed documentation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install desktop-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page