This release simplifies the Stormpath Client API behaviour that was introduced in 2.0.0, the SDK now works in the following way:
-
By default, it will use the OAuth Token strategy, which means that:
- Login attemps are posted to
/oauth/token - Local storage is used to store the token.
- Use
ReactStormpath.getAccesToken()to get the access token and attach it to requests, as needed. - This strategy with the Client API and with servers that are running our framework integrations, such as Express-Stormpath.
- Login attemps are posted to
-
We still provide a cookie strategy, allowing you to use cookies to store and send the access token to your server.
For both cases, please see the README and the Upgrade Guide for specific examples of how to use this new version.
Deprecated Please use 3.0.0 insetad.
This release adds support for the Stormpath Client API, which allows you to authenticate the user directly with Stormpath (authentication does not require extra software in your server). The user receives an access token, which can be used to authorize requests on your server. If you need to authorize requests on your server, you will sill want to use one of our SDKs to make that process simpler.
Fixes:
- Fix file system issue with files being referenced inconsistently.
- Fix onClick handler not being triggered on SocialLoginLink click.
- Fix issue with http requests erroring on valid request statuses.
- Fix so that Content-Type is set on all requests.
- Fix route component swallows errors.
Docs:
- Improved RegistrationForm field docs.
Chores:
- Upgraded packages to their latest versions.
Fixes:
- Downgraded the
historymodule to version2.1.2due to React Router incompatibility.
Fixes:
- Fix: Router props inheritance not working in IE <= 10.
Features:
- Custom data support.
- Support for additional
LoginFormandRegistrationFormevents.
Fixes:
- Fix: Login request should use login instead of username field.
- Fix: Support routes as property to Router.
- Fix: redirectTo should be unchanged after state change.
- Fix: Always forward props from components to child elements.
- Fix: Change the user-agent to have stormpath-sdk-react as a fixed name.
- Fix: Set withCredentials if the requested domain differs from the one we're.
- Fix: React unknown prop.
Fixes:
- Fix so that login retrieves session data from the
/meendpoint instead of the/loginendpoint result.
Fixes:
- Fix issue with deprecated onEnter replaceState in react-router v2.
Notes:
- Updated dependencies to their latest versions. Most notably
reactto version15.0.2andreact-routerto version2.4.0.
Fixes:
- Fix issue with SocialLoginLink
redirectUribeing namedredirectTo.
Features:
- Redux support.
Fixes:
- Rebuilt dist files.
Features:
- Add Router context support (#43)
- Add support for updating the user profile (#44)
- Add group support (#47)
- Add ChangePasswordForm to support changing password (#50)
Features: