Skip to content

Conversation

@gcurtis
Copy link
Contributor

@gcurtis gcurtis commented Apr 15, 2015

This change removes the client ID and client secret parameters from the
JSON state blob for BoxAPIConnections. It generally isn't a good
security practice to store your client ID and secret along with
access/refresh tokens, so the restore method was changed to take them as
separate parameters which need to be provided by the application.

There is also a new non-static restore(String) method that allows for
a connection state to be restored into an existing connection. This
method helps in situations where the saved state isn't immediately
available when the API connection is constructed.

This change removes the client ID and client secret parameters from the
JSON state blob for BoxAPIConnections. It generally isn't a good
security practice to store your client ID and secret along with
access/refresh tokens, so the restore method was changed to take them as
separate parameters which need to be provided by the application.

There is also a new non-static `restore(String)` method that allows for
a connection state to be restored into an existing connection. This
method helps in situations where the saved state isn't immediately
available when the API connection is constructed.
@boxcla
Copy link

boxcla commented Apr 15, 2015

Verified that @gcurtis has signed the CLA. Thanks for the pull request!

@gcurtis
Copy link
Contributor Author

gcurtis commented Apr 15, 2015

@tluthra - let me know if it looks like this will work for you guys.

gcurtis added a commit that referenced this pull request Apr 15, 2015
Remove client ID and secret from connection state
@gcurtis gcurtis merged commit 39cfbb9 into box:master Apr 15, 2015
@gcurtis gcurtis deleted the auth-state branch April 15, 2015 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants