Skip to content

Commit 80574d5

Browse files
Spelling fixes
1 parent bac816c commit 80574d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/sql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The basic concepts of how `sqlauth` works is common between versions 1 and 2.
3737
: Optional SQL queries executed after the authentication queries are executed. The resulting rows returned represent SAML attributes to be returned. If no rows are returned, this is not an error condition - it just doesn't add any extra SAML attributes to be returned.
3838

3939
- Authentication queries. If this returns zero rows, authentication fails. If it returns more than one row, authentication is deemed to succeed. the parameters `:username` and `:password` are available and should be evaluated by the query for authentication purposes. Each column returned becomes an attribute.The rows returned represent attributes to be returned.
40-
- Zero or more Attribute queries. All columns returned become attributes. Duplicates are supressed. Arrays with multiple values come from multiple rows being returned.The rows returned represent attributes to be returned.
40+
- Zero or more Attribute queries. All columns returned become attributes. Duplicates are suppressed. Arrays with multiple values come from multiple rows being returned.The rows returned represent attributes to be returned.
4141

4242
As a worked example, consider the following example table useful for authentication:
4343

@@ -64,7 +64,7 @@ And we could use an attribute query like:
6464
select groupName from usergroups where uid=:username
6565
```
6666

67-
Note: Depending upon configuration, attibute queries using the Version 2 configuration format may use `:username` or `:userid`. See the Version 2 section below for more details.
67+
Note: Depending upon configuration, attribute queries using the Version 2 configuration format may use `:username` or `:userid`. See the Version 2 section below for more details.
6868

6969
In summary:
7070

@@ -163,7 +163,7 @@ Assuming the correct `:username` and `:password` are passed, the resulting SAML
163163
| email | [ bob@example.com ] |
164164
| groupName | [ users, staff ] |
165165

166-
In the below example, we have users in two separate databases and two authentication queries. Authentication queries are run in the order they are configured, and once an authentication query successfully authenticates a user it is deemed to be authenticated using that query, and no further authentication queries are run. In the below case, the username formats are defined (single lower case word for staff, suppliers have a "supp_" prefix), and as a result we can use the optional `username_regex` parameter to get a slight performance boost out of not running unneccessary queries.
166+
In the below example, we have users in two separate databases and two authentication queries. Authentication queries are run in the order they are configured, and once an authentication query successfully authenticates a user it is deemed to be authenticated using that query, and no further authentication queries are run. In the below case, the username formats are defined (single lower case word for staff, suppliers have a "supp_" prefix), and as a result we can use the optional `username_regex` parameter to get a slight performance boost out of not running unnecessary queries.
167167

168168
```php
169169
$config = [
@@ -203,7 +203,7 @@ $config = [
203203
];
204204
```
205205

206-
An example staff login with the above configuration might result in SAML attribues like:
206+
An example staff login with the above configuration might result in SAML attributes like:
207207

208208
| Attribute Name | Attribute Value |
209209
|----------------|-----------------------|

0 commit comments

Comments
 (0)