Skip to content

Commit c7bf5e3

Browse files
phil198Hunterness
authored andcommitted
Apply suggestions from code review
Co-authored-by: Therese Magnusson <[email protected]>
1 parent 3bb38cc commit c7bf5e3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/ROOT/pages/authentication-authorization/auth-providers.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ In order to make use of Auth Providers, you need to set the `dbms.security.requi
1010
This setting mandates that only users with a corresponding Auth Provider in the database can authenticate and authorize.
1111

1212
Auth Providers give you a way to link externally-defined users (e.g. in a 3rd party ID provider like OIDC or LDAP) to the Neo4j internal User model.
13-
1413
The internal model can define things such as roles (authorization), `SUSPENDED` status, `HOME DATABASE`, and metadata such as the unique displayed name of the user.
15-
1614
For consistency you can also define `native` (password-based) auth using the Auth Provider syntax, including native-only users (i.e. users who can only authenticate with a password).
1715

1816
== Use Cases

modules/ROOT/pages/authentication-authorization/manage-users.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ CREATE USER name [IF NOT EXISTS]
151151
[[SET PASSWORD] CHANGE [NOT] REQUIRED]
152152
[SET STATUS {ACTIVE \| SUSPENDED}]
153153
[SET HOME DATABASE name]
154-
{[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]}...
154+
[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]...
155155
----
156156

157157
`<key><value>` pairs for the `SET AUTH` clause could include:
@@ -166,7 +166,6 @@ SET AUTH [PROVIDER] 'provider' "{"
166166
"}"
167167
----
168168

169-
170169
| Description
171170
a|
172171
Creates a new user.
@@ -175,6 +174,7 @@ Creates a new user.
175174
====
176175
It is mandatory to specify at least either a `SET PASSWORD` or a `SET AUTH` clause because users must have at least one Auth Provider.
177176
====
177+
178178
For more information, see xref:authentication-authorization/manage-users.adoc#access-control-create-users[Creating users].
179179

180180
| Required privilege
@@ -202,7 +202,7 @@ CREATE OR REPLACE USER name
202202
[[SET PASSWORD] CHANGE [NOT] REQUIRED]
203203
[SET STATUS {ACTIVE \| SUSPENDED}]
204204
[SET HOME DATABASE name]
205-
{[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]}...
205+
[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]...
206206
----
207207
`<key><value>` pairs for the `SET AUTH` clause could include:
208208
[source, syntax, role="noheader"]
@@ -219,10 +219,12 @@ SET AUTH [PROVIDER] 'provider' "{"
219219
| Description
220220
a|
221221
Creates a new user, or if a user with the same name exists, replace it.
222+
222223
[NOTE]
223224
====
224225
It is mandatory to specify at least either a `SET PASSWORD` or a `SET AUTH` clause because users must have at least one Auth Provider.
225226
====
227+
226228
For more information, see xref:authentication-authorization/manage-users.adoc#access-control-create-users[Creating users].
227229

228230
| Required privilege
@@ -598,7 +600,7 @@ CREATE USER name [IF NOT EXISTS]
598600
[[SET PASSWORD] CHANGE [NOT] REQUIRED]
599601
[SET STATUS {ACTIVE \| SUSPENDED}]
600602
[SET HOME DATABASE name]
601-
{[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]}...
603+
[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]...
602604
----
603605

604606
Users can be created or replaced using `CREATE OR REPLACE USER`.
@@ -610,7 +612,7 @@ CREATE OR REPLACE USER name
610612
[[SET PASSWORD] CHANGE [NOT] REQUIRED]
611613
[SET STATUS {ACTIVE \| SUSPENDED}]
612614
[SET HOME DATABASE name]
613-
{[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]}...
615+
[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]...
614616
----
615617

616618
For both `CREATE` and `CREATE OR REPLACE`, `<key><value>` pairs for the `SET AUTH` clause could include:
@@ -819,7 +821,7 @@ ALTER USER name [IF EXISTS]
819821
[[SET PASSWORD] CHANGE [NOT] REQUIRED]
820822
[SET STATUS {ACTIVE | SUSPENDED}]
821823
[SET HOME DATABASE name]
822-
{[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]}...
824+
[SET AUTH [PROVIDER] 'provider' "{"{SET <key> <value>}..."}"]...
823825
[REMOVE HOME DATABASE]
824826
[REMOVE { AUTH [PROVIDER[S]] provider[, ...] \| ALL AUTH [PROVIDER[S]] }]...
825827
----

0 commit comments

Comments
 (0)