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
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
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:
1023
+
1024
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1025
+
1026
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -7056,6 +7075,17 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
7056
7075
THE SOFTWARE.
7057
7076
7058
7077
7078
+
* MIT *
7079
+
7080
+
Copyright (c) 2011 Jeff Lindsay
7081
+
7082
+
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:
7083
+
7084
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7085
+
7086
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7087
+
7088
+
7059
7089
* MIT *
7060
7090
7061
7091
Copyright (c) 2011-2013 Peter Zotov <whitequark@whitequark.org>
@@ -8911,6 +8941,10 @@ purpose. It is provided "as is" without express or implied warranty.
8911
8941
8912
8942
This is a catch-all license used when we find many different proprietary licenses.
# Rails/Ruby: API Basic Access Control Code Sample
2
2
3
-
This Ruby code sample demonstrates how to build an API server using Rails that is secure by design.
3
+
This Ruby code sample demonstrates **how to implement authorization** in Rails API servers using Auth0.
4
4
5
-
Visit the ["Rails/Ruby Code Samples: API Security in Action"](https://developer.auth0.com/resources/code-samples/api/railss) section of the ["Auth0 Developer Resources"](https://developer.auth0.com/resources) to explore how you can secure Rails applications written in Ruby by implementing endpoint protection and authorization with Auth0.
5
+
This code sample is part of the ["Auth0 Developer Resources"](https://developer.auth0.com/resources), a place where you can explore the authentication and authorization features of the Auth0 Identity Platform.
6
+
7
+
Visit the ["Rails/Ruby Code Sample: Authorization For Basic APIs"](https://developer.auth0.com/resources/code-samples/api/rails/basic-authorization) page for instructions on how to configure and run this code sample and how to integrate it with a Single-Page Application (SPA) of your choice.
6
8
7
9
## Why Use Auth0?
8
10
9
11
Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and [integrate Auth0 into your stack easily](https://developer.auth0.com/resources/code-samples/full-stack).
10
-
11
-
## Set Up and Run the Rails Project
12
-
13
-
Install the project dependencies:
14
-
15
-
```bash
16
-
bundle install
17
-
```
18
-
19
-
Run the application:
20
-
21
-
```bash
22
-
bundle exec rails s
23
-
```
24
-
25
-
Visit [`http://localhost:6060/`](http://localhost:6060/) to access the starter application.
0 commit comments