diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-05-02 15:13:10 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-05-02 16:10:07 -0400 |
commit | dbbd060edc2180b5aac94bd8f645530f7e486899 (patch) | |
tree | efd4486cf70dae89494b52534f5c3764194103d1 /src/mongo/db/auth/authorization_session.h | |
parent | fd9eef9377ab1be148df2eb96ac26da41a222801 (diff) | |
download | mongo-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.h | 3 |
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(); |