Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Mermaid #60

Merged
merged 13 commits into from
May 18, 2023
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.5.1.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-3.5.1.cjs
nodeLinker: node-modules
8 changes: 4 additions & 4 deletions check-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async function checkSidebar(folder, sidebarFilePath, sidebarBasePath, removeImag
const absolutePathPrefix = path.join(process.cwd(), folder, '/')

const sidebarFiles = getSidebarLinkedFiles(sidebarFilePath, sidebarBasePath)
const footerFiles = getFooterLinkedFiles()

const footerFiles = await getFooterLinkedFiles()
const images = []
for await (const file of klaw(folder)) {
if (file.stats.isDirectory()) {
Expand Down Expand Up @@ -185,8 +185,8 @@ function getSidebarLinkedFiles(sidebarFilePath, prefix = '') {
return files
}

function getFooterLinkedFiles() {
const config = require('./docusaurus.config')
async function getFooterLinkedFiles() {
const config = await require('./docusaurus.config')()
let files = {}
config.themeConfig.footer.links.forEach(({items}) => {
items.forEach(item => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: Authorization Management
sidebar_label: Authorization Management
---

import Mermaid from "./../../../../src/components/Mermaid";

## Overview

Mia-Platform Console allows you to define custom security policies for your system. These policies can leverage both an Attribute-Based Access Control (ABAC) and a Role-Based Access Control (RBAC) approach.
Expand Down
17 changes: 8 additions & 9 deletions docs/runtime_suite/client-credentials/20_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ id: usage
title: Client Credentials Usage
sidebar_label: Usage
---
import Mermaid from "./../../../src/components/Mermaid";

In this section, we show you how to use the `client-credentials` service.

Expand Down Expand Up @@ -446,7 +445,7 @@ Below are reported the authentication flows that are supported by Client Credent

Below it is visible the sequence diagram of the login flow:

<Mermaid chart={`
```mermaid
fredmaggiowski marked this conversation as resolved.
Show resolved Hide resolved
sequenceDiagram
title: Login client credentials
participant client
Expand All @@ -458,13 +457,13 @@ clcr_service->>crud_service: GET {client_id,hash_client_secret}
clcr_service->>clcr_service: generate Mia JWT
note over clcr_service: iss: my-idp <br> sub: client-id <br> aud: permission <br> exp: expiration <br> iat: jwt issue date <br> jti: jwt id
clcr_service->>client: {access_token, expires_in, token_type}
`}/>
```

### Authorization flow (internal client)

Below it is visible the sequence diagram of the authorization flow from internal client:

<Mermaid chart={`
```mermaid
sequenceDiagram
title: Authentication flow from a console project
participant client
Expand All @@ -490,13 +489,13 @@ api_gateway->>client: 401 with error
end
authorization_service->>api_gateway: 200 <br> {miauserid,miausergroups,miauserproperties,client-type}
api_gateway->>resource_owner: GET /foobar {Authorization Bearer AT} + platform headers
`}/>
```

### Authorization flow (external client)

Below it is visible the sequence diagram of the authorization flow from external client:

<Mermaid chart={`
```mermaid
sequenceDiagram
title: Authentication flow from external with an AT
participant client
Expand All @@ -519,13 +518,13 @@ resource_owner->client: 403
end
resource_owner->>resource_owner: make some stuff
resource_owner->>client: ok
`}/>
```

### Tokeninfo

Below it is visible the sequence diagram to access to the JWT info:

<Mermaid chart={`
```mermaid
sequenceDiagram
title: Tokeninfo
participant client
Expand All @@ -535,4 +534,4 @@ clcr_service->>clcr_service: check expiration
clcr_service->>clcr_service: check signature
clcr_service->>clcr_service: decode jwt
clcr_service->>client: {permission: []}
`}/>
```
Loading