Skip to content

Commit e53dcbf

Browse files
committed
Merge pull request apiman#25 from msavy/add-oauth2-script-for-lazy
Add oauth2 script for lazy (redux)
2 parents da8893e + 9b01d59 commit e53dcbf

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

_blog-src/_posts/2015-06-09-keycloak-oauth2.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ Second, we'll take the token and attach it to our request to the service
206206

207207
Great, it worked! We can see EchoService has now been reached, meaning our OAuth2 token was validated successfully, and it sent us back a response which includes the bearer token we used (you can strip this out in the options).
208208

209+
If you're feeling lazy, here's https://gist.github.com/msavy/9390bfcd497f3c683a1c[an all-in-one script] to do it for you.
210+
209211
== Adding Authorization
210212

211213
We're going to develop our example a little bit further. At present, we simply have a binary approach where we either allow or disallow based upon which realm the token was issued from. If we want a more granular approach where we can discriminate upon roles, then we need to add another element: *Authorization*.

blog/feed.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,9 @@ There are a huge number of configuration permutations with Keycloak, and the mos
15381538
<div class="paragraph">
15391539
<p>Great, it worked! We can see EchoService has now been reached, meaning our OAuth2 token was validated successfully, and it sent us back a response which includes the bearer token we used (you can strip this out in the options).</p>
15401540
</div>
1541+
<div class="paragraph">
1542+
<p>If you’re feeling lazy, here’s <a href="https://gist.github.com/msavy/9390bfcd497f3c683a1c">an all-in-one script</a> to do it for you.</p>
1543+
</div>
15411544
</div>
15421545
</div>
15431546
<div class="sect1">
@@ -3170,6 +3173,6 @@ Resolving deltas: 100% (40/40), done.
31703173
<guid isPermaLink="true">http://apiman.io/blog/introduction/overview/2015/01/09/impatient-new-user.html</guid>
31713174
</item>
31723175

3173-
<lastBuildDate>Thu, 09 Jul 2015 03:22:46 -0400</lastBuildDate>
3176+
<lastBuildDate>Thu, 09 Jul 2015 05:19:44 -0400</lastBuildDate>
31743177
</channel>
31753178
</rss>

blog/gateway/security/oauth2/keycloak/authentication/authorization/2015/06/09/keycloak-oauth2.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ <h2 id="testing-authentication">Testing Authentication</h2>
411411
<div class="paragraph">
412412
<p>Great, it worked! We can see EchoService has now been reached, meaning our OAuth2 token was validated successfully, and it sent us back a response which includes the bearer token we used (you can strip this out in the options).</p>
413413
</div>
414+
<div class="paragraph">
415+
<p>If you&#8217;re feeling lazy, here&#8217;s <a href="https://gist.github.com/msavy/9390bfcd497f3c683a1c">an all-in-one script</a> to do it for you.</p>
416+
</div>
414417
</div>
415418
</div>
416419
<div class="sect1">

0 commit comments

Comments
 (0)