Commit 48b0e064 authored by ujvari's avatar ujvari

Revert "Fix auth service comment"

This reverts commit 9e9da30ac4b6c915d2881df20f2f72c0e5be5590.
parent d50815f0
...@@ -19,9 +19,10 @@ class Auth ...@@ -19,9 +19,10 @@ class Auth
@user = undefined @user = undefined
# Fired when the identity-service successfully requests authentication. # Fired when the identity-service successfully requests authentication.
# Sets up the Annotator.Auth plugin instance and the auth.user property. # Sets up the Annotator.Auth plugin instance and after the plugin
# It sets a flag between that time period to indicate that the token is # initialization it sets up an Annotator.Permissions plugin instance
# being checked. # and finally it sets the auth.user property. It sets a flag between
# that time period to indicate that the token is being checked.
onlogin = (assertion) => onlogin = (assertion) =>
_checkingToken = true _checkingToken = true
...@@ -37,7 +38,7 @@ class Auth ...@@ -37,7 +38,7 @@ class Auth
$rootScope.$apply() $rootScope.$apply()
# Fired when the identity-service forgets authentication. # Fired when the identity-service forgets authentication.
# Destroys the Annotator.Auth plugin instance and sets # Destroys the Annotator.Auth and Permissions plugin instances and sets
# the user to null. # the user to null.
onlogout = => onlogout = =>
plugins.Auth?.element.removeData('annotator:headers') plugins.Auth?.element.removeData('annotator:headers')
......
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