italia / spid-testenv2

New test Identity Provider for SPID
GNU Affero General Public License v3.0
35 stars 38 forks source link

issue #335

Open Asifkrishaweb opened 3 years ago

Asifkrishaweb commented 3 years ago

facing issue when run this command

python spid-testenv.py

Errors : DEBUG:faker.factory:Not in REPL -> leaving logger event level as is. ERROR:testenv.log:Errore di sintassi nel file di configurazione: ./conf/config.yaml

peppelinux commented 3 years ago

Hi @Asifkrishaweb ./conf/config.yaml have a syntax error

Asifkrishaweb commented 3 years ago

what syntax error may you please help me with?

this is my config file

Identity Provider (IdP)

#########################

The base URL where spid-testenv2 is reachable at.

base_url: "http://localhost:8088"

Key and certificate used to sign SAML messages.

key_file: "./conf/idp.key" cert_file: "./conf/idp.crt"

Service Providers

###################

You can configure multiple Service Provider by specifying their XML

metadata,

using different sources.

metadata:

From local files, globbing is supported

eg: "*.xml", "spmetadat?.xml" o "sp[-]metadat[a-z].xml"

local:

Application configuration

###########################

Whether to enable debug mode. When enabled, the log will be more verbose.

debug: true

Bind the webserver to the specified IP address (use 0.0.0.0 for all

interfaces). host: "0.0.0.0"

Port the webserver listens on.

port: 8088

Whether to enable HTTPS.

https: false

The TLS key and certificate used for HTTPS, required if HTTPS is enabled.

https_key_file: "path/to/key"

https_cert_file: "path/to/cert"

File holding the identities of test users.

It will be automatically created if it doesn't exist.

users_file: "conf/users.json"

PostgreSQL database holding the identities of test users.

If specified, it will override the "user_file" parameter.

The required tables will be automatically created if they don't exist.

users_db: @.***:5432/exampledb'

If enabled, allows to add new users from the UI.

can_add_user: true

Whether to enable the UI to handle the data in the database.

database_admin_interface: true

If enabled, allows the user to manipulate the response from the Identity

Provider.

Useful to simulate errors in the response.

show_response_options: true

On Wed, Apr 14, 2021 at 6:36 PM Giuseppe De Marco @.***> wrote:

Hi @Asifkrishaweb https://github.com/Asifkrishaweb ./conf/config.yaml have a syntax error

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/italia/spid-testenv2/issues/335#issuecomment-819503050, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATSZVBJ62YSDC776SVDLRTLTIWHOZANCNFSM425KP7IQ .