Skip to content

Conversation

@ChristophWurst
Copy link
Member

Partial backport of #17404 that allows apps that use the new @nextcloud/axios to keep the request token in sync.

I'll try to update Axios for stable17 as well. But it's a bigger/riskier change, thus left it out of this manual backport.

To test this PR you can run _nc_event_bus.emit('csrf-token-update', {token: 123}) and observe that OC.requestToken updates.

@ChristophWurst ChristophWurst added this to the Nextcloud 18 milestone Oct 8, 2019
@ChristophWurst ChristophWurst self-assigned this Oct 8, 2019
@ChristophWurst ChristophWurst changed the title [stable17] Fix axios csrf token update event stable17 [stable17] Fix axios csrf token update event Oct 8, 2019
@rullzer
Copy link
Member

rullzer commented Oct 9, 2019

mmm webpack is not happy

@rullzer
Copy link
Member

rullzer commented Oct 9, 2019

/compile amend /

@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the fix/axios-csrf-token-update-event-stable17 branch from c39db70 to 5586ab2 Compare October 9, 2019 08:19
@skjnldsv
Copy link
Member

skjnldsv commented Oct 9, 2019

Same issue! you need npm ci.

@ChristophWurst shall we use npm i in the tests instead?

@rullzer rullzer force-pushed the fix/axios-csrf-token-update-event-stable17 branch 2 times, most recently from d352659 to 58bfc22 Compare October 14, 2019 19:17
@rullzer
Copy link
Member

rullzer commented Oct 14, 2019

/compile amend /

Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the fix/axios-csrf-token-update-event-stable17 branch from 58bfc22 to f49f1af Compare October 14, 2019 19:32
@rullzer rullzer merged commit 4e89382 into stable17 Oct 14, 2019
@rullzer rullzer deleted the fix/axios-csrf-token-update-event-stable17 branch October 14, 2019 21:16
@rullzer rullzer mentioned this pull request Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants