nl_tokens: Handles host - side authentication logic ( this method is dependency injected into the OIDC Provider instance ) .
pl_tokens: function authenticate ( authRequest ) { let debug = authRequest . host . debug || console . log . <mask> ( console ) let webId = authenticatedUser ( authRequest ) if ( webId ) { debug ( 'User is already authenticated as' , webId ) initSubjectClaim ( authRequest , webId ) } else { // User not authenticated, send them to login debug ( 'User not authenticated, sending to /login' ) redirectToLogin ( authRequest ) } return authRequest }