From ed92472645679cd68a2dcaecc0ca7f5718370e07 Mon Sep 17 00:00:00 2001 From: Jorge Garcia Hospital <129095857+jgarciahospital@users.noreply.github.com> Date: Mon, 15 Jul 2024 18:14:56 +0200 Subject: [PATCH 1/2] Create Location_Verification_User_Story.md --- .../Location_Verification_User_Story.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 documentation/SupportingDocuments/Location_Verification_User_Story.md diff --git a/documentation/SupportingDocuments/Location_Verification_User_Story.md b/documentation/SupportingDocuments/Location_Verification_User_Story.md new file mode 100644 index 00000000..14578d84 --- /dev/null +++ b/documentation/SupportingDocuments/Location_Verification_User_Story.md @@ -0,0 +1,11 @@ +# Location Verification API User Story + + +| **Item** | **Details** | +| ---- | ------- | +| ***Summary*** | As an enterprise application developer, I want to verify the location of a user's device, so that I can ensure the device is within a specified area for security and contextual-based services. | +| ***Roles, Actors and Scope*** | **Roles:** Customer:User, Customer:BusinessManager, Customer:Administrator
**Actors:** Application service providers, hyperscalers, application developers, end users.
**Scope:**
- Verifies if the specified device is located within a predefined geographical area (circle with given coordinates and radius). | +| ***Pre-conditions*** |The preconditions are listed below:
  1. The Customer:BusinessManager and Customer:Administrator have been onboarded to the CSP's API platform.
  2. The Customer:BusinessManager has successfully subscribed to the Location Verification API product from the product catalog.
  3. The Customer:Administrator has onboarded the Customer:User to the platform.
  4. The Customer:User performs an authorization request to CSP.
  5. The Customer:User has the access token allowing a secure access of the API.| +| ***Activities/Steps*** | **Starts when:** The customer application makes a POST request to the Location Verification API providing the device identifier (e.g., phone number) and the area information (center coordinates and radius).
    **Ends when:** The API server responds with the verification result indicating if the device is within the specified area, partially matches the area, or is unknown. | +| ***Post-conditions*** | The customer application could continue offering its service to the user with the confirmation of the deviceĀ“s location. | +| ***Exceptions*** | Several exceptions might occur during the Location Verification API operations
    - Unauthorized: Invalid credentials (e.g., expired access token).
    - Incorrect input data (e.g., malformed phone number).
    - Not able to provide: Network unable to locate the device due to various reasons (e.g., device not connected, outdated location data). | From 393e4dd421a8e8c516012c75bdb4593e475295d1 Mon Sep 17 00:00:00 2001 From: Jorge Garcia Hospital <129095857+jgarciahospital@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:55:18 +0200 Subject: [PATCH 2/2] Update Location_Verification_User_Story.md --- .../Location_Verification_User_Story.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/SupportingDocuments/Location_Verification_User_Story.md b/documentation/SupportingDocuments/Location_Verification_User_Story.md index 14578d84..42429630 100644 --- a/documentation/SupportingDocuments/Location_Verification_User_Story.md +++ b/documentation/SupportingDocuments/Location_Verification_User_Story.md @@ -4,8 +4,8 @@ | **Item** | **Details** | | ---- | ------- | | ***Summary*** | As an enterprise application developer, I want to verify the location of a user's device, so that I can ensure the device is within a specified area for security and contextual-based services. | -| ***Roles, Actors and Scope*** | **Roles:** Customer:User, Customer:BusinessManager, Customer:Administrator
    **Actors:** Application service providers, hyperscalers, application developers, end users.
    **Scope:**
    - Verifies if the specified device is located within a predefined geographical area (circle with given coordinates and radius). | -| ***Pre-conditions*** |The preconditions are listed below:
    1. The Customer:BusinessManager and Customer:Administrator have been onboarded to the CSP's API platform.
    2. The Customer:BusinessManager has successfully subscribed to the Location Verification API product from the product catalog.
    3. The Customer:Administrator has onboarded the Customer:User to the platform.
    4. The Customer:User performs an authorization request to CSP.
    5. The Customer:User has the access token allowing a secure access of the API.| -| ***Activities/Steps*** | **Starts when:** The customer application makes a POST request to the Location Verification API providing the device identifier (e.g., phone number) and the area information (center coordinates and radius).
      **Ends when:** The API server responds with the verification result indicating if the device is within the specified area, partially matches the area, or is unknown. | -| ***Post-conditions*** | The customer application could continue offering its service to the user with the confirmation of the deviceĀ“s location. | +| ***Actors and Scope*** | **Actors:** Application service provider (ASP), ASP:User, ASP: BusinessManager, ASP:Administrator, Channel Partner, End-User, Communication Service Provider (CSP).
      **Scope:**
      - Verifies if the specified device is located within a predefined geographical area (e.g.circle with given coordinates and radius, polygon...). | +| ***Pre-conditions*** |The preconditions are listed below:
      1. The ASP:BusinessManager and ASP:Administrator have been onboarded to the CSP's API platform.
      2. The ASP:BusinessManager has successfully subscribed to the Location Verification API product from the product catalog via (or not) a Channel Partner.
      3. The ASP:Administrator has onboarded the ASP:User to the platform.
      4. The ASP:User performs an authorization request to CSP
      5. The CSP checks access & End-User approval then provide access token to the ASP:User
      6. The ASP:User get the access token, via (or not) the Channel Partner, allowing a secure access of the API. +| ***Activities/Steps*** | **Starts when:** The ASP:User makes a POST request via the Location Verification API providing the End-User's device identifier (e.g., phone number), the area information (center coordinates and radius, polygon...) and the maximum age of the location information.
        **Ends when:** The CSP's Location Verification server responds with the verification result indicating if the End-User's device is within the specified area, partially matches the area, or is unknown. | +| ***Post-conditions*** | The ASP:User could continue offering its service to the End-User with the confirmation of the End-User's device location. | | ***Exceptions*** | Several exceptions might occur during the Location Verification API operations
        - Unauthorized: Invalid credentials (e.g., expired access token).
        - Incorrect input data (e.g., malformed phone number).
        - Not able to provide: Network unable to locate the device due to various reasons (e.g., device not connected, outdated location data). |