summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authorization_session.h
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-05-02 15:13:10 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-05-02 16:10:07 -0400
commitdbbd060edc2180b5aac94bd8f645530f7e486899 (patch)
treeefd4486cf70dae89494b52534f5c3764194103d1 /src/mongo/db/auth/authorization_session.h
parentfd9eef9377ab1be148df2eb96ac26da41a222801 (diff)
downloadmongo-dbbd060edc2180b5aac94bd8f645530f7e486899.tar.gz
SERVER-34653 Add 'AuthorizationSession::isAuthenticated()'
Diffstat (limited to 'src/mongo/db/auth/authorization_session.h')
-rw-r--r--src/mongo/db/auth/authorization_session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authorization_session.h b/src/mongo/db/auth/authorization_session.h
index 81cfdc466d0..e260d859651 100644
--- a/src/mongo/db/auth/authorization_session.h
+++ b/src/mongo/db/auth/authorization_session.h
@@ -144,6 +144,9 @@ public:
// multiple users are authenticated, this method will throw an exception.
User* getSingleUser();
+ // Is authenticated as at least one user.
+ bool isAuthenticated();
+
// Gets an iterator over the names of all authenticated users stored in this manager.
UserNameIterator getAuthenticatedUserNames();