Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 888c3006 authored by Andrei Stoica's avatar Andrei Stoica
Browse files

[Authentication] Enable security when running tests. Add description on the...

[Authentication] Enable security when running tests. Add description on the Swagger page to specify what user to use when authentication is present
parent e73c9974
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ public class ApplicationSwaggerConfig {
private ApiInfo getApiInfo() {
return new ApiInfo(
"REST Petclinic backend Api Documentation",
"This is REST API documentation of the Spring Petclinic backend",
"This is REST API documentation of the Spring Petclinic backend. If authentication is enabled, when calling the APIs use admin/admin",
"1.0",
"Petclinic backend terms of service",
new Contact(
......
# active profiles config
#
# application use two active profiles
#
# one for select repository layer
# ------------------------------------------------
# When using HSQL, use: hsqldb
# When using MySQL, use: mysql
# When using PostgeSQL, use: postgresql
# ------------------------------------------------
#
# one - for select database
# ------------------------------------------------
# When using Spring jpa, use: jpa
# When using Spring JDBC, use: jdbc
# When using Spring Data JPA, use: spring-data-jpa
# ------------------------------------------------
spring.profiles.active=hsqldb,spring-data-jpa
# ------------------------------------------------
server.port=9966
server.context-path=/petclinic/
spring.messages.basename=messages/messages
logging.level.org.springframework=INFO
#logging.level.org.springframework=DEBUG
#logging.level.org.hibernate.SQL=DEBUG
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
# enable the desired authentication type
# by default the authentication is disabled
security.ignored=/**
basic.authentication.enabled=true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment