diff --git a/docs/src/main/asciidoc/security-basic-authentication-howto.adoc b/docs/src/main/asciidoc/security-basic-authentication-howto.adoc index e346a2f31d64e..9cb5a5bbf141b 100644 --- a/docs/src/main/asciidoc/security-basic-authentication-howto.adoc +++ b/docs/src/main/asciidoc/security-basic-authentication-howto.adoc @@ -43,7 +43,7 @@ quarkus.http.auth.basic=true + [source,properties] ---- -security.users.embedded.enabled=true +quarkus.security.users.embedded.enabled=true ---- .. You can also configure the required user credentials, user name, secret, and roles. diff --git a/docs/src/main/asciidoc/security-getting-started-tutorial.adoc b/docs/src/main/asciidoc/security-getting-started-tutorial.adoc index 81e98d981a785..4057770a714fc 100644 --- a/docs/src/main/asciidoc/security-getting-started-tutorial.adoc +++ b/docs/src/main/asciidoc/security-getting-started-tutorial.adoc @@ -79,6 +79,8 @@ The instructions in this example tutorial use a PostgreSQL database for the iden You can create a new Maven project with the Security Jakarta Persistence extension or add the extension to an existing Maven project. You can use either Hibernate ORM or Hibernate Reactive. +==== Creating new Maven project + * To create a new Maven project with the Jakarta Persistence extension, complete one of the following steps: ** To create the Maven project with Hibernate ORM, use the following command: @@ -86,6 +88,8 @@ You can use either Hibernate ORM or Hibernate Reactive. :create-app-extensions: security-jpa,jdbc-postgresql,rest,hibernate-orm-panache include::{includes}/devtools/create-app.adoc[] +==== Adding Jakarta Persistence extension to existing project + * To add the Jakarta Persistence extension to an existing Maven project, complete one of the following steps: ** To add the Security Jakarta Persistence extension to an existing Maven project with Hibernate ORM, run the following command from your project base directory: @@ -415,7 +419,7 @@ In this scenario, `Dev Services for PostgreSQL` launches and configures a `Postg %prod.quarkus.datasource.db-kind=postgresql %prod.quarkus.datasource.username=quarkus %prod.quarkus.datasource.password=quarkus -%prod.quarkus.datasource.jdbc.url=jdbc:postgresql:elytron_security_jpa +%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost/quarkus quarkus.hibernate-orm.database.generation=drop-and-create ---- @@ -505,7 +509,7 @@ Dev Services for PostgreSQL supports testing while you develop by providing a se [source,bash] ---- docker run --rm=true --name security-getting-started -e POSTGRES_USER=quarkus \ - -e POSTGRES_PASSWORD=quarkus -e POSTGRES_DB=elytron_security_jpa \ + -e POSTGRES_PASSWORD=quarkus -e POSTGRES_DB=quarkus \ -p 5432:5432 postgres:14.1 ---- === Compile and run the application diff --git a/docs/src/main/asciidoc/security-proactive-authentication.adoc b/docs/src/main/asciidoc/security-proactive-authentication.adoc index 65e0479be73c5..de4be3fb47cf9 100644 --- a/docs/src/main/asciidoc/security-proactive-authentication.adoc +++ b/docs/src/main/asciidoc/security-proactive-authentication.adoc @@ -108,7 +108,9 @@ package io.quarkus.it.keycloak; import jakarta.annotation.Priority; import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Context; import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import jakarta.ws.rs.ext.ExceptionMapper; import jakarta.ws.rs.ext.Provider;