Skip to content

Commit

Permalink
Small readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetersen committed Apr 23, 2024
1 parent 69c9029 commit 2969d30
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,33 @@
## Basic Usage

```ruby
use OmniAuth::Builder do
Rails.application.config.middleware.use OmniAuth::Builder do
provider :scientist, ENV['SCIENTIST_ID'], ENV['SCIENTIST_SECRET']
end
```

## Enterprise Usage

```ruby
provider :scientist, ENV['SCIENTIST_ID'], ENV['SCIENTIST_SECRET'],
{
client_options: {
site: 'https://<YOURSUBDOMAIN>.scientist.com',
authorize_url: 'https://<YOURSUBDOMAIN>.scientist.com/oauth/authorize',
token_url: 'https://<YOURSUBDOMAIN>.scientist.com/oauth/token'
Rails.application.config.middleware.use OmniAuth::Builder do
provider :scientist, ENV['SCIENTIST_ID'], ENV['SCIENTIST_SECRET'],
{
client_options: {
site: 'https://<YOURSUBDOMAIN>.scientist.com',
authorize_url: 'https://<YOURSUBDOMAIN>.scientist.com/oauth/authorize',
token_url: 'https://<YOURSUBDOMAIN>.scientist.com/oauth/token'
}
}
}
end
```

## Credits

Heavily inspired by: [omniauth-github](https://github.com/omniauth/omniauth-github)

## License

Copyright (c) 2019 Assay Depot Inc. d/b/a Scientist.com
Copyright (c) 2024 Assay Depot Inc. d/b/a Scientist.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down

0 comments on commit 2969d30

Please sign in to comment.