Skip to content

Commit

Permalink
feat: add oauth support for ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Dec 9, 2024
1 parent ae94805 commit 87f8163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
TWILIO_ORGS_ACCOUNT_SID: ${{ secrets.TWILIO_ORGS_ACCOUNT_SID }}
TWILIO_ORGS_CLIENT_SECRET: ${{ secrets.TWILIO_ORGS_CLIENT_SECRET }}
TWILIO_ORGS_CLIENT_ID: ${{ secrets.TWILIO_ORGS_CLIENT_ID }}
TWILIO_ORG_SID: ${{ secrets.TWILIO_ORG_SID }}
Expand Down
1 change: 1 addition & 0 deletions cluster_orgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@client_id = ENV['TWILIO_ORGS_CLIENT_ID']
@org_sid = ENV['TWILIO_ORG_SID']
@user_sid = ENV['TWILIO_USER_SID']
@account_sid = ENV['TWILIO_ORGS_ACCOUNT_SID']
@credential = Twilio::REST::ClientCredentialProvider.new(@client_id, @client_secret)
@client = Twilio::REST::Client.new.credential_provider(@credential)
end
Expand Down

0 comments on commit 87f8163

Please sign in to comment.