Skip to content

Commit 9355a20

Browse files
committed
Publishing site Lun 17 jul 2023 21:58:19 CEST
1 parent f2d8bda commit 9355a20

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

algolia.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

documentation/automating/service-account/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
<meta property="og:type" content="article" />
4949
<meta property="og:url" content="https://microcks.io/documentation/automating/service-account/" /><meta property="article:section" content="documentation" />
5050
<meta property="article:published_time" content="2019-09-01T00:00:00+00:00" />
51-
<meta property="article:modified_time" content="2020-09-14T00:00:00+00:00" />
51+
<meta property="article:modified_time" content="2023-07-17T00:00:00+00:00" />
5252

5353
<meta itemprop="name" content="Microcks Service Accounts">
5454
<meta itemprop="description" content="Microcks Service Accounts Introduction Microcks is using OpenId Connect and OAuth 2.0 bearer tokens to secure its frontend and API access. While this is very convenient for interactive users, it may be unpracticable for machine-to-machine authentication when you want to interact with Microcks from a robot, CI/CD pipeline or simple CLI tool. For that, we decided to implement the simple OAuth 2.0 Client Credentials Grant in addition of other grants. This authentication is implemented using Service Accounts clients defined into the Realm configuration in Keycloak."><meta itemprop="datePublished" content="2019-09-01T00:00:00+00:00" />
55-
<meta itemprop="dateModified" content="2020-09-14T00:00:00+00:00" />
55+
<meta itemprop="dateModified" content="2023-07-17T00:00:00+00:00" />
5656
<meta itemprop="wordCount" content="583">
5757
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
5858
<meta name="twitter:title" content="Microcks Service Accounts"/>
@@ -269,7 +269,7 @@ <h3 id="inspecting-default-service-account">Inspecting default Service Account</
269269
<span class="o">{</span>
270270
<span class="s2">&#34;realm&#34;</span>: <span class="s2">&#34;microcks&#34;</span>,
271271
<span class="s2">&#34;resource&#34;</span>: <span class="s2">&#34;microcks-app-js&#34;</span>,
272-
<span class="s2">&#34;auth-server-url&#34;</span>: <span class="s2">&#34;https://keycloak.microcks.example.com/auth&#34;</span>,
272+
<span class="s2">&#34;auth-server-url&#34;</span>: <span class="s2">&#34;https://keycloak.microcks.example.com&#34;</span>,
273273
<span class="s2">&#34;ssl-required&#34;</span>: <span class="s2">&#34;external&#34;</span>,
274274
<span class="s2">&#34;public-client&#34;</span>: <span class="nb">true</span>
275275
<span class="o">}</span>
@@ -291,7 +291,7 @@ <h3 id="using-service-account">Using Service Account</h3>
291291

292292
<span class="c1"># then you issue a POST command to authenticate and retrieve an access_token from Keycloak</span>
293293
<span class="c1"># the grant_type used is client_credentials</span>
294-
$ curl -X POST https://keycloak.microcks.example.com/auth/realms/microcks/protocol/openid-connect/token -H <span class="s1">&#39;Content-Type: application/x-www-form-urlencoded&#39;</span> -H <span class="s1">&#39;Accept: application/json&#39;</span> -H <span class="s1">&#39;Authorization: Basic bWljcm9ja3Mtc2VydmljZWFjY291bnQ6YWI1NGQzMjktZTQzNS00MWFlLWE5MDAtZWM2YjNmZTE1YzU0Cg=&#39;</span> -d <span class="s1">&#39;grant_type=client_credentials&#39;</span> -k -s <span class="p">|</span> jq .
294+
$ curl -X POST https://keycloak.microcks.example.com/realms/microcks/protocol/openid-connect/token -H <span class="s1">&#39;Content-Type: application/x-www-form-urlencoded&#39;</span> -H <span class="s1">&#39;Accept: application/json&#39;</span> -H <span class="s1">&#39;Authorization: Basic bWljcm9ja3Mtc2VydmljZWFjY291bnQ6YWI1NGQzMjktZTQzNS00MWFlLWE5MDAtZWM2YjNmZTE1YzU0Cg=&#39;</span> -d <span class="s1">&#39;grant_type=client_credentials&#39;</span> -k -s <span class="p">|</span> jq .
295295
<span class="o">{</span>
296296
<span class="s2">&#34;access_token&#34;</span>: <span class="s2">&#34;eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJFdlRzbVZhQ3dya3p6LTBlYTJhVDBmTHV1dzJfal9zNnNjOW9zVUN3Q1JnIn0.eyJleHAiOjE2MDAwNzc5NDYsImlhdCI6MTYwMDA3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sVpusHQuFiaYPrcNGiVbyL08--fYyxq97yovRInj2WOsFjhyrVPjpYJBCgbC5eLUNFh2WH6T9HecegsEfqXR_7CNPN2TjMQZdo2zkuzcKGiHHVId7ntIzupPLc95N487Jwd0Y3WHSdbMdVPptTeA&#34;</span>,
297297
<span class="s2">&#34;expires_in&#34;</span>: 300,
@@ -615,7 +615,7 @@ <h6 class="f4 dark-gray mb2">
615615
<span class="nl3 child"><svg class="grow" fill="" height="14px" viewBox="0 0 24 24" width="14px" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>
616616
</span>
617617
“Microcks Service Accounts”
618-
</a> was last updated: September 14, 2020
618+
</a> was last updated: July 17, 2023
619619
</h6>
620620

621621
<a href="https://github.com/microcks/microcks.io/edit/master/content/documentation/automating/service-account.md" class="

images/service-account-clients.png

-33.2 KB
Loading
37.9 KB
Loading

images/service-account-roles.png

-14.2 KB
Loading

images/service-account-settings.png

-1.9 KB
Loading

sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<lastmod>2023-06-22T00:00:00+00:00</lastmod>
1313
</url><url>
1414
<loc>https://microcks.io/documentation/automating/service-account/</loc>
15-
<lastmod>2020-09-14T00:00:00+00:00</lastmod>
15+
<lastmod>2023-07-17T00:00:00+00:00</lastmod>
1616
</url><url>
1717
<loc>https://microcks.io/documentation/installing/operator/</loc>
1818
<lastmod>2021-04-28T00:00:00+00:00</lastmod>
@@ -144,7 +144,7 @@
144144
<lastmod>2023-06-27T00:00:00+00:00</lastmod>
145145
</url><url>
146146
<loc>https://microcks.io/</loc>
147-
<lastmod>2023-06-27T00:00:00+00:00</lastmod>
147+
<lastmod>2023-07-17T00:00:00+00:00</lastmod>
148148
</url><url>
149149
<loc>https://microcks.io/blog/microcks-1.7.1-release/</loc>
150150
<lastmod>2023-06-21T00:00:00+00:00</lastmod>
@@ -153,7 +153,7 @@
153153
<lastmod>2023-06-15T00:00:00+00:00</lastmod>
154154
</url><url>
155155
<loc>https://microcks.io/documentation/</loc>
156-
<lastmod>2023-06-22T00:00:00+00:00</lastmod>
156+
<lastmod>2023-07-17T00:00:00+00:00</lastmod>
157157
</url><url>
158158
<loc>https://microcks.io/documentation/guides/</loc>
159159
<lastmod>2023-06-06T00:00:00+00:00</lastmod>
@@ -231,7 +231,7 @@
231231
<lastmod>2021-02-21T00:00:00+00:00</lastmod>
232232
</url><url>
233233
<loc>https://microcks.io/documentation/automating/</loc>
234-
<lastmod>2023-04-01T00:00:00+00:00</lastmod>
234+
<lastmod>2023-07-17T00:00:00+00:00</lastmod>
235235
</url><url>
236236
<loc>https://microcks.io/blog/advanced-dispatching-constraints/</loc>
237237
<lastmod>2021-01-28T00:00:00+00:00</lastmod>

0 commit comments

Comments
 (0)