# Meeco authentication

At the end of this doc, this is what suppose to see in the Guardian app.

<figure><img src="/files/49lUYNqVIpGeDEE2zfNb" alt=""><figcaption></figcaption></figure>

### Meeco credentials

Be sure to configure your Meeco credentials in `configs/.env.develop.guardian.system`

```
MEECO_AUTH_PROVIDER_ACTIVE=1
MEECO_BASE_URL=https://api-sandbox.svx.exchange
MEECO_OAUTH_URL="https://login-sandbox.securevalueexchange.com/oauth2/token"
MEECO_OAUTH_CLIENT_ID=571*********************e6a
MEECO_OAUTH_SECRET_ID=ONO@*****************rnNxpNt
MEECO_OAUTH_SCOPE=openid
MEECO_OAUTH_GRANT_TYPE=client_credentials
MEECO_ORGANIZATION_ID="09f7115e***********be032d6ca149"
MEECO_PASSPHRASE=7MHHMTJQQ******************7TPBH2P71XKDH1ZPF
MEECO_ISSUER_ORGANIZATION_ID="did:web:did-web.securevalue.exchange:343b08f3-***********-3f2d8a146a0d"
MEECO_ISSUER_ORGANIZATION_NAME=
MEECO_PRESENTATION_DEFINITION_ID="832e996c-**********-9d170fa381a8"
```

You might find the values in the portal <https://portal.securevalueexchange.com/>

### Where to find these credentials?

The very first thing is to activate the use of Meeco provider

```
MEECO_AUTH_PROVIDER_ACTIVE=1
```

For the `MEECO_OAUTH_CLIENT_ID` and MEECO\_OAUTH\_SECRET\_ID check the page below:

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

For the variables: `MEECO_OAUTH_SCOPE=openid` and `MEECO_OAUTH_GRANT_TYPE=client_credentials` keep it as it is.

The MEECO\_ORGANIZATION\_ID variable value can be found here

<figure><img src="/files/DuL7HH5LA1QgmYum4Jst" alt=""><figcaption><p>Account settings</p></figcaption></figure>

The `MEECO_ISSUER_ORGANIZATION_ID` and `MEECO_ISSUER_ORGANIZATION_NAME` value are found on the page below

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

Finally, the `MEECO_PRESENTATION_DEFINITION_ID` value is found here

<figure><img src="/files/3GY4OXsTtnkPCbVGWvsU" alt=""><figcaption></figcaption></figure>

Once the env variables are defined you have to turn it on on the frontend. Set true the attribute **`isMeecoConfigured`** on the folder`frontend/src/environments/environment.ts`

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

Note that there are at least three different environment files: `environment.prod.ts`, `environment.demo.ts` (e.g) change them according to your configurations.

Be sure to run the `docker-compose up --build` (e.g) command again to have it done.\\

So, enjoy your new authentication mechanism.


---

# 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://guardian.hedera.com/guardian-dev/guardian/readme/security-1.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.
