Skip to content

Commit

Permalink
Merge pull request #42703 from jedla97/update-security-docs
Browse files Browse the repository at this point in the history
Update security docs
  • Loading branch information
sberyozkin authored Aug 26, 2024
2 parents 50d4c38 + 7b7e5cb commit a36a809
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 6 additions & 2 deletions docs/src/main/asciidoc/security-getting-started-tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ 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:

:create-app-artifact-id: security-jpa-quickstart
: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:
Expand Down Expand Up @@ -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
----
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/asciidoc/security-proactive-authentication.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a36a809

Please sign in to comment.