Implement authorization import and revocation checks (T-503)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package gio
|
||||
|
||||
import "softbox.local/core/application"
|
||||
|
||||
func (shell *AppShell) applyAuthorizationEvent(event application.Event) (bool, error) {
|
||||
payload, handled, err := application.ParseAuthorizationEvent(event)
|
||||
if err != nil || !handled {
|
||||
return handled, err
|
||||
}
|
||||
shell.authorization = payload.Snapshot
|
||||
shell.authorizationLoaded = true
|
||||
return true, nil
|
||||
}
|
||||
Reference in New Issue
Block a user