Skip to content

Commit

Permalink
Add the backchannel logout event (#4737)
Browse files Browse the repository at this point in the history
* Add the backchannel logout event

* Update pkg/events/users.go

Co-authored-by: kobergj <[email protected]>

---------

Co-authored-by: kobergj <[email protected]>
  • Loading branch information
2403905 and kobergj authored Jun 25, 2024
1 parent 94ee037 commit 9351da5
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-backchannel-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
}

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

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

0 comments on commit 9351da5

Please sign in to comment.