You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add option to disable PKCE for non-compliant providers like Dropbox.
* Update README.md and tests.
* Return separate `additionalParameters` maps for /token and /authorize.
* Add example configuration and notes for Dropbox.
`hello=world&foo=bar` to the authorization request.
98
99
***dangerouslyAllowInsecureHttpRequests** - (`boolean`) _ANDROID_ whether to allow requests over plain HTTP or with self-signed SSL certificates. :warning: Can be useful for testing against local server, _should not be used in production._ This setting has no effect on iOS; to enable insecure HTTP requests, add a [NSExceptionAllowsInsecureHTTPLoads exception](https://cocoacasts.com/how-to-add-app-transport-security-exception-domains) to your App Transport Security settings.
99
100
***useNonce** - (`boolean`) _IOS_ (default: true) optionally allows not sending the nonce parameter, to support non-compliant providers
101
+
***usePKCE** - (`boolean`) _IOS_ (default: true) optionally allows not sending the code_challenge parameter and skipping PKCE code verification, to support non-compliant providers.
100
102
101
103
#### result
102
104
103
105
This is the result from the auth server
104
106
105
107
***accessToken** - (`string`) the access token
106
108
***accessTokenExpirationDate** - (`string`) the token expiration date
107
-
***additionalParameters** - (`Object`) additional url parameters from the auth server
109
+
***authorizeAdditionalParameters** - (`Object`) additional url parameters from the authorizationEndpoint response.
110
+
***tokenAdditionalParameters** - (`Object`) additional url parameters from the tokenEndpoint response.
108
111
***idToken** - (`string`) the id token
109
112
***refreshToken** - (`string`) the refresh token
110
113
***tokenType** - (`string`) the token type, e.g. Bearer
@@ -714,6 +717,36 @@ await revoke(config, {
714
717
});
715
718
```
716
719
720
+
### Dropbox
721
+
722
+
Dropbox provides an OAuth 2.0 endpoint for logging in with a Dropbox user's credentials. You'll need to first [register your Dropbox application here](https://www.dropbox.com/developers/apps/create).
723
+
724
+
Please note:
725
+
726
+
* Dropbox does not provide a OIDC discovery endpoint, so `serviceConfiguration` is used instead.
727
+
* Dropbox OAuth requires a [client secret](#note-about-client-secrets).
728
+
* Dropbox OAuth does not allow non-https redirect URLs, so you'll need to use a [Universal Link on iOS](https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html) or write a HTTPS endpoint.
729
+
* Dropbox OAuth does not provide refresh tokens or a revoke endpoint.
0 commit comments