-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: #67, v0.9.0 desc: - finally got x/oauth2 working - moved token storage into cwd/.json - refactored utils.go, removed unused funcs - edited README, gitignore to reflect changes
- Loading branch information
Showing
5 changed files
with
62 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,7 @@ | |
# vendor/ | ||
|
||
# CUSTOM | ||
*.env | ||
*.env | ||
*.json | ||
*.crt | ||
*.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,6 @@ why should you use this project? | |
- return structs are easily indexable | ||
- easy to setup, easy to use (personal preference, i know - but trust me!) | ||
|
||
--- | ||
|
||
## docs | ||
|
||
### 0.0 quick start | ||
|
@@ -31,6 +29,13 @@ SECRET=KEY1 // App Secret | |
CBURL=https://127.0.0.1 // App Callback URL | ||
``` | ||
|
||
2. we use tls for the oauth handshake between your local machine & schwab to ensure secure transmission of your bearer token. run the following command to generate ssl certs: | ||
|
||
``` | ||
openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -extensions EXT -config <( \ | ||
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS.1:localhost,IP:127.0.0.1\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") | ||
``` | ||
|
||
2. `go get github.com/go-schwab/[email protected]` | ||
|
||
### 0.1 agent | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters