Comments (8)
Hi, we will take a look and give an update once we've investigated this a bit. Thanks for letting us know!
from duo_client_python.
Sounds great, thank you @imranraja85 ! For reference, I (and our users) would see the ability to use an epoch timestamp from a website like the following as a successful fix. https://www.epochconverter.com/
from duo_client_python.
Thanks for your patience @mrinehart-r7! It looks like you're passing in seconds instead of milliseconds. As noted in the admin api doc, mintime is expected to be in milliseconds https://currentmillis.com/
from duo_client_python.
@imranraja85 following your advice and using that link to generate a millisecond timestamp for 1/1/1993, the ms timestamp provided still throws the same error.
response = duo_client.Admin(
ikey="xxxxx",
skey="xxxxx",
host="xxxxxx"
).get_authentication_log(2, mintime=728503200000)
Can you give me an example of a timestamp of 1/1/1993 that does successfully work in this example code?
from duo_client_python.
Since we don't have logs that go back that far (way before our time :p) we also check the length of the timestamp. We assume that if its less than 13 characters than the user might have put in seconds instead of milliseconds and we return an error. Sorry, we should have been more clear but we will update our documentation to at least mention that the size needs to be 13 characters (or the earliest date we can represent with 13 chars)
from duo_client_python.
Okay that makes sense - I had a feeling some tight validation was going on. Thanks for the clarification.
from duo_client_python.
What is the earliest possible time one can use to get all logs since the beginning of the use of Duo? In other words, when did Duo become a product? I'd like to get all logs possible.
from duo_client_python.
Any 13 char mintime
value is valid (so you could even use 1000000000000
).
However, on May 2 we will start limiting the authentication log v1 endpoint results via API to the previous 180 days. The v2 authentication logs endpoint is already limited to returning 180 days.
from duo_client_python.
Related Issues (20)
- Add Support Create Integration for SSO type HOT 5
- Update Admin cannot update the status HOT 1
- Deprecated SSL protocol in CertValidatingHTTPSConnection HOT 4
- Interators not working due to not having metadata populated HOT 5
- 403 Forbidden Access on all methods of Admin API HOT 6
- Duo: no library to generate passcodes HOT 4
- get_authentication_log - api:v2 param filter failing HOT 4
- metadata parse error in add_user_phone HOT 4
- Automatic proxy configuration HOT 2
- get_authentication_log clearing out Params HOT 3
- Add Get User by Email HOT 1
- 400 Bad Request response when trying to add a token for a yubikey HOT 1
- Duo client installed via pip is missing the get_users_by_names func HOT 3
- Getting "Received 429 Too Many Requests" for auth logs even if hitting the API in 6-7 minute intervals
- Getting 40103 on making GET REST API calls HOT 5
- Tests are failing because actual requests are being made HOT 1
- How to use duo_client_python to access an integrations secret key? HOT 2
- next_offset pagination in auth logs HOT 12
- add get auth summary endpoint to the admin object
- bad link in READ.me
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duo_client_python.