You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to efficiently and accurately address your issue or feature request, please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. Please delete any sections or questions below that do not pertain to this request.
2
+
3
+
For general support or usage questions, please use the [Auth0 Community](https://community.auth0.com/) or [Auth0 Support](https://support.auth0.com.).
4
+
5
+
### Description
6
+
7
+
Description of the bug or feature request and why it's a problem. Consider including:
8
+
9
+
- The use case or overall problem you're trying to solve
10
+
- Information about when the problem started
11
+
12
+
### Prerequisites
13
+
14
+
*[ ] I have read the [Auth0 contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
15
+
*[ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
16
+
*[ ] Did you check the [documentation](https://auth0.com/docs/quickstart/webapp/rails)?
17
+
*[ ] Did you check [Auth0 Community](https://community.auth0.com/tags/rails)?
18
+
*[ ] Are you reporting this to the correct repository? This strategy relies on [OmniAuth](https://github.com/omniauth/omniauth) and the [OmniAuth OAuth2](https://github.com/omniauth/omniauth-oauth2) strategy.
19
+
*[ ] Are there any related or duplicate [Issues](https://github.com/auth0/omniauth-auth0/issues) or [PRs](https://github.com/auth0/omniauth-auth0/pulls) for this issue?
20
+
21
+
### Environment
22
+
23
+
Please provide the following:
24
+
25
+
* OmniAuth-Auth0 version:
26
+
* Ruby version:
27
+
* Rails veresion:
28
+
* Browser version, if applicable:
29
+
* Additional gems that might be affecting your instance:
30
+
31
+
### Reproduction
32
+
33
+
Detail the steps taken to reproduce this error and note if this issue can be reproduced consistently or if it is intermittent.
Please describe both what is changing and why this is important. Include:
4
+
5
+
- Endpoints added, deleted, deprecated, or changed
6
+
- Classes and methods added, deleted, deprecated, or changed
7
+
- Screenshots of new or changed UI, if applicable
8
+
- A summary of usage if this is a new feature or change to a public API (this should also be added to relevant documentation once released)
9
+
10
+
### References
11
+
12
+
Please include relevant links supporting this change such as a:
13
+
14
+
- support ticket
15
+
- community post
16
+
- StackOverflow post
17
+
- support forum thread
18
+
- related GitHub issue in this or another repo
19
+
20
+
### Testing
21
+
22
+
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
23
+
24
+
*[ ] This change adds unit test coverage
25
+
*[ ] This change has been tested on the latest version of the platform/language or why not
26
+
27
+
### Checklist
28
+
29
+
*[ ] I have read the [Auth0 contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
30
+
*[ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
31
+
*[ ] All existing and new tests complete without errors
32
+
*[ ] All code quality tools/guidelines in the [CONTRIBUTING documentation](CONTRIBUTING.md) have been run/followed
Please read [Auth0's contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md) before beginning work on your contribution here.
6
+
7
+
## Environment setup
8
+
9
+
The best way we've found to develop gems locally is by using a local setting for your Bundler config. First, checkout the project locally:
Now you should be able to make changes locally and have them reflected in your test app. Keep in mind you'll need to restart your app between changes.
42
+
43
+
[Great explanation for why this setup works well](https://rossta.net/blog/how-to-specify-local-ruby-gems-in-your-gemfile.html).
44
+
45
+
## Testing
46
+
47
+
Tests should be added for additional or modified functionality and all tests should run successfully before submitting a PR.
48
+
49
+
### Adding tests
50
+
51
+
All new tests should be added to the `/spec/omniauth` directory. Testing resources, like JSON fixtures, should be added to the `/spec/resources` directory.
52
+
53
+
### Running tests
54
+
55
+
Running tests is as simple as:
56
+
57
+
```bash
58
+
$ bundle exec rake spec
59
+
```
60
+
61
+
## Documentation
62
+
63
+
Documentation for this gem is primarily done at the code level. All new methods should include a docblock at least.
64
+
65
+
## Code quality tools
66
+
67
+
Code quality is enforced across the entire gem with Rubocop:
This is the official [OmniAuth](https://github.com/intridea/omniauth) strategy for authenticating to[Auth0](https://auth0.com).
3
+
An [OmniAuth](https://github.com/intridea/omniauth) strategy for authenticating with[Auth0](https://auth0.com). This strategy is based on the [OmniAuth OAuth2](https://github.com/omniauth/omniauth-oauth2) strategy.
Then to redirect to your tenant's hosted login page:
43
+
To start processing authentication requests, the following steps must be performed:
42
44
43
-
```ruby
44
-
redirect to('/auth/auth0')
45
-
```
45
+
1. Initialize the strategy
46
+
2. Configure the callback controller
47
+
3. Add the required routes
48
+
4. Trigger an authentication request
46
49
47
-
> You can customize your hosted login page in your [Auth0 Dashboard](https://manage.auth0.com/#/login_page)
50
+
All of these tasks and more are covered in our [Ruby on Rails Quickstart](https://auth0.com/docs/quickstart/webapp/rails).
48
51
49
-
### Auth parameters
52
+
### Additional authentication parameters
50
53
51
-
To send additional parameters during login you can specify them when you register the provider
54
+
To send additional parameters during login, you can specify them when you register the provider:
52
55
53
56
```ruby
54
57
provider
@@ -64,81 +67,89 @@ provider
64
67
}
65
68
```
66
69
67
-
that will tell it to send those parameters on every Auth request.
70
+
... which will tell the strategy to send those parameters on every Auth request.
68
71
69
-
Or you can do it for a specific Auth request by adding them in the query parameter of the redirect URL. Allowed parameters are `connection` and `prompt`:
72
+
Or you can do it for a specific authentication request by adding them to the query parameters of the redirect URL. Allowed parameters are `connection` and `prompt`:
- Use [Community](https://community.auth0.com/) for usage, questions, specific cases.
133
+
- Use [Issues](https://github.com/auth0/omniauth-auth0/issues) here for code-level support and bug reports.
134
+
- Paid customers can use [Support](https://support.auth0.com/) to submit a trouble ticket for production-affecting issues.
135
+
136
+
## Vulnerability Reporting
131
137
132
-
For more information about [auth0](http://auth0.com) contact our [documentation page](http://docs.auth0.com/).
138
+
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
133
139
134
-
## Issue Reporting
140
+
## What is Auth0?
135
141
136
-
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
142
+
Auth0 helps you to easily:
137
143
138
-
## Author
144
+
- implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)
145
+
- log in users with username/password databases, passwordless, or multi-factor authentication
146
+
- link multiple user accounts together
147
+
- generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely
148
+
- access demographics and analytics detailing how, when, and where users are logging in
149
+
- enrich user profiles from other data sources using customizable JavaScript rules
139
150
140
-
[Auth0](https://auth0.com)
151
+
[Why Auth0?](https://auth0.com/why-auth0)
141
152
142
153
## License
143
154
144
-
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
155
+
The OmniAuth Auth0 strategy is licensed under MIT - [LICENSE](LICENSE)
0 commit comments