Dashboard authentication


Has anyone incorporated successfully authentication to a Dashboard using the same authentication strategy that was set in adminAuth? I've found that req parameter contains that strategy in Strategies collection (in my case azuread-openidconnect), but I have no idea how to use it the same way it's done in login form - either to show login button or to execute the strategy. I've pasted part with settings.js section where I'm trying to perform that authentication.

ui: {
    path: "ui" ,
    middleware: function(req, res, next){
        if(req.isAuthenticated()) {
        } else {

Thanks for any help.