-
Notifications
You must be signed in to change notification settings - Fork 122
OAuth2
Joshua Hiller edited this page Apr 12, 2021
·
16 revisions
API Function | Description |
---|---|
oauth2RevokeToken | Revoke a previously issued OAuth2 access token before the end of its standard 30-minute lifespan. |
oauth2AccessToken | Generate an OAuth2 access token |
Revoke a previously issued OAuth2 access token before the end of its standard 30-minute lifespan.
- Consumes: application/x-www-form-urlencoded
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
✅ | token | formData | string | The OAuth2 access token you want to revoke. Include your API client ID and secret in basic auth format (Authorization: basic <encoded API client ID and secret> ) in your request header. |
from falconpy import oauth2 as FalconAuth
falcon = FalconAuth.OAuth2(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
})
PAYLOAD = {
'token': 'string'
}
response = falcon.oauth2RevokeToken(data=PAYLOAD)
print(response)
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
PAYLOAD = {
'token': 'string'
}
response = falcon.command('oauth2RevokeToken', data=PAYLOAD)
print(response)
falcon.deauthenticate()
Generate an OAuth2 access token
- Consumes: application/x-www-form-urlencoded
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
✅ | client_id | formData | string | The API client ID to authenticate your API requests. For information on generating API clients, see API documentation inside Falcon. |
✅ | client_secret | formData | string | The API client secret to authenticate your API requests. For information on generating API clients, see API documentation inside Falcon. |
member_cid | formData | string | For MSSP Master CIDs, optionally lock the token to act on behalf of this member CID |
from falconpy import oauth2 as FalconAuth
falcon = FalconAuth.OAuth2(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
})
PAYLOAD = {
'client_id': 'string',
'client_secret': 'string',
'member_cid': 'string'
}
response = falcon.oauth2AccessToken(data=PAYLOAD)
print(response)
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
PAYLOAD = {
'client_id': 'string',
'client_secret': 'string',
'member_cid': 'string'
}
response = falcon.command('oauth2AccessToken', data=PAYLOAD)
print(response)
falcon.deauthenticate()
- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Alerts
- API Integrations
- ASPM
- Certificate Based Exclusions
- Cloud Connect AWS (deprecated)
- Cloud Snapshots
- Compliance Assessments
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Images
- Container Packages
- Container Vulnerabilities
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- DataScanner
- Delivery Settings
- Detects
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- IOA Exclusions
- IOC
- IOCs (deprecated)
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- OAuth2
- ODS (On Demand Scan)
- Overwatch Dashboard
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust