Skip to content

Commit

Permalink
Add the backchannel logout event
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Jun 24, 2024
1 parent 4df391c commit c9973ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/add-backchannal-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add the backchannel logout event

We've added the backchannel logout event

https://github.com/cs3org/reva/pull/4737
https://github.com/owncloud/ocis/issues/9355
14 changes: 14 additions & 0 deletions pkg/events/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,17 @@ func (PersonalDataExtracted) Unmarshal(v []byte) (interface{}, error) {
err := json.Unmarshal(v, &e)
return e, err
}

// BackchannalLogout is emitted when the callback revived from the identity provider
type BackchannalLogout struct {
Executant *user.UserId
SessionId string
Timestamp *types.Timestamp
}

// Unmarshal to fulfill umarshaller interface
func (BackchannalLogout) Unmarshal(v []byte) (interface{}, error) {
e := BackchannalLogout{}
err := json.Unmarshal(v, &e)
return e, err
}

0 comments on commit c9973ba

Please sign in to comment.