# Implementation of the Auth System

* **The web map dashboard**

  The dashboard running on the web map client/website, the goal for this one is to manage some features that heavily related to the map operation, an immediate  demand is the theme customization for the web map.

  * The resources:
    * map-them-customization : the feature to customize the theme, appearance of the web map.

      scope:

      * view : to be able to check the theme of the map
      * edit : to be able to edit the theme of the map.
  * The role:
    * Organization-manager
    * Organization-operator
  * The Group:
    * Freetown
    * Fxion
  * The client
    * Web map client
    * Web-map-config-service
  *

#### Authentication with Social Media

The first step is to click on identity providers, there'll be a dropdown of possible social media platforms to be integrated<br>

<figure><img src="/files/c0yO10FA088Stccabq8K" alt=""><figcaption></figcaption></figure>

Clicking on one of them should bring you to the page below, the key items here are the client id and client secret. You will get this from the social media platform (dev/app options). In this case, I clicked on Facebook\ <br>

<figure><img src="/files/FKxm4LqRC2XRvSR8W9oF" alt=""><figcaption></figcaption></figure>

For facebook you go to developer.facebook.com (or settings -> developer settings -> Oauth apps -> new oauth app )<br>

<figure><img src="/files/SwDa7SfNCBR5Av0MJ7Lv" alt=""><figcaption></figcaption></figure>

Once the app has been created on facebook, and you can see your dashboard, you click on app settings -> basic, you should see your client id and client secret. Then you click on facebook login -> settings and then you can paste your redirect uri gotten from keycloak.\
&#x20;

<figure><img src="/files/JpPK5mKFRhhiZ2kPzkAf" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.greenstand.org/auth-system/implementation-of-the-auth-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
