Skip to content

Commit

Permalink
Fixed Mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
MIA-Deltat1995 committed Mar 24, 2023
1 parent 2ff7486 commit 1a2beed
Show file tree
Hide file tree
Showing 10 changed files with 325 additions and 340 deletions.
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/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 @@ -370,7 +369,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
sequenceDiagram
title: Login client credentials
participant client
Expand All @@ -382,13 +381,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 @@ -414,13 +413,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 @@ -443,13 +442,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 @@ -459,4 +458,4 @@ clcr_service->>clcr_service: check expiration
clcr_service->>clcr_service: check signature
clcr_service->>clcr_service: decode jwt
clcr_service->>client: {permission: []}
`}/>
```
Loading

0 comments on commit 1a2beed

Please sign in to comment.