auth0 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/auth0.gemspec +6 -5
  4. data/lib/auth0/api/authentication_endpoints.rb +19 -2
  5. data/lib/auth0/mixins/initializer.rb +3 -3
  6. data/lib/auth0/version.rb +1 -1
  7. data/spec/lib/auth0/api/authentication_endpoints_spec.rb +20 -2
  8. data/spec/lib/auth0/client_spec.rb +1 -1
  9. data/spec/lib/auth0/mixins/initializer_spec.rb +28 -0
  10. metadata +44 -72
  11. data/doc/Auth0.html +0 -153
  12. data/doc/Auth0/AccessDenied.html +0 -142
  13. data/doc/Auth0/Api.html +0 -128
  14. data/doc/Auth0/Api/AuthenticationEndpoints.html +0 -592
  15. data/doc/Auth0/Api/V1.html +0 -188
  16. data/doc/Auth0/Api/V1/Clients.html +0 -440
  17. data/doc/Auth0/Api/V1/Connections.html +0 -506
  18. data/doc/Auth0/Api/V1/Logs.html +0 -366
  19. data/doc/Auth0/Api/V1/Rules.html +0 -439
  20. data/doc/Auth0/Api/V1/Users.html +0 -1617
  21. data/doc/Auth0/Api/V2.html +0 -193
  22. data/doc/Auth0/Api/V2/Blacklists.html +0 -268
  23. data/doc/Auth0/Api/V2/Clients.html +0 -477
  24. data/doc/Auth0/Api/V2/Jobs.html +0 -277
  25. data/doc/Auth0/Api/V2/Router.html +0 -109
  26. data/doc/Auth0/Api/V2/Stats.html +0 -268
  27. data/doc/Auth0/Api/V2/Users.html +0 -652
  28. data/doc/Auth0/BadRequest.html +0 -142
  29. data/doc/Auth0/Client.html +0 -164
  30. data/doc/Auth0/Exception.html +0 -140
  31. data/doc/Auth0/InvalidParameter.html +0 -142
  32. data/doc/Auth0/Mixins.html +0 -153
  33. data/doc/Auth0/Mixins/HTTPartyProxy.html +0 -121
  34. data/doc/Auth0/Mixins/Initializer.html +0 -312
  35. data/doc/Auth0/NotFound.html +0 -143
  36. data/doc/Auth0/ServerError.html +0 -142
  37. data/doc/Auth0/Unauthorized.html +0 -143
  38. data/doc/Auth0/Unsupported.html +0 -142
  39. data/doc/Auth0/UserIdIsBlank.html +0 -143
  40. data/doc/Auth0Client.html +0 -163
  41. data/doc/_index.html +0 -418
  42. data/doc/class_list.html +0 -58
  43. data/doc/css/common.css +0 -1
  44. data/doc/css/full_list.css +0 -57
  45. data/doc/css/style.css +0 -339
  46. data/doc/file.README.html +0 -103
  47. data/doc/file_list.html +0 -60
  48. data/doc/frames.html +0 -26
  49. data/doc/index.html +0 -103
  50. data/doc/js/app.js +0 -219
  51. data/doc/js/full_list.js +0 -181
  52. data/doc/js/jquery.js +0 -4
  53. data/doc/method_list.html +0 -435
  54. data/doc/top-level-namespace.html +0 -114
data/doc/Auth0.html DELETED
@@ -1,153 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Auth0
8
-
9
- &mdash; Documentation by YARD 0.8.7.6
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!Auth0.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index (A)</a> &raquo;
35
-
36
-
37
- <span class="title">Auth0</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Auth0
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/auth0.rb<span class="defines">,<br />
83
- lib/auth0/api/v1.rb,<br /> lib/auth0/api/v2.rb,<br /> lib/auth0/version.rb,<br /> lib/auth0/exception.rb,<br /> lib/auth0/api/v1/logs.rb,<br /> lib/auth0/api/v2/jobs.rb,<br /> lib/auth0/api/v2/stats.rb,<br /> lib/auth0/api/v1/rules.rb,<br /> lib/auth0/api/v1/users.rb,<br /> lib/auth0/api/v2/users.rb,<br /> lib/auth0/api/v2/router.rb,<br /> lib/auth0/api/v1/clients.rb,<br /> lib/auth0/api/v2/clients.rb,<br /> lib/auth0/api/v2/blacklists.rb,<br /> lib/auth0/mixins/initializer.rb,<br /> lib/auth0/api/v1/connections.rb,<br /> lib/auth0/mixins/httparty_proxy.rb,<br /> lib/auth0/api/authentication_endpoints.rb</span>
84
- </dd>
85
-
86
- </dl>
87
- <div class="clear"></div>
88
-
89
- <h2>Overview</h2><div class="docstring">
90
- <div class="discussion">
91
-
92
- <p>Namespace for ruby-auth0 logic</p>
93
-
94
-
95
- </div>
96
- </div>
97
- <div class="tags">
98
-
99
-
100
- </div><h2>Defined Under Namespace</h2>
101
- <p class="children">
102
-
103
-
104
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Auth0/Api.html" title="Auth0::Api (module)">Api</a></span>, <span class='object_link'><a href="Auth0/Mixins.html" title="Auth0::Mixins (module)">Mixins</a></span>
105
-
106
-
107
-
108
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Auth0/AccessDenied.html" title="Auth0::AccessDenied (class)">AccessDenied</a></span>, <span class='object_link'><a href="Auth0/BadRequest.html" title="Auth0::BadRequest (class)">BadRequest</a></span>, <span class='object_link'><a href="Auth0/Client.html" title="Auth0::Client (class)">Client</a></span>, <span class='object_link'><a href="Auth0/Exception.html" title="Auth0::Exception (class)">Exception</a></span>, <span class='object_link'><a href="Auth0/InvalidParameter.html" title="Auth0::InvalidParameter (class)">InvalidParameter</a></span>, <span class='object_link'><a href="Auth0/NotFound.html" title="Auth0::NotFound (class)">NotFound</a></span>, <span class='object_link'><a href="Auth0/ServerError.html" title="Auth0::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="Auth0/Unauthorized.html" title="Auth0::Unauthorized (class)">Unauthorized</a></span>, <span class='object_link'><a href="Auth0/Unsupported.html" title="Auth0::Unsupported (class)">Unsupported</a></span>, <span class='object_link'><a href="Auth0/UserIdIsBlank.html" title="Auth0::UserIdIsBlank (class)">UserIdIsBlank</a></span>
109
-
110
-
111
- </p>
112
-
113
- <h2>Constant Summary</h2>
114
-
115
- <dl class="constants">
116
-
117
- <dt id="VERSION-constant" class="">VERSION =
118
- <div class="docstring">
119
- <div class="discussion">
120
-
121
- <p>current version of gem</p>
122
-
123
-
124
- </div>
125
- </div>
126
- <div class="tags">
127
-
128
-
129
- </div>
130
- </dt>
131
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2.2.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
132
-
133
- </dl>
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- </div>
145
-
146
- <div id="footer">
147
- Generated on Mon Feb 23 01:12:53 2015 by
148
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
- 0.8.7.6 (ruby-2.0.0).
150
- </div>
151
-
152
- </body>
153
- </html>
@@ -1,142 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Exception: Auth0::AccessDenied
8
-
9
- &mdash; Documentation by YARD 0.8.7.6
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!Auth0/AccessDenied.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (A)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Auth0.html" title="Auth0 (module)">Auth0</a></span></span>
36
- &raquo;
37
- <span class="title">AccessDenied</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Exception: Auth0::AccessDenied
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName"><span class='object_link'><a href="Exception.html" title="Auth0::Exception (class)">Exception</a></span></span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">StandardError</li>
82
-
83
- <li class="next"><span class='object_link'><a href="Exception.html" title="Auth0::Exception (class)">Exception</a></span></li>
84
-
85
- <li class="next">Auth0::AccessDenied</li>
86
-
87
- </ul>
88
- <a href="#" class="inheritanceTree">show all</a>
89
-
90
- </dd>
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
- <dt class="r2 last">Defined in:</dt>
101
- <dd class="r2 last">lib/auth0/exception.rb</dd>
102
-
103
- </dl>
104
- <div class="clear"></div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <p>Api v2 access denied</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- </div>
134
-
135
- <div id="footer">
136
- Generated on Mon Feb 23 01:12:53 2015 by
137
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
138
- 0.8.7.6 (ruby-2.0.0).
139
- </div>
140
-
141
- </body>
142
- </html>
data/doc/Auth0/Api.html DELETED
@@ -1,128 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Auth0::Api
8
-
9
- &mdash; Documentation by YARD 0.8.7.6
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!Auth0/Api.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (A)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Auth0.html" title="Auth0 (module)">Auth0</a></span></span>
36
- &raquo;
37
- <span class="title">Api</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Auth0::Api
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/auth0/api/v1.rb<span class="defines">,<br />
83
- lib/auth0/api/v2.rb,<br /> lib/auth0/api/v1/logs.rb,<br /> lib/auth0/api/v2/jobs.rb,<br /> lib/auth0/api/v2/stats.rb,<br /> lib/auth0/api/v1/rules.rb,<br /> lib/auth0/api/v1/users.rb,<br /> lib/auth0/api/v2/users.rb,<br /> lib/auth0/api/v2/router.rb,<br /> lib/auth0/api/v1/clients.rb,<br /> lib/auth0/api/v2/clients.rb,<br /> lib/auth0/api/v2/blacklists.rb,<br /> lib/auth0/api/v1/connections.rb,<br /> lib/auth0/api/authentication_endpoints.rb</span>
84
- </dd>
85
-
86
- </dl>
87
- <div class="clear"></div>
88
-
89
- <h2>Overview</h2><div class="docstring">
90
- <div class="discussion">
91
-
92
- <p>Space for all API calls</p>
93
-
94
-
95
- </div>
96
- </div>
97
- <div class="tags">
98
-
99
-
100
- </div><h2>Defined Under Namespace</h2>
101
- <p class="children">
102
-
103
-
104
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Api/AuthenticationEndpoints.html" title="Auth0::Api::AuthenticationEndpoints (module)">AuthenticationEndpoints</a></span>, <span class='object_link'><a href="Api/V1.html" title="Auth0::Api::V1 (module)">V1</a></span>, <span class='object_link'><a href="Api/V2.html" title="Auth0::Api::V2 (module)">V2</a></span>
105
-
106
-
107
-
108
-
109
- </p>
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- </div>
120
-
121
- <div id="footer">
122
- Generated on Mon Feb 23 01:12:53 2015 by
123
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
- 0.8.7.6 (ruby-2.0.0).
125
- </div>
126
-
127
- </body>
128
- </html>
@@ -1,592 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Auth0::Api::AuthenticationEndpoints
8
-
9
- &mdash; Documentation by YARD 0.8.7.6
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Auth0/Api/AuthenticationEndpoints.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (A)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Api.html" title="Auth0::Api (module)">Api</a></span></span>
36
- &raquo;
37
- <span class="title">AuthenticationEndpoints</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Auth0::Api::AuthenticationEndpoints
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/auth0/api/authentication_endpoints.rb</dd>
83
-
84
- </dl>
85
- <div class="clear"></div>
86
-
87
- <h2>Overview</h2><div class="docstring">
88
- <div class="discussion">
89
-
90
- <p><a href="https://auth0.com/docs/auth-api" target="_parent" title="https://auth0.com/docs/auth-api">https://auth0.com/docs/auth-api</a> Describing functionality of auth0
91
- authentication endpoints</p>
92
-
93
-
94
- </div>
95
- </div>
96
- <div class="tags">
97
-
98
-
99
- </div>
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <h2>
108
- Instance Method Summary
109
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
110
- </h2>
111
-
112
- <ul class="summary">
113
-
114
- <li class="public ">
115
- <span class="summary_signature">
116
-
117
- <a href="#change_password-instance_method" title="#change_password (instance method)">- (Object) <strong>change_password</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;) </a>
118
-
119
-
120
-
121
- </span>
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <span class="summary_desc"><div class='inline'>
132
- <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password">https://auth0.com/docs/auth-api#!#post–dbconnections-change_password</a>.</p>
133
- </div></span>
134
-
135
- </li>
136
-
137
-
138
- <li class="public ">
139
- <span class="summary_signature">
140
-
141
- <a href="#delegation-instance_method" title="#delegation (instance method)">- (Object) <strong>delegation</strong>(id_token, target, scope = &quot;open_id&quot;) </a>
142
-
143
-
144
-
145
- </span>
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
- <span class="summary_desc"><div class='inline'>
156
- <p><a href="https://auth0.com/docs/auth-api#!#post–delegation" target="_parent" title="https://auth0.com/docs/auth-api#!#post–delegation">https://auth0.com/docs/auth-api#!#post–delegation</a>.</p>
157
- </div></span>
158
-
159
- </li>
160
-
161
-
162
- <li class="public ">
163
- <span class="summary_signature">
164
-
165
- <a href="#login-instance_method" title="#login (instance method)">- (Object) <strong>login</strong>(username, password, scope = &quot;openid&quot;, id_token = nil, connection_name = &quot;Username-Password-Authentication&quot;) </a>
166
-
167
-
168
-
169
- </span>
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
- <span class="summary_desc"><div class='inline'>
180
- <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-ro" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-ro">https://auth0.com/docs/auth-api#!#post–oauth-ro</a>.</p>
181
- </div></span>
182
-
183
- </li>
184
-
185
-
186
- <li class="public ">
187
- <span class="summary_signature">
188
-
189
- <a href="#obtain_access_token-instance_method" title="#obtain_access_token (instance method)">- (Object) <strong>obtain_access_token</strong> </a>
190
-
191
-
192
-
193
- </span>
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- <span class="summary_desc"><div class='inline'>
204
- <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-access_token" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-access_token">https://auth0.com/docs/auth-api#!#post–oauth-access_token</a>.</p>
205
- </div></span>
206
-
207
- </li>
208
-
209
-
210
- <li class="public ">
211
- <span class="summary_signature">
212
-
213
- <a href="#signup-instance_method" title="#signup (instance method)">- (Object) <strong>signup</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;) </a>
214
-
215
-
216
-
217
- </span>
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
- <span class="summary_desc"><div class='inline'>
228
- <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-signup" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-signup">https://auth0.com/docs/auth-api#!#post–dbconnections-signup</a>.</p>
229
- </div></span>
230
-
231
- </li>
232
-
233
-
234
- <li class="public ">
235
- <span class="summary_signature">
236
-
237
- <a href="#token_info-instance_method" title="#token_info (instance method)">- (Object) <strong>token_info</strong>(id_token) </a>
238
-
239
-
240
-
241
- </span>
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
- <span class="summary_desc"><div class='inline'>
252
- <p><a href="https://auth0.com/docs/auth-api#!#post–tokeninfo" target="_parent" title="https://auth0.com/docs/auth-api#!#post–tokeninfo">https://auth0.com/docs/auth-api#!#post–tokeninfo</a>.</p>
253
- </div></span>
254
-
255
- </li>
256
-
257
-
258
- </ul>
259
-
260
-
261
-
262
-
263
- <div id="instance_method_details" class="method_details_list">
264
- <h2>Instance Method Details</h2>
265
-
266
-
267
- <div class="method_details first">
268
- <h3 class="signature first" id="change_password-instance_method">
269
-
270
- - (<tt>Object</tt>) <strong>change_password</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;)
271
-
272
-
273
-
274
-
275
-
276
- </h3><div class="docstring">
277
- <div class="discussion">
278
-
279
- <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-change_password">https://auth0.com/docs/auth-api#!#post–dbconnections-change_password</a></p>
280
-
281
-
282
- </div>
283
- </div>
284
- <div class="tags">
285
-
286
-
287
- </div><table class="source_code">
288
- <tr>
289
- <td>
290
- <pre class="lines">
291
-
292
-
293
- 54
294
- 55
295
- 56
296
- 57
297
- 58
298
- 59
299
- 60
300
- 61
301
- 62</pre>
302
- </td>
303
- <td>
304
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 54</span>
305
-
306
- <span class='kw'>def</span> <span class='id identifier rubyid_change_password'>change_password</span><span class='lparen'>(</span><span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
307
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
308
- <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
309
- <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span>
310
- <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
311
- <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span>
312
- <span class='rbrace'>}</span>
313
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/dbconnections/change_password</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
314
- <span class='kw'>end</span></pre>
315
- </td>
316
- </tr>
317
- </table>
318
- </div>
319
-
320
- <div class="method_details ">
321
- <h3 class="signature " id="delegation-instance_method">
322
-
323
- - (<tt>Object</tt>) <strong>delegation</strong>(id_token, target, scope = &quot;open_id&quot;)
324
-
325
-
326
-
327
-
328
-
329
- </h3><div class="docstring">
330
- <div class="discussion">
331
-
332
- <p><a href="https://auth0.com/docs/auth-api#!#post–delegation" target="_parent" title="https://auth0.com/docs/auth-api#!#post–delegation">https://auth0.com/docs/auth-api#!#post–delegation</a></p>
333
-
334
-
335
- </div>
336
- </div>
337
- <div class="tags">
338
-
339
-
340
- </div><table class="source_code">
341
- <tr>
342
- <td>
343
- <pre class="lines">
344
-
345
-
346
- 17
347
- 18
348
- 19
349
- 20
350
- 21
351
- 22
352
- 23
353
- 24
354
- 25
355
- 26</pre>
356
- </td>
357
- <td>
358
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 17</span>
359
-
360
- <span class='kw'>def</span> <span class='id identifier rubyid_delegation'>delegation</span><span class='lparen'>(</span><span class='id identifier rubyid_id_token'>id_token</span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>open_id</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
361
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
362
- <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
363
- <span class='label'>grant_type:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>urn:ietf:params:oauth:grant-type:jwt-bearer</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
364
- <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='comma'>,</span>
365
- <span class='label'>target:</span> <span class='id identifier rubyid_target'>target</span><span class='comma'>,</span>
366
- <span class='label'>scope:</span> <span class='id identifier rubyid_scope'>scope</span>
367
- <span class='rbrace'>}</span>
368
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/delegation</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
369
- <span class='kw'>end</span></pre>
370
- </td>
371
- </tr>
372
- </table>
373
- </div>
374
-
375
- <div class="method_details ">
376
- <h3 class="signature " id="login-instance_method">
377
-
378
- - (<tt>Object</tt>) <strong>login</strong>(username, password, scope = &quot;openid&quot;, id_token = nil, connection_name = &quot;Username-Password-Authentication&quot;)
379
-
380
-
381
-
382
-
383
-
384
- </h3><div class="docstring">
385
- <div class="discussion">
386
-
387
- <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-ro" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-ro">https://auth0.com/docs/auth-api#!#post–oauth-ro</a></p>
388
-
389
-
390
- </div>
391
- </div>
392
- <div class="tags">
393
-
394
-
395
- </div><table class="source_code">
396
- <tr>
397
- <td>
398
- <pre class="lines">
399
-
400
-
401
- 29
402
- 30
403
- 31
404
- 32
405
- 33
406
- 34
407
- 35
408
- 36
409
- 37
410
- 38
411
- 39
412
- 40</pre>
413
- </td>
414
- <td>
415
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 29</span>
416
-
417
- <span class='kw'>def</span> <span class='id identifier rubyid_login'>login</span><span class='lparen'>(</span><span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>openid</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
418
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
419
- <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
420
- <span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span>
421
- <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span>
422
- <span class='label'>scope:</span> <span class='id identifier rubyid_scope'>scope</span><span class='comma'>,</span>
423
- <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
424
- <span class='label'>grand_type:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>password</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
425
- <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span>
426
- <span class='rbrace'>}</span>
427
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/oauth/ro</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
428
- <span class='kw'>end</span></pre>
429
- </td>
430
- </tr>
431
- </table>
432
- </div>
433
-
434
- <div class="method_details ">
435
- <h3 class="signature " id="obtain_access_token-instance_method">
436
-
437
- - (<tt>Object</tt>) <strong>obtain_access_token</strong>
438
-
439
-
440
-
441
-
442
-
443
- </h3><div class="docstring">
444
- <div class="discussion">
445
-
446
- <p><a href="https://auth0.com/docs/auth-api#!#post–oauth-access_token" target="_parent" title="https://auth0.com/docs/auth-api#!#post–oauth-access_token">https://auth0.com/docs/auth-api#!#post–oauth-access_token</a></p>
447
-
448
-
449
- </div>
450
- </div>
451
- <div class="tags">
452
-
453
-
454
- </div><table class="source_code">
455
- <tr>
456
- <td>
457
- <pre class="lines">
458
-
459
-
460
- 7
461
- 8
462
- 9
463
- 10
464
- 11
465
- 12
466
- 13
467
- 14</pre>
468
- </td>
469
- <td>
470
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 7</span>
471
-
472
- <span class='kw'>def</span> <span class='id identifier rubyid_obtain_access_token'>obtain_access_token</span>
473
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
474
- <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
475
- <span class='label'>client_secret:</span> <span class='ivar'>@client_secret</span><span class='comma'>,</span>
476
- <span class='label'>grant_type:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>client_credentials</span><span class='tstring_end'>&#39;</span></span>
477
- <span class='rbrace'>}</span>
478
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/oauth/token</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>access_token</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
479
- <span class='kw'>end</span></pre>
480
- </td>
481
- </tr>
482
- </table>
483
- </div>
484
-
485
- <div class="method_details ">
486
- <h3 class="signature " id="signup-instance_method">
487
-
488
- - (<tt>Object</tt>) <strong>signup</strong>(email, password, connection_name = &quot;Username-Password-Authentication&quot;)
489
-
490
-
491
-
492
-
493
-
494
- </h3><div class="docstring">
495
- <div class="discussion">
496
-
497
- <p><a href="https://auth0.com/docs/auth-api#!#post–dbconnections-signup" target="_parent" title="https://auth0.com/docs/auth-api#!#post–dbconnections-signup">https://auth0.com/docs/auth-api#!#post–dbconnections-signup</a></p>
498
-
499
-
500
- </div>
501
- </div>
502
- <div class="tags">
503
-
504
-
505
- </div><table class="source_code">
506
- <tr>
507
- <td>
508
- <pre class="lines">
509
-
510
-
511
- 43
512
- 44
513
- 45
514
- 46
515
- 47
516
- 48
517
- 49
518
- 50
519
- 51</pre>
520
- </td>
521
- <td>
522
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 43</span>
523
-
524
- <span class='kw'>def</span> <span class='id identifier rubyid_signup'>signup</span><span class='lparen'>(</span><span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Username-Password-Authentication</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
525
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
526
- <span class='label'>client_id:</span> <span class='ivar'>@client_id</span><span class='comma'>,</span>
527
- <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span>
528
- <span class='label'>connection:</span> <span class='id identifier rubyid_connection_name'>connection_name</span><span class='comma'>,</span>
529
- <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span>
530
- <span class='rbrace'>}</span>
531
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/dbconnections/signup</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
532
- <span class='kw'>end</span></pre>
533
- </td>
534
- </tr>
535
- </table>
536
- </div>
537
-
538
- <div class="method_details ">
539
- <h3 class="signature " id="token_info-instance_method">
540
-
541
- - (<tt>Object</tt>) <strong>token_info</strong>(id_token)
542
-
543
-
544
-
545
-
546
-
547
- </h3><div class="docstring">
548
- <div class="discussion">
549
-
550
- <p><a href="https://auth0.com/docs/auth-api#!#post–tokeninfo" target="_parent" title="https://auth0.com/docs/auth-api#!#post–tokeninfo">https://auth0.com/docs/auth-api#!#post–tokeninfo</a></p>
551
-
552
-
553
- </div>
554
- </div>
555
- <div class="tags">
556
-
557
-
558
- </div><table class="source_code">
559
- <tr>
560
- <td>
561
- <pre class="lines">
562
-
563
-
564
- 65
565
- 66
566
- 67
567
- 68</pre>
568
- </td>
569
- <td>
570
- <pre class="code"><span class="info file"># File 'lib/auth0/api/authentication_endpoints.rb', line 65</span>
571
-
572
- <span class='kw'>def</span> <span class='id identifier rubyid_token_info'>token_info</span><span class='lparen'>(</span><span class='id identifier rubyid_id_token'>id_token</span><span class='rparen'>)</span>
573
- <span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>id_token:</span> <span class='id identifier rubyid_id_token'>id_token</span><span class='rbrace'>}</span>
574
- <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/tokeninfo</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
575
- <span class='kw'>end</span></pre>
576
- </td>
577
- </tr>
578
- </table>
579
- </div>
580
-
581
- </div>
582
-
583
- </div>
584
-
585
- <div id="footer">
586
- Generated on Mon Feb 23 01:12:53 2015 by
587
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
588
- 0.8.7.6 (ruby-2.0.0).
589
- </div>
590
-
591
- </body>
592
- </html>