-
Notifications
You must be signed in to change notification settings - Fork 1
Add audit logs app #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add audit logs app #46
Conversation
@chaselancaster can we add a readme.md file similar to https://github.com/workos/ruby-example-applications/blob/main/ruby-sso-example/README.md? I believe each example app should have a good one for reference :-) |
ruby-audit-logs-example/.env.example
Outdated
@@ -0,0 +1,3 @@ | |||
WORKOS_API_KEY='sk_test_a2V5XzAxRzVIOTlOMEJXQkczOFlURlhQMFIxV1BHLGhjZlZBaG5PUUVpTWVNQ3FJOEFJSVVHWWM' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want to drop these credentials before pushing, and also probably cycle your API key as it's going to be in this PR history.
ruby-audit-logs-example/.env.example
Outdated
@@ -0,0 +1,3 @@ | |||
WORKOS_API_KEY='sk_test_a2V5XzAxRzVIOTlOMEJXQkczOFlURlhQMFIxV1BHLGhjZlZBaG5PUUVpTWVNQ3FJOEFJSVVHWWM' | |||
WORKOS_CLIENT_ID='client_01G5H99N125YCD713P4BWMRRQ1' | |||
WORKOS_CONNECTION_ID='conn_01GB5XBHWTTKNAGNZG9AYWQHM9' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you'll need a connectionId for audit logs
ruby-audit-logs-example/Gemfile
Outdated
|
||
gem 'dotenv', '2.7.6' | ||
gem 'sinatra', '2.2.0' | ||
gem 'workos', '2.5.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be at least version 2.6.0, the module that introduced audit log functions. I would use 2.9.0.
ruby-audit-logs-example/app.rb
Outdated
WorkOS.key = ENV['WORKOS_API_KEY'] | ||
|
||
# Input your connection ID from your WorkOS dashboard | ||
CONNECTION_ID = ENV['WORKOS_CONNECTION_ID'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need a connectionId for audit_logs, safe to remove.
This PR adds the Audit Logs example app to our suite of other Ruby example apps.