A utility to get a braincube token
Project description
Braincube Token Getter
Braincube Token Getter is small program that uses the braincube sso in order to obtain a temporary token.
The program uses the flask python framework.
Installation
pip install braincube-token-getter
Usage
Create a new configuration
By default the new configuration is stored in ~/.braincube/
but the option -d
can be used to specify a specific configuration directory.
braincube-token-getter -c -d my_directory
The program will ask for a Baincube application Client ID and Client Secret. If you do not know how to find these informations or how to create a Braincube application, see the section Create a Braincube application.
Request a token
braincube-token-getter -t
The token is added to the my_directory/config.json
file.
Note: your browser may warn you with a Security risk because your ssl certificate is not known by firefox or chrome. In this case click on Advanced...
and Accept the Risk an Continue
.
Create a Braincube application
-
Connect to mybraincube.com/
-
Go to
Configure
by clicking on you username on the top left corner. -
Go to application on the thin horizontal menu bar just below the black header.
-
Either select an existing application you want to use or create a new one with the +/- icon.
-
Note that the url of your application should be
https://localhost:5000/token
so that the program gets the right url when it logs in.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for braincube_token_getter-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a57944da9ba5014cad496d35831f6271e0c122b78ac979df950f6a6d9f062e5 |
|
MD5 | 6de3076b5dc40428d6995d4309a6e5d5 |
|
BLAKE2b-256 | 3959cea92bd9987fc8fa2834b6a53421f1cb65f7181a61c5a812d954ceeb0ccc |
Hashes for braincube_token_getter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc23b10b40ec08a07b986136c3d4fc8d3b10a75d8db07f122e6fd165d3df8e7c |
|
MD5 | b8dbcb9091a5d25faf324b02dee06c23 |
|
BLAKE2b-256 | c6df9b722649efd51f85064bdec3ddaa79161a56c5ff2ea09c0cc7907bb470fa |