Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An OmniAuth strategy for drchrono

License

NotificationsYou must be signed in to change notification settings

johnnadeau/omniauth-drchrono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version

Omniauth::Drchrono

This is an OmniAuth strategy for authenticating to drchrono. To use it, you'll need to sign up for thedrchrono api.

Installation

Add this line to your application's Gemfile:

gem'omniauth-drchrono'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-drchrono

Usage

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"]

Auth hash example

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

Contributing

  1. Fork it (https://github.com/johnnadeau/omniauth-drchrono/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

An OmniAuth strategy for drchrono

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp