- Notifications
You must be signed in to change notification settings - Fork4
An OmniAuth strategy for drchrono
License
NotificationsYou must be signed in to change notification settings
johnnadeau/omniauth-drchrono
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is an OmniAuth strategy for authenticating to drchrono. To use it, you'll need to sign up for thedrchrono api.
Add this line to your application's Gemfile:
gem'omniauth-drchrono'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-drchrono
useOmniAuth::Builderdoprovider:drchrono,ENV['DRCHRONO_CLIENT_ID'],ENV['DRCHRONO_CLIENT_SECRET']end
Or withdevise
config.omniauth:drchrono,ENV["DRCHRONO_CLIENT_ID"],ENV["DRCHRONO_CLIENT_SECRET"]
request.env['omniauth.auth'].to_yaml
---!ruby/hash:OmniAuth::AuthHashprovider:drchronouid:testuidinfo:!ruby/hash:OmniAuth::AuthHash::InfoHashdoctor:!ruby/hash:OmniAuth::AuthHashid:12345first_name:Jonlast_name:Snowemail:white_wolf@westeros.comspecialty:Lord Commanderjob_title:King in the Northsuffix:''website:http://www.bastard.comhome_phone:''office_phone:123-456-7890cell_phone:123-456-7890country:Seven Kingdomsnpi_number:'123456789'group_npi_number:'987654321'practice_group:123offices: -!ruby/hash:OmniAuth::AuthHashid:123name:Winterfellexam_rooms:!ruby/array:Hashie::Array -!ruby/hash:OmniAuth::AuthHashindex:1name:Cryptsonline_scheduling:false -!ruby/hash:OmniAuth::AuthHashindex:2name:Godswoodonline_scheduling:false -!ruby/hash:OmniAuth::AuthHashindex:3name:Toweronline_scheduling:falsestart_time:'00:00:00'end_time:'00:00:00'address:"Castle Black"city:the Wallstate:the Northzip_code:'1234'country:Seven Kingdomsonline_scheduling:falsephone_number:"(123) 456-7890"doctor:12345archived:falsefax_number:''credentials:!ruby/hash:OmniAuth::AuthHashtoken:abc123refresh_token:abc123expires_at:1490448404expires:trueextra:!ruby/hash:OmniAuth::AuthHashraw_info:!ruby/hash:OmniAuth::AuthHashusername:jon_snowis_staff:falseis_doctor:truedoctor:12345id:345678practice_group:6789
- Fork it (https://github.com/johnnadeau/omniauth-drchrono/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
About
An OmniAuth strategy for drchrono
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.