Skip to content

Commit

Permalink
GitBook: [#30] No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
nayakrounak authored and gitbook-bot committed Jan 2, 2023
1 parent c9363e8 commit 1e5b235
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
33 changes: 19 additions & 14 deletions docs/integration-guides/authentication-system-integration.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Authentication System Integration

# Overview
## Overview

System to authenticate an individual and provide consented details of the authenticated individual. Adhering to this principle we have the integration with authentication system divided into 2 APIs:
System to authenticate an individual and provide consented details of the authenticated individual. Adhering to this principle we have the integration with the authentication system divided into 2 APIs:

1. kyc-auth: Authenticate the end user and return a kyc-token

```mermaid
```

1. kyc-auth : Authenticate enduser and return kyc-token
```mermaid
sequenceDiagram
autonumber
Expand All @@ -20,7 +24,9 @@ sequenceDiagram
IdP->>-Individual: Success
Note left of IdP:Redirect to client portal with auth-code
```
2. kyc-exchange: Exchange kyc-token for the user KYC

1. kyc-exchange: Exchange kyc-token for the user KYC

```mermaid
sequenceDiagram
autonumber
Expand All @@ -35,7 +41,7 @@ sequenceDiagram
IdP->>-OIDC Client: KYC (JWT/JWE)
```

# Interface
## Interface

Authentication System Provider must implement the below Authentication Wrapper interface.

Expand Down Expand Up @@ -90,7 +96,6 @@ public interface AuthenticationWrapper {
}
```


Authentication wrapper implementation class must be annotated with ConditionalOnProperty based on "mosip.idp.authn.wrapper.impl" property as below:

```
Expand All @@ -102,12 +107,12 @@ public class MockAuthenticationService implements AuthenticationWrapper {
}
```

# Plan

## Case 1:
Authentication system has single endpoint ( authenticate and returns kyc )
## case 2:
Authentication system has endpoint only to authenticate.

## Plan

```
## Case 1:
Authentication system has single endpoint ( authenticate and returns kyc )
## case 2:
Authentication system has endpoint only to authenticate.
```
2 changes: 2 additions & 0 deletions docs/overview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Overview

2 changes: 1 addition & 1 deletion docs/summary.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Table of contents

* [e-Signet](README.md)
* [Overview](architecture.md)
* [Overview](overview/README.md)
* [Componets](sandbox-details/componets.md)
* [Features](architecture/features.md)
* [Sandbox Details](sandbox-details/README.md)
Expand Down

0 comments on commit 1e5b235

Please sign in to comment.