Added logout
This commit is contained in:
parent
26e522bab3
commit
93b5a804df
@ -156,6 +156,13 @@ class Signin extends EventEmitter
|
|||||||
handler( this, eArgs );
|
handler( this, eArgs );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logout( params, handler )
|
||||||
|
{
|
||||||
|
var [ url, data ] = this._endPointRes( "end_session_endpoint" );
|
||||||
|
var eArgs = new SignInEventArgs({ "redirect": url, "data": data });
|
||||||
|
handler( this, eArgs );
|
||||||
|
}
|
||||||
|
|
||||||
_endPointRes( endpoint, handler )
|
_endPointRes( endpoint, handler )
|
||||||
{
|
{
|
||||||
if( !this.spec )
|
if( !this.spec )
|
||||||
|
Loading…
Reference in New Issue
Block a user