Skip to content

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

Merged

Conversation

chaselancaster
Copy link
Contributor

This PR adds the Audit Logs example app to our suite of other Ruby example apps.

@linear
Copy link

linear bot commented Oct 28, 2022

@sheldonvaughn sheldonvaughn self-requested a review November 7, 2022 17:55
@sheldonvaughn
Copy link

@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 :-)

@@ -0,0 +1,3 @@
WORKOS_API_KEY='sk_test_a2V5XzAxRzVIOTlOMEJXQkczOFlURlhQMFIxV1BHLGhjZlZBaG5PUUVpTWVNQ3FJOEFJSVVHWWM'

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.

@@ -0,0 +1,3 @@
WORKOS_API_KEY='sk_test_a2V5XzAxRzVIOTlOMEJXQkczOFlURlhQMFIxV1BHLGhjZlZBaG5PUUVpTWVNQ3FJOEFJSVVHWWM'
WORKOS_CLIENT_ID='client_01G5H99N125YCD713P4BWMRRQ1'
WORKOS_CONNECTION_ID='conn_01GB5XBHWTTKNAGNZG9AYWQHM9'

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


gem 'dotenv', '2.7.6'
gem 'sinatra', '2.2.0'
gem 'workos', '2.5.0'

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.

WorkOS.key = ENV['WORKOS_API_KEY']

# Input your connection ID from your WorkOS dashboard
CONNECTION_ID = ENV['WORKOS_CONNECTION_ID']

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.

@chaselancaster chaselancaster merged commit 28cd675 into main Nov 15, 2022
@chaselancaster chaselancaster deleted the feature/sup-755-ruby-add-example-app-for-audit-logs branch November 15, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants