Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OAuth 2.0 functionality #290

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
31787ae
feat: add clientSecret and redirectUri
Jul 6, 2020
8a3e48e
chore: add types to CommandOptions
Jul 7, 2020
a334a20
chore: remove promise value from redirectUri
Jul 7, 2020
438cd91
feat: new oauth endpoint with generateUrlMethod()
Jul 7, 2020
3889280
feat: Add getToken & setToken methods for OAuth
Jul 10, 2020
612b7a1
fix: Oauth --> OAuth
Jul 10, 2020
47ee0b8
chore: remove comment line
Jul 10, 2020
9c4066b
feat: add generateAuthorizeUrl() to OAuth
Jul 13, 2020
a747827
chore: remove useless error
Jul 13, 2020
98a23b0
fix: add input as param instead of descriptor in getToken()
Jul 13, 2020
b3fe128
chore: configure request - info --> getToken
Jul 13, 2020
a98f43a
feat: add tests for getToken and setToken
Jul 15, 2020
efcfe27
feat: rename rename OAuthOnAuthorizeToken to OAuthTokenInput; fix flo…
Jul 15, 2020
68ba371
feat: add tests for checking if proper Input is used
Jul 15, 2020
0c43ea9
chore: improve tests
Jul 15, 2020
9f02dc9
feat: check if Content-Type is not application/x-www-form-urlencoded
Jul 20, 2020
c45bc8e
chore: remove setToken from OAuth endpoint
Jul 20, 2020
1f97cc9
feat: add options as this.options and add setToken() as client method
Jul 20, 2020
369209c
chore: add Organization.features
Jul 20, 2020
56ad9b6
chore: remove useless assignment
Jul 21, 2020
7cdd1d4
fix: corrent link when generating url
Jul 21, 2020
274e7b7
chore: remove support for promises in clientSecret
Jul 22, 2020
6900756
chore: remove support for promises in redirectUri
Jul 22, 2020
3b5069e
chore: edit rule when headers are present but Content-Type isn’t
Jul 22, 2020
7071e1c
fix: typo (double check)
Jul 22, 2020
de85e68
fix: typo in authorize_url
Jul 22, 2020
81c2c03
fix: remove state as required
Jul 22, 2020
341b32c
fix: lint error for checking content-type statement in apiRequest
Jul 22, 2020
f6b8697
feat: add scope as a variable for future proof
Jul 22, 2020
0d56460
chore: don't return anything in Client.setToken()
Jul 22, 2020
49fe426
chore: add options param as optional in Endpoint; use client.options …
Jul 22, 2020
abbc152
chore: use input.scope or "all" when choosing scope value in url
Jul 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add types to CommandOptions
  • Loading branch information
Vladimir Berezovsky committed Jul 7, 2020
commit 8a3e48e76b104ab3d7458b4ecb76aeb3db97b97d
1 change: 1 addition & 0 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export type CommandOptions = {
accessToken?: AccessTokenOption,
analyticsCallback: AnalyticsCallback,
apiUrl: string | Promise<string>,
clientId?: string,
clientSecret?: string | Promise<string>,
objectUrl: string | Promise<string>,
previewUrl: string | Promise<string>,
Expand Down