![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
google-oauth-utility
Advanced tools
This is a module simplify the Google Oauth2 3 way handshack flow. Google's Oauth2 3 way handshack should participate with human, and we can use refresh token for extend the token's life. The module is use for transparent the refresh token exchange another token process. And user just need to do the first time to generate token file.
Using os path web application account.
gnutil -d [path-to-tmp-file]
The os path config file:
{
"CLIENT_ID":"429************kunu.apps.googleusercontent.com",
"CLIENT_SECRET":"yq***********0A",
"REDIRECT_URL":"http://localhost:8888/oauth2callback",
"DEFAULT_SCOPES": [
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/plus.me"
]
}
In Mac or linux, you can put the config file under $HOME. In windows, please set the %HOME% for your system to let the module can find a path to store the file.
Using your own credential in command line:
gnutil -d [path-to-tmp-file] \
-c [your-client-id] \
-k [your-secret-key] \
-u [your-redirect-url] \
-s [your-scopes]
var oauth = require('google-oauth-utility');
var scopes = [ 'https://www.googleapis.com/auth/calendar',
'https://www.googleapis.com/auth/userinfo.profile',
'https://www.googleapis.com/auth/userinfo.email'
];
var opts = {
clientId:'your-client-id',
clientSecret:'your-client-secret',
redirectUrl: 'your-redirect-url',
tmpPath:'/tmp/.gauth'
};
oauth.authflow(scopes, opts, function(err, tokens){
if(err) log.error(err);
console.log('process end..........');
console.log(tokens);
});
The function authflow will auto save the token to the tmpPath path. And if the path file exist, system will use the token file's refresh token to exchange token. The user side will no-need to join the token retrieve flow. If the tmpPath file not exist, user need join to do the Oauth2 auth flow.
FAQs
google-oauth-utility ====
The npm package google-oauth-utility receives a total of 1 weekly downloads. As such, google-oauth-utility popularity was classified as not popular.
We found that google-oauth-utility demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.