Skip to content

[stable17] Fix axios csrf token update event - #17453

Merged
rullzer merged 1 commit into
stable17from
fix/axios-csrf-token-update-event-stable17
Oct 14, 2019
Merged

[stable17] Fix axios csrf token update event#17453
rullzer merged 1 commit into
stable17from
fix/axios-csrf-token-update-event-stable17

Conversation

@ChristophWurst

Copy link
Copy Markdown
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.

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

Copy link
Copy Markdown
Member

mmm webpack is not happy

@rullzer

Copy link
Copy Markdown
Member

/compile amend /

@npmbuildbot-nextcloud
npmbuildbot-nextcloudBotforce-pushed the fix/axios-csrf-token-update-event-stable17 branch from c39db70 to 5586ab2CompareOctober 9, 2019 08:19
@skjnldsv

Copy link
Copy Markdown
Member

Same issue! you need npm ci.

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

@rullzer
rullzerforce-pushed the fix/axios-csrf-token-update-event-stable17 branch 2 times, most recently from d352659 to 58bfc22CompareOctober 14, 2019 19:17
@rullzer

Copy link
Copy Markdown
Member

/compile amend /

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

Labels

3. to reviewWaiting for reviewsbugregression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ChristophWurst@rullzer@skjnldsv