Skip to content

EGA-archive/beacon-verifier-v2

Repository files navigation

Beacon verifier v2

This repository contains the new Beacon verifier v2.0, a software created with the main goal of validating beacon responses against the official GA4GH Beacon v2 specifications for its debugging and testing. The outcome of executing this tool will be a dateiled response with all the validations for each of your beacon endpoints explaining the possible errors encountered, if any.

Installation guide with docker

First of all, clone or download the repository to your computer:

git clone https://github.com/EGA-archive/beacon-verifier-v2.git

Add an .env file inside the folder verifierweb, with the next variables:

SECRET_KEY="your_django_secret_key"
OIDC_RP_CLIENT_ID='your_client_id'
OIDC_RP_CLIENT_SECRET='your_client_secret'

We STRONGLY RECOMMEND to modify the variable SECRET_KEY. To generate a safe Django SECRET_KEY and copy it to .env file, you can install python django package with pip install Django and generate yours with a script like this:

from django.core.management.utils import get_random_secret_key  
get_random_secret_key()

To light up the container with beacon verifier v2, execute the next command inside the root folder (where docker-compose is located at):

docker-compose up -d --build

Once the container is up and running you can start using beacon verifier v2, congratulations!

Excute verifier using the console/terminal

If you wish to use the verifier using the console/terminal of your computer, please, open a prompt for your computer and type the next command replacing the url for the one containing the beacon you want to validate:

docker exec verifier python verifier.py -url http://beacon:5050/api

Excute verifier using the UI

Please, open the verifier UI in your browser goint to http://localhost:8003.

Introduce yor URL in the text form and click at Search: Beacon verifier v2 UI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages