Commit 3cf1ba17 authored by Jörg Richter's avatar Jörg Richter

REST client: take responsibility for perm cache clearing

See dmx-platform/dmx-platform#328
parent 6aa694af
Pipeline #8547 passed with stage
in 3 seconds
This diff is collapsed.
......@@ -6,7 +6,7 @@ import typeCache from './type-cache'
import permCache from './permission-cache'
import utils from './utils'
console.log('[DMX] Client API 2019/11/11')
console.log('[DMX] Client API 2019/11/19')
export default {
......
import http from 'axios'
import permCache from './permission-cache'
import utils from './utils'
import { Topic, Assoc, RelatedTopic, TopicType, AssocType, Topicmap, Geomap } from './model'
......@@ -373,11 +374,12 @@ export default {
headers: {
'Authorization': authMethod + ' ' + btoa(credentials.username + ':' + credentials.password)
}
})
}).then(() => permCache.clear())
},
logout () {
return http.post('/accesscontrol/logout')
.then(() => permCache.clear())
},
getUsername () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment