auth0 3.1.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/auth0.gemspec +6 -5
- data/lib/auth0/api/authentication_endpoints.rb +19 -2
- data/lib/auth0/mixins/initializer.rb +3 -3
- data/lib/auth0/version.rb +1 -1
- data/spec/lib/auth0/api/authentication_endpoints_spec.rb +20 -2
- data/spec/lib/auth0/client_spec.rb +1 -1
- data/spec/lib/auth0/mixins/initializer_spec.rb +28 -0
- metadata +44 -72
- data/doc/Auth0.html +0 -153
- data/doc/Auth0/AccessDenied.html +0 -142
- data/doc/Auth0/Api.html +0 -128
- data/doc/Auth0/Api/AuthenticationEndpoints.html +0 -592
- data/doc/Auth0/Api/V1.html +0 -188
- data/doc/Auth0/Api/V1/Clients.html +0 -440
- data/doc/Auth0/Api/V1/Connections.html +0 -506
- data/doc/Auth0/Api/V1/Logs.html +0 -366
- data/doc/Auth0/Api/V1/Rules.html +0 -439
- data/doc/Auth0/Api/V1/Users.html +0 -1617
- data/doc/Auth0/Api/V2.html +0 -193
- data/doc/Auth0/Api/V2/Blacklists.html +0 -268
- data/doc/Auth0/Api/V2/Clients.html +0 -477
- data/doc/Auth0/Api/V2/Jobs.html +0 -277
- data/doc/Auth0/Api/V2/Router.html +0 -109
- data/doc/Auth0/Api/V2/Stats.html +0 -268
- data/doc/Auth0/Api/V2/Users.html +0 -652
- data/doc/Auth0/BadRequest.html +0 -142
- data/doc/Auth0/Client.html +0 -164
- data/doc/Auth0/Exception.html +0 -140
- data/doc/Auth0/InvalidParameter.html +0 -142
- data/doc/Auth0/Mixins.html +0 -153
- data/doc/Auth0/Mixins/HTTPartyProxy.html +0 -121
- data/doc/Auth0/Mixins/Initializer.html +0 -312
- data/doc/Auth0/NotFound.html +0 -143
- data/doc/Auth0/ServerError.html +0 -142
- data/doc/Auth0/Unauthorized.html +0 -143
- data/doc/Auth0/Unsupported.html +0 -142
- data/doc/Auth0/UserIdIsBlank.html +0 -143
- data/doc/Auth0Client.html +0 -163
- data/doc/_index.html +0 -418
- data/doc/class_list.html +0 -58
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -103
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -103
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -181
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -435
- data/doc/top-level-namespace.html +0 -114
data/doc/Auth0/Mixins.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::Mixins
|
8
|
-
|
9
|
-
— 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/Mixins.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 (M)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Auth0.html" title="Auth0 (module)">Auth0</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Mixins</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::Mixins
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<dt class="r1">Includes:</dt>
|
79
|
-
<dd class="r1"><span class='object_link'><a href="Mixins/HTTPartyProxy.html" title="Auth0::Mixins::HTTPartyProxy (module)">HTTPartyProxy</a></span>, <span class='object_link'><a href="Mixins/Initializer.html" title="Auth0::Mixins::Initializer (module)">Initializer</a></span></dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<dt class="r2">Included in:</dt>
|
85
|
-
<dd class="r2"><span class='object_link'><a href="Client.html" title="Auth0::Client (class)">Client</a></span></dd>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<dt class="r1 last">Defined in:</dt>
|
90
|
-
<dd class="r1 last">lib/auth0/mixins.rb<span class="defines">,<br />
|
91
|
-
lib/auth0/mixins/initializer.rb,<br /> lib/auth0/mixins/httparty_proxy.rb</span>
|
92
|
-
</dd>
|
93
|
-
|
94
|
-
</dl>
|
95
|
-
<div class="clear"></div>
|
96
|
-
|
97
|
-
<h2>Overview</h2><div class="docstring">
|
98
|
-
<div class="discussion">
|
99
|
-
|
100
|
-
<p>Collecting dependencies here</p>
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
<div class="tags">
|
106
|
-
|
107
|
-
|
108
|
-
</div><h2>Defined Under Namespace</h2>
|
109
|
-
<p class="children">
|
110
|
-
|
111
|
-
|
112
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Mixins/HTTPartyProxy.html" title="Auth0::Mixins::HTTPartyProxy (module)">HTTPartyProxy</a></span>, <span class='object_link'><a href="Mixins/Initializer.html" title="Auth0::Mixins::Initializer (module)">Initializer</a></span>
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
</p>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<h2>Method Summary</h2>
|
133
|
-
|
134
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Mixins/Initializer.html" title="Auth0::Mixins::Initializer (module)">Initializer</a></span></h3>
|
135
|
-
<p class="inherited"><span class='object_link'><a href="Mixins/Initializer.html#included-class_method" title="Auth0::Mixins::Initializer.included (method)">included</a></span>, <span class='object_link'><a href="Mixins/Initializer.html#initialize-instance_method" title="Auth0::Mixins::Initializer#initialize (method)">#initialize</a></span></p>
|
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,121 +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::Mixins::HTTPartyProxy
|
8
|
-
|
9
|
-
— 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/Mixins/HTTPartyProxy.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 (H)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> » <span class='title'><span class='object_link'><a href="../Mixins.html" title="Auth0::Mixins (module)">Mixins</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">HTTPartyProxy</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::Mixins::HTTPartyProxy
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Mixins.html" title="Auth0::Mixins (module)">Auth0::Mixins</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/auth0/mixins/httparty_proxy.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
<h2>Overview</h2><div class="docstring">
|
92
|
-
<div class="discussion">
|
93
|
-
|
94
|
-
<p>here's the proxy for HTTParty, we're building all request on that
|
95
|
-
gem for now, if you want to feel free to use your own http client</p>
|
96
|
-
|
97
|
-
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
<div class="tags">
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
|
114
|
-
<div id="footer">
|
115
|
-
Generated on Mon Feb 23 01:12:53 2015 by
|
116
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
117
|
-
0.8.7.6 (ruby-2.0.0).
|
118
|
-
</div>
|
119
|
-
|
120
|
-
</body>
|
121
|
-
</html>
|
@@ -1,312 +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::Mixins::Initializer
|
8
|
-
|
9
|
-
— 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/Mixins/Initializer.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 (I)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> » <span class='title'><span class='object_link'><a href="../Mixins.html" title="Auth0::Mixins (module)">Mixins</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Initializer</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::Mixins::Initializer
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Mixins.html" title="Auth0::Mixins (module)">Auth0::Mixins</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/auth0/mixins/initializer.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
<h2>Overview</h2><div class="docstring">
|
92
|
-
<div class="discussion">
|
93
|
-
|
94
|
-
<p>Help class where Auth0::Client initialization described</p>
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
<div class="tags">
|
100
|
-
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<h2>
|
111
|
-
Class Method Summary
|
112
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
-
</h2>
|
114
|
-
|
115
|
-
<ul class="summary">
|
116
|
-
|
117
|
-
<li class="public ">
|
118
|
-
<span class="summary_signature">
|
119
|
-
|
120
|
-
<a href="#included-class_method" title="included (class method)">+ (Object) <strong>included</strong>(klass) </a>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</span>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<span class="summary_desc"><div class='inline'>
|
135
|
-
<p>including initializer in top of klass.</p>
|
136
|
-
</div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
</ul>
|
142
|
-
|
143
|
-
<h2>
|
144
|
-
Instance Method Summary
|
145
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
146
|
-
</h2>
|
147
|
-
|
148
|
-
<ul class="summary">
|
149
|
-
|
150
|
-
<li class="public ">
|
151
|
-
<span class="summary_signature">
|
152
|
-
|
153
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Object) <strong>initialize</strong>(config) </a>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
</span>
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<span class="summary_desc"><div class='inline'>
|
168
|
-
<p>Default initialization mechanism, moved here to keep Auth0::Client clear
|
169
|
-
accepts hash as parameter you can get all required fields from here: <a
|
170
|
-
href="https://auth0.com/docs/auth-api">auth0.com/docs/auth-api</a>.</p>
|
171
|
-
</div></span>
|
172
|
-
|
173
|
-
</li>
|
174
|
-
|
175
|
-
|
176
|
-
</ul>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
<div id="class_method_details" class="method_details_list">
|
182
|
-
<h2>Class Method Details</h2>
|
183
|
-
|
184
|
-
|
185
|
-
<div class="method_details first">
|
186
|
-
<h3 class="signature first" id="included-class_method">
|
187
|
-
|
188
|
-
+ (<tt>Object</tt>) <strong>included</strong>(klass)
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
</h3><div class="docstring">
|
195
|
-
<div class="discussion">
|
196
|
-
|
197
|
-
<p>including initializer in top of klass</p>
|
198
|
-
|
199
|
-
|
200
|
-
</div>
|
201
|
-
</div>
|
202
|
-
<div class="tags">
|
203
|
-
|
204
|
-
|
205
|
-
</div><table class="source_code">
|
206
|
-
<tr>
|
207
|
-
<td>
|
208
|
-
<pre class="lines">
|
209
|
-
|
210
|
-
|
211
|
-
26
|
212
|
-
27
|
213
|
-
28</pre>
|
214
|
-
</td>
|
215
|
-
<td>
|
216
|
-
<pre class="code"><span class="info file"># File 'lib/auth0/mixins/initializer.rb', line 26</span>
|
217
|
-
|
218
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='rparen'>)</span>
|
219
|
-
<span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='symbol'>:prepend</span><span class='comma'>,</span> <span class='const'>Initializer</span>
|
220
|
-
<span class='kw'>end</span></pre>
|
221
|
-
</td>
|
222
|
-
</tr>
|
223
|
-
</table>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
</div>
|
227
|
-
|
228
|
-
<div id="instance_method_details" class="method_details_list">
|
229
|
-
<h2>Instance Method Details</h2>
|
230
|
-
|
231
|
-
|
232
|
-
<div class="method_details first">
|
233
|
-
<h3 class="signature first" id="initialize-instance_method">
|
234
|
-
|
235
|
-
- (<tt>Object</tt>) <strong>initialize</strong>(config)
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
</h3><div class="docstring">
|
242
|
-
<div class="discussion">
|
243
|
-
|
244
|
-
<p>Default initialization mechanism, moved here to keep Auth0::Client clear
|
245
|
-
accepts hash as parameter you can get all required fields from here: <a
|
246
|
-
href="https://auth0.com/docs/auth-api">auth0.com/docs/auth-api</a></p>
|
247
|
-
|
248
|
-
|
249
|
-
</div>
|
250
|
-
</div>
|
251
|
-
<div class="tags">
|
252
|
-
|
253
|
-
|
254
|
-
</div><table class="source_code">
|
255
|
-
<tr>
|
256
|
-
<td>
|
257
|
-
<pre class="lines">
|
258
|
-
|
259
|
-
|
260
|
-
8
|
261
|
-
9
|
262
|
-
10
|
263
|
-
11
|
264
|
-
12
|
265
|
-
13
|
266
|
-
14
|
267
|
-
15
|
268
|
-
16
|
269
|
-
17
|
270
|
-
18
|
271
|
-
19
|
272
|
-
20
|
273
|
-
21
|
274
|
-
22
|
275
|
-
23</pre>
|
276
|
-
</td>
|
277
|
-
<td>
|
278
|
-
<pre class="code"><span class="info file"># File 'lib/auth0/mixins/initializer.rb', line 8</span>
|
279
|
-
|
280
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='rparen'>)</span>
|
281
|
-
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rbracket'>]</span>
|
282
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_base_uri'>base_uri</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>https://</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:namespace</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
283
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/json</span><span class='tstring_end'>'</span></span>
|
284
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:protocols</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>v2</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
285
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span> <span class='const'>Auth0</span><span class='op'>::</span><span class='const'>Api</span><span class='op'>::</span><span class='const'>V2</span>
|
286
|
-
<span class='ivar'>@token</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:access_token</span><span class='rbracket'>]</span>
|
287
|
-
<span class='kw'>else</span>
|
288
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span> <span class='const'>Auth0</span><span class='op'>::</span><span class='const'>Api</span><span class='op'>::</span><span class='const'>V1</span>
|
289
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span> <span class='const'>Auth0</span><span class='op'>::</span><span class='const'>Api</span><span class='op'>::</span><span class='const'>AuthenticationEndpoints</span>
|
290
|
-
<span class='ivar'>@client_id</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:client_id</span><span class='rbracket'>]</span>
|
291
|
-
<span class='ivar'>@client_secret</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:client_secret</span><span class='rbracket'>]</span>
|
292
|
-
<span class='ivar'>@token</span> <span class='op'>=</span> <span class='id identifier rubyid_obtain_access_token'>obtain_access_token</span>
|
293
|
-
<span class='kw'>end</span>
|
294
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Authorization</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Bearer </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:access_token</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
295
|
-
<span class='kw'>end</span></pre>
|
296
|
-
</td>
|
297
|
-
</tr>
|
298
|
-
</table>
|
299
|
-
</div>
|
300
|
-
|
301
|
-
</div>
|
302
|
-
|
303
|
-
</div>
|
304
|
-
|
305
|
-
<div id="footer">
|
306
|
-
Generated on Mon Feb 23 01:12:53 2015 by
|
307
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
|
-
0.8.7.6 (ruby-2.0.0).
|
309
|
-
</div>
|
310
|
-
|
311
|
-
</body>
|
312
|
-
</html>
|