summaryrefslogtreecommitdiff
path: root/enterprise.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2026-03-17 16:15:41 -0400
committerGlenn Smith <glenn@vector35.com>2026-04-20 12:37:02 -0400
commit68f04aca3f4e04c1ec2c3b5d54c04ff05e9b0c58 (patch)
tree55f9128c8bcf02e1cf43c926ebd1fd4236b8aea1 /enterprise.h
parentbfd306437f34ebc4d4170c5fb8170261585f6038 (diff)
Enterprise: Add AuthenticateWithToken api
For when you have a token and want to auth with it directly
Diffstat (limited to 'enterprise.h')
-rw-r--r--enterprise.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/enterprise.h b/enterprise.h
index cf76edb0..e4a5695e 100644
--- a/enterprise.h
+++ b/enterprise.h
@@ -53,6 +53,14 @@ namespace BinaryNinja
bool Initialize();
/*!
+ Authenticate to the server with an access token
+ \param token Token of auth session
+ \param remember Remember token in keychain
+ \return True if successful
+ */
+ bool AuthenticateWithToken(const std::string& token, bool remember);
+
+ /*!
Authenticate to the Enterprise server with username and password
\param username Username to authenticate with
\param password Password to authenticate with